Difference between revisions of "Linux"
Jump to navigation
Jump to search
| Line 4: | Line 4: | ||
=== create group and add users to the group === | === create group and add users to the group === | ||
| + | <syntaxhighlight lang="Bash" line='line'> | ||
sudo groupadd metagenlab | sudo groupadd metagenlab | ||
| Line 9: | Line 10: | ||
# G: group | # G: group | ||
sudo usermod -a -G <group> <user> | sudo usermod -a -G <group> <user> | ||
| − | + | </syntaxhighlight> | |
* group file conf | * group file conf | ||
<syntaxhighlight lang="Bash" line='line'> | <syntaxhighlight lang="Bash" line='line'> | ||
| − | /etc/group | + | cat /etc/group |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 10:08, 9 October 2018
user/groups
create group and add users to the group
1sudo groupadd metagenlab
2
3# a: append
4# G: group
5sudo usermod -a -G <group> <user>
- group file conf
1cat /etc/group