LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-02-2010, 01:07 PM   #1
sailingbikeruk
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
vsftpd users


I am new to Linux so thought it would be a good learning exercise to try and setup an FTP server using linux.

I have downloaded and installed Ubuntu 10 server edition and installed vsftpd, following instructions found on here I have configured the software and I can connect from an FTP client on my windows PC across the internal LAN.

I have a couple of questions if I may:

1) a post on this forum suggests that local users can access the FTP server if the correct line is enabled in vsftpd.conf - I have done this and the fact that I can access it shows this is working I would think, however users added subsequently with the useradd command cannot access the server. Filezilla shows a could not connect to server error.

I have restarted vsftpd using - service vsftpd restart

still no success -

to confirm:

ian can logon
bennett can't

2) how do I give the server a fixed IPv4 address? It is currently using DHCP

3) I need to be able to put files into users folders for them to access offsite, but I don't want them to see each others files\folders, can I do this?
 
Old 08-03-2010, 06:18 AM   #2
superfridi
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
I can help you only on DHCP.

-as your ftp server is a dhcp client. so in the dchpd server you have to reserve ip for the client pc(your ftp server). for more info on dhcp search for dhcpd.conf
 
Old 08-03-2010, 08:17 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
For 1:
Code:
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd.user_list
Do you have lines like the above? The users might not be in the user list.
Maybe you can attach your vsftpd.conf file.

For 3:
Code:
#WimS; additional config
#jail user to their homedirectory
chroot_local_user=YES
The above lines in your vsftpd.conf (probably in /etc) will prevent users snooping outside their home directories. It's a good practice anyway as that way they can not get to sensitive system files.

Last edited by Wim Sturkenboom; 08-03-2010 at 08:20 AM.
 
Old 08-06-2010, 03:19 AM   #4
sailingbikeruk
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Original Poster
Rep: Reputation: 0
chroot

Quote:
For 3:
Code:
#WimS; additional config
#jail user to their homedirectory
chroot_local_user=YES
The above lines in your vsftpd.conf (probably in /etc) will prevent users snooping outside their home directories. It's a good practice anyway as that way they can not get to sensitive system files.
Will this not also jail me and prevent me from dropping files in their folders so they can dowmnload them?

the pc I am using as a test box is not on the network and I haven't got USB to work yet so getting files off it onto a machine I can access the internet isn't easy.
 
Old 08-06-2010, 03:26 AM   #5
sailingbikeruk
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by superfridi View Post
I can help you only on DHCP.

-as your ftp server is a dhcp client. so in the dchpd server you have to reserve ip for the client pc(your ftp server). for more info on dhcp search for dhcpd.conf
OK this was silly of me and adding a reservation in the DHCP server would be the easiest answer for now, however, eventually this will be in the DMZ and will be on a different subnet than the DHCP server.

When I changed /etc/network/interface to use a static IP the machine wouldn't boot and I had to re-install everything. Had I missed something, or is this all I need to do to allocate a static IP rather than a reservation?
 
Old 08-06-2010, 04:34 AM   #6
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by sailingbikeruk View Post
Will this not also jail me and prevent me from dropping files in their folders so they can dowmnload them?
Yes; sorry but that requirement was not clear to me; thought you had other means to get the files there.
 
  


Reply



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
Allow System Users and Virtual Users in VSFTPd Nickbrandson Linux - Software 0 01-24-2008 08:06 AM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
vsftpd Users Kane2002 Linux - Software 2 01-02-2007 04:43 AM
public_html not viewable to vsFTPd users but is viewable to HTTP users Luth_AC Linux - Networking 3 06-10-2006 02:27 PM
Users for vsftpd TB_205gti Linux - Software 1 02-01-2006 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:13 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration