From charlesreid1

No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Useful sysadmin-related tasks.
Useful sysadmin-related tasks.
See also [[Deployment/New Node Checklist]] for some useful scripts and steps.
==Users and Groups==


To add groups:
To add groups:
Line 12: Line 16:
useradd git
useradd git
</pre>
</pre>
To modify users and add them to a group:
<pre>
usermod -G ssl-certs git
</pre>
==Files and Permissions==
Change group permissions of a file:
<pre>
chgrp GROUP FILE
</pre>
{{Unix}}
[[Category:Deployment]]

Latest revision as of 09:17, 28 October 2017

Useful sysadmin-related tasks.

See also Deployment/New Node Checklist for some useful scripts and steps.

Users and Groups

To add groups:

groupadd ssl-certs

To add users:

useradd git

To modify users and add them to a group:

usermod -G ssl-certs git

Files and Permissions

Change group permissions of a file:

chgrp GROUP FILE