Changes
Jump to navigation
Jump to search
Test Web Server Documentation (view source)
Revision as of 14:36, 25 January 2016
, 14:36, 25 January 2016no edit summary
* Other Extensions
====Creating Users====
Assuming that you have root, you can create user accounts and give them root too. The process is:
First create the users group, checking the last group number:
cat /etc/group
/usr/sbin/groupadd -g 515 username
Then add the user
/usr/sbin/useradd -g username -G root -s /bin/bash -p xxxx -d /home/username -m username
where g is the primary group, G is other groups, p sets a password,
d declares a home directory and m makes the directory
Change the user's password:
passwd username
And add the user to the sudoers file
echo 'username ALL=(ALL) ALL' >> /etc/sudoers
To delete a user:
/usr/sbin/userdel -r roger
where r removes the home directory
And to remove their group
/usr/sbin/groupdel username