User Management: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
New page: To Create a user on a Linux system <pre> useradd <username> </pre> To Delete a user <pre> userdel <username> </pre> To change a users password <pre> passwd <username> </pre> [[Category : L... |
No edit summary |
||
Line 5: | Line 5: | ||
To Delete a user | To Delete a user | ||
<pre> | <pre> | ||
userdel <username> | userdel -r <username> | ||
</pre> | </pre> | ||
To change a users password | To change a users password | ||
<pre> | <pre> | ||
passwd <username> | passwd <username> | ||
</pre> | |||
To disable an account | |||
<pre> | |||
passwd -l <username> | |||
</pre> | |||
Give an account root permissions | |||
<pre> | |||
vi /etc/sudoers | |||
</pre> | |||
<pre> | |||
<username> ALL=(ALL) NOPASSWD: ALL | |||
</pre> | </pre> | ||
[[Category : Linux]] | [[Category : Linux]] |
Revision as of 03:20, 29 March 2014
To Create a user on a Linux system
useradd <username>
To Delete a user
userdel -r <username>
To change a users password
passwd <username>
To disable an account
passwd -l <username>
Give an account root permissions
vi /etc/sudoers
<username> ALL=(ALL) NOPASSWD: ALL