![]() Lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin Man:x:6:12:man:/var/cache/man:/usr/sbin/nologin Games:x:5:60:games:/usr/games:/usr/sbin/nologin : /root $sudo cat /etc/passwdĭaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin Now again, I tested nonu user and Found it is working fine as sudo user. ![]() To run a command as administrator (user "root"), use "sudo ". I switched to nonu user account, and I got the following message To run a command as administrator (user "root"), use "sudo ". See the following example: nonu sudoĭone. I am going to add user (nonu) to sudo user so I used nonu instead of the username. and Normal user will be super user within seconds. The first method is very easy, you just run the following command. Add user to sudoers (Sudo group) Method 1 It means normal user can’t run sudo command. ![]() In the result getting error to run sudo command. Now I run the following command to test sudo privileges. You can see in the above example, I switched to nonu user. I am going to follow instruction to test new user.įirst I used the following command to switch from root user to normal user (nonu) su nonu : /root $ You should check first “Is it able to run sudo command or not?” Once you have confirmed, please write in the comment box what happened with your system Is the information correct? Y you have created a new user. Įnter the new value, or press ENTER for the default Check out How to Create User in Linux by Adduser nonuĪdding new user `nonu' (1001) with group `nonu'. One of my another post, I have described about creating new users. Step 1: Login to your Linux system / Server with root user.įirst, You will add a new normal user with strong password. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |