Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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'm looking for a simple FTP server to run as non-root, standalone, and on demand. It's on a closed network, so security is not a concern (although file shares aren't an option... bit of a story, but just roll with it...). I just need to set the home folder, and the port. What are my options?
Now for the background. I used to run thttpd as a simple way to move files one direction, but I want to upload as well as download. (thttpd was very simple to get running - just pointed a config file at it, and away you go.) I tried and failed with vsftpd (the run_as_launching_user didn't help), and I've played with proftpd, but it looks like there area LOT of files scattered around the system that it depends on, so it might cause permission problems? Is there a quick-and-easy way to setup proftpd for it to work? Or do I have other ftp options?
...the configuration file is usually at /etc/vsftpd.conf
I did try to edit that config file with the run_as_launching_user option that the documentation talked about, but it still didn't work for me (when I tried to run it, it still said it needed to be run as root). Have you run vsftpd as non-root? What config options did you use?
I did try to edit that config file with the run_as_launching_user option that the documentation talked about, but it still didn't work for me (when I tried to run it, it still said it needed to be run as root). Have you run vsftpd as non-root? What config options did you use?
I have never tried to run any server daemon as any user but the server user itself. The default user for VSFTPD is ftp (ftp is the actualy username).
Editing the /etc/vsftpd.conf file needs to be done as root. However, the program runs as a daemon (or service) that can be started automatically at boot or manually by the root user.
Editing the /etc/vsftpd.conf file needs to be done as root. However, the program runs as a daemon (or service) that can be started automatically at boot or manually by the root user.
That is what I tried, but I was only able to start the server as the root user, which is not what I'm looking for. Is anyone out there running an ftp server as non-root?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.