LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-02-2002, 01:30 AM   #1
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
ftpaccess config


Hi All,

I have guest ftp clients setup and working properly. My question is how can I get indidvidual users dumped into their directoties when they login? Right now each user is dumped into a directory called /var/ftp/users and from there they move into their directory (for example: /var/ftp/users/jon). My /etc/ftpaccess file has:

guest-root /var/ftp/users
guestgroup [the names of the users]
guestuser *

Any ideas or suggestions on how to configure this? Also, How can I limit the disk space each user can occupy? Thanks.

Jon
 
Old 04-02-2002, 01:44 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
I only use proftpd so I'm not sure which ftpd you are using. But the original way was to use the users home directory to get them to go to their own directory.
Can't you set that users home directory to /var/ftp/users/jon in the /etc/passwd file. Then I guess to keep them stuck in their home directory you could add a line something like:
guest-root ~

Not sure if that works for this ftp daemon but I'm sure they must have something similar which should work.
 
Old 04-02-2002, 01:49 AM   #3
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Original Poster
Rep: Reputation: 30
I'm Sorry. I'm using wu-ftp (Redhat 7.2).

As for specifying /var/ftp/users/jon in my /etc/passwd file it is already there in the form:

jon:x:503:503::/var/ftp/users/jon/./:/bin/true
 
Old 04-02-2002, 02:27 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
Oh ok well I just read the documentation for wu-ftpd and it says that every guest user is already jailed into their own home directory.
With the line "guest-root /var/ftp/users" you are forcing then into that directory instead. So if you leave that line out each user should automatically go to it's own home directory.
And as far as I see it you are adding each group of the user and then in addition to that you are adding each user as a guest with the line guestuser *. In my eyes that would be double, but maybe it's because I've never used wu-ftpd yet.

And for limiting how much filespace each user has I think you should be looking into general disk quota for each user and not just for the ftp service.
 
Old 04-02-2002, 08:45 AM   #5
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Original Poster
Rep: Reputation: 30
Hi,

Yes!!! removing the directory listing (guest-root /var/ftp/users) in ftpaccess did it. I will also check out disk quota. Thanks!

One last question: How can I make the /bin /etc /lib directories in each users directory invisible to them?

Jon

Last edited by jonfa; 04-02-2002 at 08:48 AM.
 
Old 04-03-2002, 02:53 AM   #6
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
Well according to the docs there are 3 types of users. Guest users are the ones that are jailed to their home directories. So you have to make sure the user you are logging in with is a guest member.

This howto explains it step by step:
http://www.wu-ftpd.org/HOWTO/guest.HOWTO
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ftpaccess config file problem Daredevil Linux - Newbie 4 03-15-2004 12:09 PM
/etc/ftpaccess equivalent on Enterprise 3.0 rich_d_thomas Red Hat 0 02-24-2004 02:31 PM
/etc/ftpaccess configuration leandrop Linux - Security 1 10-02-2003 08:25 AM
access denied on file /etc/ftpaccess spawn500 Linux - Software 2 01-25-2003 01:38 PM
ftpaccess vanished? raymond Linux - General 1 11-09-2002 12:13 PM


All times are GMT -5. The time now is 01:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration