Re: [Proftpd-user] ftpasswd --group question

TJ Saunders <[email protected]>
Newsgroups gmane.network.proftpd.user
Message-ID <1509506680.3900936.1157624944.4D428BEC@webmail.messagingengine.com>
> Thanks for the quick response.   I have another related question.  I am
> assuming that a group can contain multiple users.

Yes.

> Executing the 2 commands in succession 
> ftpasswd --group --file /sftp-config/proftpd.group --name  business_users
>  --gid 1200 --member  john   ftpasswd --group --file
> /sftp-config/proftpd.group --name  business_users  --gid 1200 --member 
> mary
> 
> 
> should be identical to 
> ftpasswd --group --file /sftp-config/proftpd.group --name  business_users
>  --gid 1200 --member  john  --member mary
> 
> 
> But it looks like using the first method, the 2nd command  will overwrite
> the first entry in group file.  In the above case,  john was added to the
> group file and then marry overwrites his entry.

Unfortunately yes, ftpasswd, used as above, does not *add* the new
member, but rathers *sets* the members of the existing group to just the
list of members specified.  I've filed another ticket to handle this use
case (adding a new member to an existing group):

  https://github.com/proftpd/proftpd/issues/625

Cheers,
TJ

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ProFTPD Users List   <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.