cancel
Showing results for 
Search instead for 
Did you mean: 

FTP User

 
SOLVED
Go to solution

FTP User

root user is able to ftp to my server. I need to create a user that is able to ftp as well and need guidance. I have created the user and this user is able to sftp.
13 REPLIES
Ganesan R
Honored Contributor

Re: FTP User

Hi,

By default, all the users will be given ftp access unless the users is explicitely mentioned in /etc/ftpd/ftpusers file.

Also make sure the user's shell is listed in /etc/shells
Best wishes,

Ganesh.

Re: FTP User

I dont have a /etc/shells
Steven E. Protter
Exalted Contributor

Re: FTP User

Shalom,

Any user created on the system has ftp/sftp privileges.

You can limit access depending on shell choice and other configuration.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: FTP User

Can you please elaborate, what shell should the user have and what group membership.

Why would my system not have the /etc/shells ?
Ganesan R
Honored Contributor

Re: FTP User

Hi,

Have you tried to ftp as new user?

Did you get any error messeage while do ftp?

Best wishes,

Ganesh.

Re: FTP User

I have tried as new user. I get the following.

Connected to its.wsu.ac.za.
220 its FTP server (Version 1.1.214.4(PHNE_34544) Fri Feb 24 15:03:24 GMT 2006)
ready.
User (its.wsu.ac.za:(none)): slubbe
530 User slubbe access denied...
Login failed.
ftp>
Steven Schweda
Honored Contributor

Re: FTP User

> Why would my system not have the
> /etc/shells ?

No one has created it yet? "man ftpd".

> Did you get any error messeage [...]

I agree. Try something, and then complain
when it fails.
Ganesan R
Honored Contributor

Re: FTP User

>>Why would my system not have the /etc/shells ? <<<

It is not unusual that /etc/shells does not exist. It is just a ascii file which you can create manually.

you should have specified a user login shell in /etc/password. Put the same login shell in /etc/shells also.

You can create a /etc/shells file and put the following entries..

# more /etc/shells
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/csh
/usr/bin/false
Best wishes,

Ganesh.
Steven Schweda
Honored Contributor

Re: FTP User

> 530 User slubbe access denied...

That's better. Now, try a Forum search for
keywords like, say:

FTP 530 "access denied"
Ganesan R
Honored Contributor
Solution

Re: FTP User

Hi Again,

>>>530 User slubbe access denied...
Login failed.<<<

Did you checked the file /etc/ftpd/ftpusers and the new user name is exist on that file?

If that file doesn't exist or doesn't have new username on it, create /etc/shells and put the user login shell as I have mentioned..
Best wishes,

Ganesh.

Re: FTP User

Great. I created the shells file and works.

Thanks
Avinash20
Honored Contributor

Re: FTP User

Login to the server

# cat /etc/passwd| grep slubbe

Add that shell in /etc/shells

Its better you create a /etc/shells files and add the lines as told by Mr. Ganesh above.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: FTP User

Oops.. I am too late
"Light travels faster than sound. That's why some people appear bright until you hear them speak."