Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RedHat 9 & vsftp

Status
Not open for further replies.

Zyxian

Technical User
Apr 29, 2002
42
US
Hello.
Code:
I was using RH8 and wu-ftp.  I had users who only had access via ftp.  The entry for shell in the passwd file had /etc/ftponly.  When they logged in via ftp they only saw their directory and could not move up above it.
I have a fresh install of RH 9 and it came with vsftp.  I recreated the accounts.  I [i]thought[/i] all I ad to do was again change the shell entry to /etc/ftponly.  No go.  Can't log in.  On a test account, I changed the shell entry to bash and could log in AND I could move up the directory tree.
I'm searching RH's site for vsftp to see what I have to use/change to get it back to the way it was.
Can any one save me time?
Thanks.

Zyxian
I Learn More When Something Goes Wrong.
 
Hi,

In vsftp there is a built-in function to set user chroot. Open you /etc/vsftpd.conf file and uncommnet line:

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

In file /etc/vsftpd.chroot_list insert any username you want to chroot. When user login the only stay within user home directroy.

Make sure you restart your xinetd.

regards,
feroz
 
Thanks. Worked like a charm.

I forgot to say that I only want the users to have ftp access. ftponly was great. Allowed to ftp but no telnet/ssh access.

I will search here to find the fix.

Zyxian
I Learn More When Something Goes Wrong.
 
I found what I was doing wrong. I believe all is well.

Zyxian
I Learn More When Something Goes Wrong.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top