1845900 Members
5235 Online
110250 Solutions
New Discussion

Create user

 
Samboja
Advisor

Create user

Dear all,

Does anybody know how to create user who allowed ftp only..?

Thanks 4 ur help.

BR,

Sam
6 REPLIES 6
David_246
Trusted Contributor

Re: Create user

Hi,

We just give the user a shell /usr/bin/false
and a homedirectory of : /ftp/path/./

Which means he can never get a shell and if he ever gets one, the user is chroot'ed (limited) to only use /ftp/path/

Regs David
@yourservice
Balaji N
Honored Contributor

Re: Create user

Hi,

We use the following setup.

1. the shell for such users is set as /usr/bin/passwd.
2. /usr/bin/passwd is added to /etc/shells

user can ftp. and in case he needs to change the password, does a telnet to the server. he is prompted to change the password and after that the shell exits.

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
E Reus
New Member

Re: Create user

HI,

IF you are using proftpd
you can make a useraccount with
shell /bin/false. Be sure this one is in /etc/shells
In proftpd.conf put this line
RequireValidShell off

Regards,

Erik
E Reus
New Member

Re: Create user

HI,

IF you are using proftpd
you can make a useraccount with
shell /bin/false. Be sure this one is in /etc/shells
In proftpd.conf put this line
RequireValidShell off

Regards,

Erik
E Reus
New Member

Re: Create user

HI,

IF you are using proftpd
you can make a useraccount with
shell /bin/false. Be sure this one is in /etc/shells
In proftpd.conf put this line
RequireValidShell off

Regards,

Erik
T G Manikandan
Honored Contributor

Re: Create user

you should set the user's shell to have /usr/bin/false.

ALso /usr/bin/false should be added in /etc/shells file.

For more controlled access you can utilize the /etc/ftpd/ftpaccess file.


THanks