... | ... | @@ -22,7 +22,7 @@ Either your group is already *project*: |
|
|
uid=34105(alainm) gid=109(project) groups=401(sit),517(galilee),485(gspspec), 109(project)...
|
|
|
```
|
|
|
|
|
|
or you need to start a new shell with tha group through the **newgrp* command:
|
|
|
or you need to start a new shell session with that group through the **newgrp* command:
|
|
|
```
|
|
|
[alainm@zztop ~]$ id alainm
|
|
|
uid=34105(alainm) gid=401(sit) groups=401(sit),517(galilee),485(gspspec), 109(project)...
|
... | ... | @@ -30,11 +30,10 @@ uid=34105(alainm) gid=401(sit) groups=401(sit),517(galilee),485(gspspec), 109(pr |
|
|
[alainm@zztop ~]$ id alainm
|
|
|
uid=34105(alainm) gid=109(project) groups=401(sit),517(galilee),485(gspspec), 109(project)...
|
|
|
```
|
|
|
|
|
|
**DO NOT** use the **newgrp** command in you shell config script, as that command start a new shell...
|
|
|
|
|
|
That change is specific to the current session.
|
|
|
|
|
|
**DO NOT** use the **newgrp** command in you shell config script, as that command start a new shell. You can **ask** support to make that group your default gid if you want.
|
|
|
|
|
|
From now own, the files you will be creating will have the group project:
|
|
|
```
|
|
|
[alainm@zztop ~]$ touch znort
|
... | ... | @@ -45,5 +44,14 @@ From now own, the files you will be creating will have the group project: |
|
|
|
|
|
### Setting new files permissions
|
|
|
|
|
|
If you want to share files inside a group, you might want to allow group members to read, write or execute those file. Use the the **umask** command to automatically set the permissions of the files you create. Here:
|
|
|
```
|
|
|
[alainm@zztop ~]$ umask 0007
|
|
|
[alainm@zztop ~]$ umask
|
|
|
0007
|
|
|
[alainm@zztop ~]$
|
|
|
```
|
|
|
Group member will have the same permissions as you for your newly created file, while other user won't have any permissions.
|
|
|
|
|
|
## Tips & tricks
|
|
|
* [Knowing the footprint of your directories](Storage/Knowing the footprint of your directories) |