Wednesday, 28 January 2015

how to share any folder of your pc over ftp or vsftp

How to share any folder of your PC over ftp or vs-ftp

say i need to  share /media/usb5/ftp folder over ftp ...

Follow the following steps:

As we know The default location on ftp is /home/user/.

* mkdir /media/usb5/ftp

now see when u do "ftp ip-of-ur-pc" from a another pc , u will have /home/user/ as default location .  so we will go  as follow.

* mount --bind /media/usb5/ftp /home/user/


* service vsftpd restart

dats all

put all the file u want to share over ftp on /media/usb5/ftp folder with proper
permission .

If u want to default location back ,

* umount /media/usb5/ftp

Writer: Anuj Borah

Monday, 12 January 2015

solution for fstab wrongly configured

solution for  fstab wrongly configured .

Some day before i have faced a problem /etc/fstab wrongly configuration .
System was not booting .  I have tried with normal commands to edit the fstab file , but it was write protected. Finely i have got solution .  

Solution : It will work any of the version of linux .  ( Redhat , centos, fedora, ubuntu , debian etc)

(Well its not a script )

Give the root password .


mount -n -o remount,  rw /

and now you can edit the /etc/fstab file with vi editor .

dats all . :)

Name: Anuj Borah

Popular Posts