LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to direct my FTP users to a particular folder other than pub/user'shome directory (https://www.linuxquestions.org/questions/linux-server-73/how-to-direct-my-ftp-users-to-a-particular-folder-other-than-pub-usershome-directory-686573/)

sharadchhetri 11-27-2008 03:19 AM

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

ChrisAbela 11-27-2008 07:40 AM

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.

sharadchhetri 11-28-2008 06:08 AM

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..

ChrisAbela 11-28-2008 06:40 AM

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

dlugasx 01-13-2009 06:37 AM

test

sharadchhetri 01-14-2009 05:50 AM

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....

ChrisAbela 01-14-2009 09:54 AM

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

sharadchhetri 01-14-2009 11:48 AM

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.