LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-27-2008, 03:19 AM   #1
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
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
 
Old 11-27-2008, 07:40 AM   #2
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
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.
 
Old 11-28-2008, 06:08 AM   #3
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Original Poster
Rep: Reputation: 23
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..
 
Old 11-28-2008, 06:40 AM   #4
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
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

Last edited by ChrisAbela; 11-28-2008 at 06:42 AM.
 
Old 01-13-2009, 06:37 AM   #5
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Rep: Reputation: 19
test
 
Old 01-14-2009, 05:50 AM   #6
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Original Poster
Rep: Reputation: 23
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....
 
Old 01-14-2009, 09:54 AM   #7
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
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
 
Old 01-14-2009, 11:48 AM   #8
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Original Poster
Rep: Reputation: 23
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change default /var/ftp/pub in ftp(vsftpd) mohd anas Linux - Networking 3 07-08-2011 02:14 PM
FTP Folder accessible by multiple users question JohnnyAvocado Linux - Networking 1 01-13-2007 07:39 AM
One shared folder for multiple ftp users -- vsftpd rover Linux - Networking 0 06-17-2004 06:07 AM
Ftp users accessing other folder in VSFTPD VJD Linux - Networking 6 01-13-2004 06:16 AM
Making it so users can ftp into there Public_html folder embalmedlenin Linux - General 4 12-13-2003 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration