LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-09-2004, 04:52 AM   #1
VJD
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Rep: Reputation: 0
Ftp users accessing other folder in VSFTPD


Hi,

After about a week of reading and using this forum I have successfully configured the vsftp server (I think !)

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
 
Old 01-09-2004, 08:49 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Look into the vsftpd chroot options:
man vsftpd.conf
 
Old 01-09-2004, 08:51 AM   #3
clau_bolson
Member
 
Registered: Nov 2003
Location: Argentina
Distribution: Debian Sarge
Posts: 52

Rep: Reputation: 15
in /etc/vsftpd.conf
chroot_local_user=YES

and /home/ftpdocs should be webclient's home
 
Old 01-09-2004, 09:50 AM   #4
VJD
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks guys for that fast response

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?

VJ
P.S. using RH9 with vsftpd that came with it
 
Old 01-09-2004, 10:46 AM   #5
clau_bolson
Member
 
Registered: Nov 2003
Location: Argentina
Distribution: Debian Sarge
Posts: 52

Rep: Reputation: 15
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.
 
Old 01-09-2004, 12:46 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
If you don't have a shell account that uses that folder as its home then you can just delete them.
 
Old 01-13-2004, 06:16 AM   #7
VJD
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VSFTPD - Seting up virtual folder and users on Fedora Core 2 tosheeba Linux - Networking 2 10-18-2004 04:04 PM
One shared folder for multiple ftp users -- vsftpd rover Linux - Networking 0 06-17-2004 06:07 AM
Making it so users can ftp into there Public_html folder embalmedlenin Linux - General 4 12-13-2003 06:05 PM
FTP only users for vsftpd. jsbush Linux - Newbie 2 10-27-2003 06:13 PM
Error occur when too many users accessing wu-ftp !! alexwcs Linux - Networking 1 09-19-2003 12:52 PM


All times are GMT -5. The time now is 07:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration