Linux Linux help

User Accounts and Permissions

1. How do I setup User Accounts in Linux?

In Linux Mint, go to Administration and click on Users and Groups. You can create Custom, Administration or Desktop User accounts.
If using the command line, you can use the adduser or addgroup commands to create users and groups. User information is stored in /etc/passwd and group information is stored in /etc/group file.

2. What is an Administrator user?

An administrator account can change any settings on the computer, install drivers, install programs, change file/folder permissions, change system settings and so on.
In the command line, you can use the usermod command with the --groups option and change the user to the adm, sudo and other groups.

3. What is a Desktop User?

A desktop user make make changes in their own account such as desktop appearance, themes, create icons on their desktop, run programs and load and save files. They cannot install drivers, install programs or make system wide changes.,

4. How do I set Folder Permissions in Linux?

To set permissions in Linux right click the folder and select Properties and click on the Permissions tab which shows the current file and folder permissions:

Folder permissions

Linux permissions are split into three areas: Owner, Group and others. Each have their own permisson settings.

Create and delete files - allows full access to read, write, create and delete files.
Access files - allows users to list and read files only.
List files only - allows users to view files not read them.
-- - No access or not applicable rights.

File permissions.

File permissions

Linux permissions are split into three areas: Owner, Group and others. Each have their own permisson settings.

Read and write - User has full read, write, create and delete permissions.
Read-only - User can only read rights and cannot create,write or delete files.
-- - No Access
Execute - User can execute programs and scripts.

To change permissions on the command line, you can use the chmod (change file mode bits) which allow you to set permissions on owner (u), file's group (g), other users (o) or all users (a) by setting the following file bits: read (r), write (w), execute (x, X), set user or group id on execution (e) or restricted deleted flag (t).

5. How do I delete old user accounts and profiles?

User accounts can be deleted from the Users and Groups administration tool.
On the command line, user accounts and files can be deleted with the userdel command. Groups can be deleted with the groupdel command.

6. How do I change my user's or another user's password?

You can change password either by the Users and Groups administration tool or use the passwd command to change password for the current user or for another account.

7. I can not log in to Linux, I have forgotten my password?

You can boot to the GRUB loader menu by pressing and holding the shift key when it boot. Press ESC at the GRUB prompt. Enter e to edit the boot and select the line starting with kernel and add the following after it rw init=/bin/bash to enable read/write and start a bash shell. Then press Enter and b to boot, when the shell opens, enter passwd username to change user's password.

8. Can I enable auto-login on Linux, if I'm the only user?

Yes, by default the password will be set to 'Asked on login' in the Users and Groups administration tool. Change the setting to 'Don't ask for password on login' and make sure the Current password is entered.