How to direct my FTP users to a particular folder other than pub/user'shome directory
HI friends
I am New with the linux and currently doing practice in Redhat Linux eneterprise 5.0 edition. I want to make a particular folder/directory which should be accessible to my all FTP users other than the pub/user's home directory. I want to make specific folder for a particular ftp user also. how to configure it plz tell me. thanx in advance with regards sharad chhetri |
Which FTP server are you going to use? Are you familiar on how to start services on RHEL? You need to give us some information about how much you already know if you wish to be helped as otherwise we would be wasting our time explaining things you already know.
|
thanx for replying back.....
I m using vsftp.and its service name is vsftpd.I know how to configure it for annonymous / ftp user. Actually annonymous user directly move to pub folder and other ftp users get their home directory.I tried to search in user_list,vsftpd.conf and 3rd file also .rt. now i m not getting its name.means the all file which are located in /etc/vftpd i read everything. so friend how to do it.. |
Your point of reference is the vsftpd.conf man page:
$ man vsftpd.conf Look for the local_root option. Enter this line in /etc/vsftpd/vsftpd.conf: local_root="your public folder" Chris |
test
|
thanx
thankyou ...yes it is working.I appreciate ......
there is one more thing I want..... Actually when I configured the FTP server in my 2000advanced server with IIS.It has the option to direct the user to a particular folder.The following scenario I have configured in my windows server. Ok lets have this scenario.... I want a Extended Partition ,in which there would be three folders named HR,Account,Sales. I want the users of this HR dept could directly open this HR folder.means when they type url ftp://10.x.y.z or ftp://10.x.y.z/HR .They will direct to HR folder.And should not see and access the other folders like Account and Sales. Kindly help me in this regard.... |
Try:
# ln -s my_ftp_folder my_ftp_folder/HR Maybe you also try to re-direct your users my hacking their .bash* files. Ofcourse, these methods are not intrinsically secure. Chris |
Thankyou Chris for good suggestion...These FTP users are a few.So now what i m thinking ,We can also assign 5-6 ip address to one Lan Card of machine.
So when user use its particular FTP url It opens only its desired folder. eg. ftp://10.a.b.c For accessing HR folder by HR dept. user. ftp://10.x.y.z for accesing SALES folder by Sales dept. user Here is a concept of Per user Per FTP_ip_address.Can this be possible in redhat or CentOS linux (version 5.0 both) |
All times are GMT -5. The time now is 03:49 AM. |