User Management: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
|||
Line 35: | Line 35: | ||
vi /etc/passwd | vi /etc/passwd | ||
</pre> | </pre> | ||
Find the user in question and modify assigned number, | Find the user in question and modify assigned number, in this example 501:501 to be 0:0 | ||
example<br> | example<br> | ||
from | from |
Latest revision as of 09:57, 1 December 2014
Create
useradd -m <username>
Delete
userdel -r <username>
Change Password
passwd <username>
Disable Account
passwd -l <username>
Assign root permissions
For Debian
vi /etc/sudoers
<username> ALL=(ALL) NOPASSWD: ALL
Impersonate root
For CentOS/Linux and Debian
Give an account root permissions. (Different from above)
This will make the user seen as root even though logged in as a different account.
vi /etc/passwd
Find the user in question and modify assigned number, in this example 501:501 to be 0:0
example
from
timmy:x:501:501::/home/timmy:/bin/bash
to
timmy:x:0:0::/home/timmy:/bin/bash