1846781 Members
4048 Online
110256 Solutions
New Discussion

Ftp only problem

 
Filosofo
Regular Advisor

Ftp only problem

Hello,
I have create a ftponly user without restriction of directory.
When I log trough ftp I can't change in less directories.
Example
ftp pluuy
Name:amss
Password:****
pwd
output of pwd --> "/"
cd piu
pwd
output of pwd --> "/piu
cd /home
pwd
output of pwd --> "/"
cd ..
output of pwd --> "/"

I see this entrie in /etc/passwd files
smart:*:2172:107:Utente-Applicativo,,,:/home/smart:/usr/bin/ftpshell

I hope that somebody can help me

Hello

Sistem engeneer expert
4 REPLIES 4
Ian Dennison_1
Honored Contributor

Re: Ftp only problem

try creating /home/smart/usr/bin and putting '/usr/bin/ls' and '/usr/bin/pwd' in there.

Share and Enjoy! Ian
Building a dumber user
Chris Vail
Honored Contributor

Re: Ftp only problem

I'd never heard of ftpshell before reading your post. A quick googling shows that this is either A) something still under development by the open-source community, or B) A symbolic link to /bin/false. Its probably not a product supported by HP. If it is, please provide specifics, as I'd like to investigate it further. You might want to use another shell for your user. I prefer the Korn shell, but then I'm old-fashioned.
Otherwise, I'd check to make sure that the /home directory is actually there on that system.


Chris
Ian Dennison_1
Honored Contributor

Re: Ftp only problem

Quick thought,...

Does /usr/bin/ftpshell exist, and is there an entry in /etc/shells for it?

Share and Enjoy! Ian
Building a dumber user
Chris Wong
Trusted Contributor

Re: Ftp only problem

It sound like this is set-up as a restricted FTP user. I noticed that you FTP'd using the username amss, but showed us the entry for user named smart in the /etc/passwd.

- Chris