Ubuntu:Edgy th/UserAdministration
From
[edit]
User Administration
[edit]
How to set/change/enable root user password
- Read #General Notes
sudo passwd root
[edit]
How to disable root user account
- Read #General Notes
sudo passwd -l root
[edit]
How to allow root user to login into GNOME
- Read #General Notes
- Read #How to set/change/enable root user password
- System -> Administration -> Login Screen Setup
- Login Screen Setup
Security Tab -> Security -> Allow root to login with GDM (Checked)
[edit]
How to switch to root user in Console mode
- Read #General Notes
sudo -s -H Password: <specify user password>
[edit]
How to add/edit/delete system users
- Read #General Notes
- System -> Administration -> Users and Groups
- Users and Groups
Users Tab -> Add User.../Properties/Delete
- or
sudo useradd jim sudo userdel jim
- For more info read
man usermod
[edit]
How to add/edit/delete system groups
- Read #General Notes
- System -> Administration -> Users and Groups
- Users and Groups
Groups Tab -> Add Group.../Properties/Delete
[edit]
How to automatic login into GNOME (not secure)
- Read #General Notes
- System -> Administration -> Login Window
Security Tab -> Enable Automatic Login (Checked) Now choose a user from the drop-down menu.
[edit]
How to allow more sudoers
- Read #General Notes
EDITOR=gedit sudo visudo
- Append the following line at the end of file
system_username ALL=(ALL) ALL
- Save the edited file
OR since everyone in the admin group can use sudo:
sudo adduser a_username admin
This appends the admin group to the user's supplementary group list. They will now have sudo access.
[edit]
How to use "sudo" without prompt for password (not secure)
- Read #General Notes
EDITOR=gedit sudo visudo
- Find this line
... system_username ALL=(ALL) ALL ...
- Replace with the following line
system_username ALL=(ALL) NOPASSWD: ALL
- Save the edited file
[edit]
How to explicitly destroy the "sudo" session
- Read #General Notes
sudo -K
[edit]
How to change files/folders permissions
- Read #General Notes
Right click on files/folders -> Properties
Permissions Tab -> Read/Write/Execute (Checked the permissions for Owner/Group/Others)
[edit]
How to change files/folders ownership
- Read #General Notes
sudo chown system_username /location_of_files_or_folders
[edit]
How to change files/folders group ownership
- Read #General Notes
sudo chgrp system_groupname /location_of_files_or_folders

