LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-10-2005, 06:44 PM   #1
studeman
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
vsftp server


I am using SuSE 9.2 pro with Samba to do local file serving inside my soho network. I have a specific mount/directory were I keep files. I would like to use vsftp to allow about 6 people read-only access to these files.

I am new to setting up FTP servers, but I have vsftp running, and I can access it both internally and externally.

Now, I want each person to have their own username. I would like this for logging purposes.

Once logged in, they should all see the exact same directory structure.

How do I go about setting that up? Do I create the users and set the home directories to be the same path?

Please advise. Thanks
 
Old 03-10-2005, 08:58 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
If I'm reading the vsftpd manpage correctly, to limit access to specific users, you set userlist_deny to NO and then list the users you want to allow in the userlist_file file.

To get them all in the same directory, it looks like you need to set the local_root to a directory. Again, if I'm understanding the manpage correctly, local_root forces all non-anonymous users to that directory.

As long as you leave the write_enabled set to NO, users should only be able to download, not upload.

If you want the users to not have a home directory, you can create the users with adduser -M, which prevents a home directory from being created.
 
Old 03-11-2005, 05:59 PM   #3
studeman
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the help. I got it solved. I added two lines to my /etc/vsftpd.conf

local_root=/myftpdir

I also didn't want them to navigate above that directory, and I accomplished that by:

chroot_local_user=YES

Thanks again for the help!
 
Old 03-12-2005, 12:56 AM   #4
mole_13
LQ Newbie
 
Registered: Mar 2005
Location: philippines
Posts: 13

Rep: Reputation: 0
im new with installing ftp server, can you give me a detailed procedure =)
im using slackware.
thnks for your help =).
 
Old 03-12-2005, 07:24 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Quote:
Originally posted by mole_13
im new with installing ftp server, can you give me a detailed procedure =)
im using slackware.
thnks for your help =).
You're going to have to be more specific with your questions. If you did a full install, Slackware already has an FTP server ready to go, you just need to configure it to your tastes. For 10.1, Slackware switched to vsftpd, prior to that it used ProFTP.
 
  


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
vsftp server icedude Linux - Newbie 3 06-15-2006 08:06 PM
problem configuring vsftp server juanb Linux - General 11 09-26-2005 11:01 PM
vsftp server seshank Linux - Software 3 04-11-2005 07:40 PM
VSFTP server set up pradi_net Linux - General 3 05-05-2004 04:49 AM
problems setting up apache and vsftp server behind a router that serves as a server xone Linux - Security 1 04-08-2004 10:46 AM


All times are GMT -5. The time now is 09:02 PM.

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