Difference between revisions of "Administrative Account"
Jump to navigation
Jump to search
(Created page with "The following instruction steps are inspired by the article<ref>https://www.cyberciti.biz/faq/add-new-user-account-with-admin-access-on-linux/</ref>: To add a new user accoun...") |
|||
Line 12: | Line 12: | ||
su - xlp | su - xlp | ||
# Then run some <code>sudo</code> command | # Then run some <code>sudo</code> command | ||
sudo ls -l /etc/ | |||
If the the above worked, you have created an administrative account with user name:<code>id xlp</code>. |
Revision as of 00:15, 9 July 2021
The following instruction steps are inspired by the article[1]:
To add a new user account with administrator access, one must follow these steps:
- Log in to the system with root access, using a terminal applications.
- Create a new user name, say
xlp
, by using theadduser
command:
adduser xlp
- Make the user xlp, possess
admin
rights.
usermod -aG sudo xlp
- Verify its rights using
id xlp
- Log in as
xlp
, by key in the following command
su - xlp
- Then run some
sudo
command
sudo ls -l /etc/
If the the above worked, you have created an administrative account with user name:id xlp
.