Ubuntu:Edgy/UserAdministration
From
User Administration
How to set/change/enable root user password
- Read #General Notes
sudo passwd root
How to disable root user account
- Read #General Notes
sudo passwd -l root
How to allow root user to login into GNOME
- Read #General Notes
- Read #How to set/change/enable root user password
- System -> Administration -> Login Window
- Login Windows Preferences
Security Tab -> Security -> Allow local system administrator login (Checked)
How to switch to root user in Console mode
- Read #General Notes
sudo -s -H Password: <specify user password>
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
How to add/edit/delete system groups
- Read #General Notes
- System -> Administration -> Users and Groups
- Users and Groups
Groups Tab -> Add Group.../Properties/Delete
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.
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.
How to use "sudo" without prompt for password (not secure)
- Read #General Notes
EDITOR=gedit sudo visudo
- Add the following line at the end of the file:
username ALL=(ALL) NOPASSWD: ALL
- Save the edited file
How to explicitly destroy the "sudo" session
- Read #General Notes
sudo -K
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)
How to change files/folders ownership
- Read #General Notes
sudo chown system_username /location_of_files_or_folders
If you want to change ownership of all containing files and folders recursively, use the -R option like this:
sudo chown -R system_username /location_of_files_or_folders
How to change files/folders group ownership
- Read #General Notes
sudo chgrp system_groupname /location_of_files_or_folders
If you want to change group ownership of all containing files and folders recursively, use the -R option like this:
sudo chgrp -R system_username /location_of_files_or_folders
BlogMarks
del.icio.us
digg
Fark
Furl
Newsvine
reddit
Segnalo
Simpy
Slashdot
smarking
Spurl
Wists
