cancel
Showing results for 
Search instead for 
Did you mean: 

FTP user

Viney Kumar
Regular Advisor

FTP user

Hi ALL

I have to create a FTP user.this user is only allowed to ftp from a certain directory, and he cant view or list any other file or directory, i want to be denied even from cd / .. he cant list root or any other directory , only the directory he is supposed to FTP from.

please suggest
8 REPLIES
Victor Fridyev
Honored Contributor

Re: FTP user

Hi,

In order to prevent an access for FTP user to directories other than his own, define the home directory as follows:
/home/ftp/./ftpuser:/bin/false

HTH
Entities are not to be multiplied beyond necessity - RTFM
Horia Chirculescu
Honored Contributor

Re: FTP user

Hello,

If you need read-only access (as anonymous -or ftp- special account do), then you could use the ftpaccess in order to set up an guest group.

Basically you need to edit /etc/group to make a group let's say you call it ftponly

Second you need to assign the user/users to that group and in the last part you should modify the file "ftpaccess" (man ftpaccess ;you can find the file here:
/etc/ftpd/ftpaccess
) in order to add the line:

guestgroup ftponly

Best regards from Romania,
Horia Chirculescu

Best regards from Romania,
Horia.
Steven Schweda
Honored Contributor

Re: FTP user

man ftpd

Look for "guest". There are some details,
if you want "ls" (LIST) to work.
Ivan_86
Frequent Advisor

Re: FTP user

Please check the docuement attached

Regards
Michael Steele_2
Honored Contributor

Re: FTP user

Hi

Check out ftpaccess

http://docs.hp.com/en/B2355-90696/ftpaccess.4.html

For example:

Hi

Use /etc/ftpd/ftpaccess

upload /home/user1 /path/to/upload/dir yes user1 group1 0666

file: any written to /home/user1 dir
user: user1
group: group1
perm of an file in /home/user1: 066
Support Fatherhood - Stop Family Law
Suraj K Sankari
Honored Contributor

Re: FTP user

Hi,

You need to used chroot (FTP Jail)
see the attached txt file which i got from net or see this link also for reference.

http://onlamp.com/bsd/2003/09/04/jails.html

Suraj
Suraj K Sankari
Honored Contributor

Re: FTP user

Hi again,
Sorry forget to attached the file.

Suraj
Michael Steele_2
Honored Contributor

Re: FTP user

You know, you are on here almost every day, rarely give more than 4 points and only 59 of 126 questions.

Why don't you just send next months check?
Support Fatherhood - Stop Family Law