Adding & removing groups (cmd:groupadd, cmd:groupdel) 

*Tags*: new group

For files sharing over different systems, they must at least to have the same group id.

  1. get the client group id (on sunshine)

    $ id
    uid=1001(tong) gid=1001(tong) groups=1001(tong)
  2. create the same group id on the org server (iitrc)

    # groupadd -g 1001 tong
    # tail /etc/group
    ...
    tong::1001:
  3. on source, change umask and create a file

    iitrc:~$ umask 006
    iitrc:~$ id
    uid=1006(tong) gid=1001(tong) groups=1001(tong),1(other)
    iitrc:~$ touch aaab
  4. on client, see the result