PDA

View Full Version : Different User/Group


wfx
17th March 2006, 21:22
Hi,
First sorry for my ask in comments (have not see the note about that).
I follow the HowTO:
http://www.howtoforge.com/proftpd_mysql_virtual_hosting_p3
And all works fine (is a realy good HowTo)!

My problem is.
I cant find the way how to use a different user and group for a ftp user.
Example:
FTP User: daisy
Home: /home/daisy as
User: daisy and
Group: users

FTP User: gambit
Home: /home/gambit as
User: www and
Group: www

thx.
wfx

falko
18th March 2006, 12:18
Are you referring to the ftpuser table? uid and gid must always have the same values!

wfx
18th March 2006, 20:18
I setup in ftpgroup:
groupname gid members
ftpgroup 2001 ftpuser
www 33 www

Then in ftpuser:
userid uid gid
daisy 2001 2001
gambit 33 33

i log in as gambit an create a directory "dada"
and then i look on it :
ftp> ls -l
200 PORT command successful
150 Opening ASCII mode data connection for file list
drwxr-xr-x 2 gambit (?) 4096 Mar 18 19:10 dada
226 Transfer complete.

If i view it on the server i get:
root@philoctetes:~# ls -l /home/gambit/
drwxr-xr-x 2 65533 65533 4096 2006-03-18 20:10 dada

The group www real exist.
Please what do i wrong?

wfx
22nd March 2006, 17:51
Are you referring to the ftpuser table?
Maybe this is the point, referring from to and how?

uid and gid must always have the same values!
this looks right to me.

falko
22nd March 2006, 18:56
Maybe this is the point, referring from to and how?

I meant that you must put the correct values into the ftpuser MySQL table.

wfx
24th March 2006, 17:48
Then in ftpuser:
userid uid gid
daisy 2001 2001
gambit 33 33

I use 33 for gambit with the result i post.

Ok. thx maybe it is not the way for me to go.

falko
24th March 2006, 20:03
Please try a group ID above 1000.

wfx
24th March 2006, 22:59
the group with the id 33 is set by the system (distribution) real name is
www-data (for files under htdocs).

thx.