Ubuntu:Edgy/UserAdministration

From

Jump to: navigation, search

Contents

User Administration

How to set/change/enable root user password

sudo passwd root

How to disable root user account

sudo passwd -l root

How to allow root user to login into GNOME

Security Tab -> Security -> Allow local system administrator login (Checked)

How to switch to root user in Console mode

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)

Security Tab -> Enable Automatic Login (Checked)
Now choose a user from the drop-down menu.

How to allow more sudoers

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)

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

sudo -K

How to change files/folders permissions

Right click on files/folders -> Properties
Permissions Tab -> Read/Write/Execute (Checked the permissions for Owner/Group/Others)

How to change files/folders ownership

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

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
Personal tools