Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
-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
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.
#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.
-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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.