Showing posts with label VSFTP. Show all posts
Showing posts with label VSFTP. Show all posts

Mount NTFS drive from boot

0 comments
So, looks like you want to mount /dev/hda1 & /dev/hdb2. Edit /etc/fstab from a terminal with

Code:

gksudo gedit /etc/fstab

and add these two lines to the end of it.

Code:

/dev/hda1   /media/hda1   ntfs-3g   defaults   0   0

/dev/hdb2   /media/hdb2   ntfs-3g   defaults   0   0

Save it and close down gedit editing window. Then, install ntfs-3g driver, create those two new mount points, and mount them.

Code:

sudo apt-get update

sudo apt-get install ntfs-3g

sudo mkdir /media/hda1 /media/hdb2

sudo mount -a

df -h

Two two ntfs partitions will be mounted to /media/hda1 & /media/hdb2 from now on, every time you boot Ubuntu.

Labels: mount NTFS on linux

So, looks like you want to mount /dev/hda1 & /dev/hdb2. Edit /etc/fstab from a terminal with

Code:

gksudo gedit /etc/fstab

and add these two lines to the end of it.

Code:

/dev/hda1   /media/hda1   ntfs-3g   defaults   0   0

/dev/hdb2   /media/hdb2   ntfs-3g   defaults   0   0

Save it and close down gedit editing window. Then, install ntfs-3g driver, create those two new mount points, and mount them.

Code:

sudo apt-get update

sudo apt-get install ntfs-3g

sudo mkdir /media/hda1 /media/hdb2

sudo mount -a

df -h

Two two ntfs partitions will be mounted to /media/hda1 & /media/hdb2 from now on, every time you boot Ubuntu.

Restrict users to their home directory in VSFTP

0 comments
Sometimes you may want to restrict users to their home directory while doing FTP. You can achieve this in VSFTP with the

following steps.

1. Open the VSFTPD configuration file “/etc/vsftpd.conf” . Uncomment the following lines.

chroot_local_user=YES

chroot_list_file=/etc/vsftpd.chroot_list

2. Create the file “/etc/vsftpd.chroot_list” and place the user names (one per line) that you want to restrict in that file.

3. Restart VSFTPD to take effect.

# /etc/init.d/vsftpd restart

After this users listed in the file “/etc/vsftpd.chroot_list” will be locked up in their home directory
Sometimes you may want to restrict users to their home directory while doing FTP. You can achieve this in VSFTP with the


following steps.


1. Open the VSFTPD configuration file “/etc/vsftpd.conf” . Uncomment the following lines.


chroot_local_user=YES

chroot_list_file=/etc/vsftpd.chroot_list

2. Create the file “/etc/vsftpd.chroot_list” and place the user names (one per line) that you want to restrict in that file.


3. Restart VSFTPD to take effect.


/etc/init.d/vsftpd restart

After this users listed in the file “/etc/vsftpd.chroot_list” will be locked up in their home directory