Page 1 of 1

Adding a user to proFTPD

PostPosted: 30. November 2015 03:02
by Red Dragon
How exactly can I added a new user to proFTPD on a new setup?

Re: Adding a user to proFTPD

PostPosted: 30. November 2015 12:49
by Nobbie
proftpd uses the Linux Users for login (the same UserIDs that are known on your Linux).

Under Linux, UserIds can be created via the useradd command. See your Linux manual.

Re: Adding a user to proFTPD

PostPosted: 23. December 2015 23:32
by Red Dragon
well I didn't think I needed to create a new Linux user just to add another account to proFTPD but I then I found that you can use Virtual Users. I got it working with two users now but I would like to know how I can have them access two different Directories. One ftp account for one folder and another account for another folder so that I can run two websites on my server?

Re: Adding a user to proFTPD

PostPosted: 25. December 2015 07:08
by Red Dragon
I found how to add virtual users with different Directories but my problem is that I know that xampp runs on the daemon user but the the files added by the virtual users are own by them. Is there a way to have the files uploaded by virtual users to be owned by the daemon user?

Re: Adding a user to proFTPD

PostPosted: 25. December 2015 11:55
by Nobbie
Red Dragon wrote:but the the files added by the virtual users are own by them. Is there a way to have the files uploaded by virtual users to be owned by the daemon user?


Are your sure? How can a file be owned by a "Virtual User" (which is only known to proftpd, but not to the system!)? Files are owned by the known users of the Linux system. I think, that all files belong to the "daemon" user, which is the only known user in your linux.

Re: Adding a user to proFTPD

PostPosted: 26. December 2015 01:49
by Red Dragon
lol the answer was so simple. No, the files are added as the UID the Virtual User has. All I had to do was to set the UID of the Virtual Users to be the same as the UID of the daemon user.

Re: Adding a user to proFTPD

PostPosted: 26. December 2015 10:46
by Nobbie
Red Dragon wrote:lol the answer was so simple. No, the files are added as the UID the Virtual User has. All I had to do was to set the UID of the Virtual Users to be the same as the UID of the daemon user.


If there is "VIrtualUser" with a real UID, it is no Virtual User, it is a real user. It sounds very strange. What is the difference between a "Virtual User" and normal user?

Re: Adding a user to proFTPD

PostPosted: 27. December 2015 01:39
by Red Dragon
I don't really understand it was well but the files uploaded by the virtual user had the owner of them being the UID of the virtual user