User accounts: Difference between revisions

Jump to navigation Jump to search
iwu
 
Line 1: Line 1:
= User Accounts =
= Groups =


== Groups ==
== Add a new group ==
 
=== Add a new group ===


<source lang="bash">
<source lang="bash">
Line 9: Line 7:
</source>
</source>


=== Delete a group ===
== Delete a group ==


<source lang="bash">
<source lang="bash">
Line 15: Line 13:
</source>
</source>


=== Add a user to a group ===
== Add a user to a group ==


<source lang="bash">
<source lang="bash">
Line 21: Line 19:
</source>
</source>


=== Set a directory writable by a certain group ===
== Set a directory writable by a certain group ==


Make /srv/www folder readable/writable/executable by dev group
Make /srv/www folder readable/writable/executable by dev group
Line 29: Line 27:
</source>
</source>


== Add a user account ==
= Add a user account =


<source lang="bash">
<source lang="bash">
Line 36: Line 34:
</source>
</source>


== Delete a user account ==
= Delete a user account =


Force removal and delete files
Force removal and delete files
Line 50: Line 48:
</source>
</source>


== Lock or unlock a user account ==
= Lock or unlock a user account =


<source lang="bash">
<source lang="bash">
Line 57: Line 55:
</source>
</source>


== Adding sudoers ==
= Adding sudoers =


A file can be added for groups of users or specific users to /etc/sudoers.d/ directory. This line would make someone a sudoer with no password requirement.
A file can be added for groups of users or specific users to /etc/sudoers.d/ directory. This line would make someone a sudoer with no password requirement.

Navigation menu