Posts

Showing posts from November, 2017

Linux_Users' accounts (creation, permissions, editing)

# sudo lid -g wheel list of users with sudo-permissions # cat /etc/passwd list of users # sudo adduser username # passwd username # usermod -aG wheel username Creation user and provide him sudo-permissions #sudo username -l newuser olduser Rename user #userdel username #userdel -r username Delete user and his home-directory -------------------------------------------------------- Other way: login to root: #su #visudo (opens file with editing user's sudo) Copy there root user line (in  ## Allow root to run any commands anywhere)  and past it with other username: root    ALL=(ALL)       ALL NewUserName    ALL=(ALL)       ALL :x (to save and exit)