Ftp users accessing other folder in VSFTPD
Hi,
After about a week of reading and using this forum :D I have successfully configured the vsftp server (I think :confused:!) I have setup 2 users one ftpadmin and the other webclient. Ftpadmin can do anything they like in the folder /home/ftpdocs Webclient can only read and execute in the folder /home/ftpdocs Whenever I log in as webclient I can also see the other folders like /etc, /boot, /var, etc etc. Does anybody know how I can stop this. If you need anymore info then please let me know. VJ |
Look into the vsftpd chroot options:
man vsftpd.conf |
in /etc/vsftpd.conf
chroot_local_user=YES and /home/ftpdocs should be webclient's home |
Thanks guys for that fast response:D
I managed to figure it out after reading about chroot. Another problem I have is that when logged in to the ftp accounts I can see the following files: .bash_logout .bash_profile .bashrc .emacs .gtkrc Any ideas on how to hide these? :confused: VJ P.S. using RH9 with vsftpd that came with it |
There doesn't seem to be an option in vsftpd.conf not to show hidden files.
I think it is an option in the FTP client. |
If you don't have a shell account that uses that folder as its home then you can just delete them.
|
Hello Peeps thanks for all your help!
I have finally managed to setup FTP and can access it on the internal lan, but when i try and access it from outside the lan I got the following message in SmartFTP: Resolving host name 217.34.x.x... Connecting to (217.34.x.x) -> IP: 217.34.x.x PORT: 21 Connected to (217.34.x.x) -> Time = 10ms Socket connected waiting for login sequence. 220 Welcome to blah FTP service. USER ftpadmin 331 Please specify the password. PASS (hidden) 230 Login successful. Have fun. SYST 215 UNIX Type: L8 FEAT 500 Unknown command. REST 100 350 Restart position accepted (100). REST 0 350 Restart position accepted (0). PWD 257 "/" TYPE A 200 Switching to ASCII mode. PASV 227 Entering Passive Mode (217,34,x,x,122,118) Opening data connection IP: 217,34,x,x,122,118 PORT: 31350. The operation completed successfully. PORT 192,168,254,2,4,2 200 PORT command successful. Consider using PASV. Opening data connection IP: 192.168.254.2 PORT: 1026. LIST -aL Connection closed. Server timeout. I have ADSL and am using the built in firewall in the Efficient 5861 ADSL Router. I have forwarded ports 21 to the FTP server but still no go. Any ideas? VJ |
All times are GMT -5. The time now is 04:19 PM. |