Grouping users

9 views
Skip to first unread message

jlm25

unread,
Nov 23, 2008, 8:43:16 AM11/23/08
to Pureadmin Discussions
Im very interested in getting some form of automation in my linux ftp
server. Is there a solution where i can set up a group with the
relevant permissions and then add users to it. Each time a new user is
added i could then add them to that group and the only administration
(although it would be great if it was automated at user creation) was
to create home folder with both read and write permissions. Is this a
pipe dream or is it already possible and i've completely misunderstood
the various readmes for the linux based ftp servers?

Please help!

Isak Savo

unread,
Nov 26, 2008, 2:40:11 PM11/26/08
to pureadmin-...@googlegroups.com

For new users, you can specify which group they should belong to, both
for ftp-users (if you are using pure-ftpd's own user database) and for
standard linux users (i.e. the "system users").

For pure-ftpd users you use the -g switch to pure-pw:
pure-pw useradd the-username -g ID_OF_THE_GROUP .... (add more
parameters here if needed)

For system users, the useradd command accepts the --groups and --gid arguments:
useradd --groups group1,group2,group3 my-new-user
or
useradd --gid 1234 my-new-user

Hope this helps
-Isak

Reply all
Reply to author
Forward
0 new messages