LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   own directory share in ftp server. (https://www.linuxquestions.org/questions/linux-server-73/own-directory-share-in-ftp-server-675811/)

rahuldevalone 10-12-2008 05:33 AM

own directory share in ftp server.
 
Hi ! Everyone :cool:,
Can anybody tell me how can I share my own directory by ftp server ? :scratch: I am using RHEL 5 & Fedora Core 8.Support I create a dir /rahul.I want to share it by ftp server.Tell me entrie process.:tisk:
Regards,
Rahul Kumar

jschiwal 10-12-2008 08:30 AM

Your distro may have a wizard for adding shares. If not, look at the manpages for nfs, exports and mount.nfs. You configure the nfs server with the /etc/exports file. The nfs manpage will describe the /etc/fstab entry format for the clients.
Here is an example from my desktop:
Code:

/home/jschiwal/podcasts 192.168.1.0/255.255.255.0(fsid=0,rw,root_squash,sync,no_subtree_check)
/home/jschiwal/music    192.168.1.0/255.255.255.0(rw,root_squash,sync,no_subtree_check)

Here are corresponding entries for mounting a share on my laptop:
Code:

hpmedia.jesnet:/home/jschiwal/podcasts  /mnt/hpmedia/podcasts  nfs    defaults,user,_netdev 0 0
hpmedia.jesnet:/home/jschiwal/music    /mnt/hpmedia/music      nfs    defaults,user,_netdev 0 0


rahuldevalone 10-14-2008 01:48 AM

Dear ! Jschiwal,
Plz read first the question carefully.I want to ask how can i share /rahul dir. by ftp server.u are telling me how to share dir by NFS server ?
Regards,
Rahul Kumar

robertjinx 10-14-2008 02:54 AM

Anonymous FTP?! Try to set that up and the anonymous ftp dir, the dir u wanna share, otherwise ftp sharing dont really think is possible.

Mr. C. 10-14-2008 03:09 AM

rahuldevalone - I'm sure Jschiwal read your question carefully. The problem is that you ask for two different things, so to answer, one must be ignored. FTP != Sharing.

ram_rajavarapu 10-14-2008 04:49 AM

open the file /etc/passwd with your favorate editor and change the path of directory of ftp user. Actually ftp user default path is /var/ftp. Remove this path and replace your own path.


All times are GMT -5. The time now is 08:26 AM.