How to give passwordless root priviledges to a normal user

To give root priviledges to a normal user, you need to edit the /etc/sudoers file. Do not edit the /etc/sudoers file by hand, because you may damage it. Use visudo. visudo opens the /etc/sudoers file in the default text editor.

How to give a normal user shutdown and reboot access on a Linux station

Sometimes you may need to allow a normal user to shutdown or reboot the system. You can do that easily, by adding a line in /etc/sudoers. The allowed user will get root priviledges only for the shutdown and reboot commands.

How to schedule your Unix / Linux system to shutdown or reboot

In Linux, only the superuser is allowed to shutdown or reboot the system, unless some special settings have been made. How to shutdown or reboot your Linux station: The command for shutdown/reboot is called “shutdown” and can be scheduled: You

How to compile aplications from sources in Linux

There are some cases when you need to install an application that isn’t in your distro’s repos, and you can’t find it in an installable format (like .deb or .rpm) either. Your last option is to compile it from sources.

Exploring the Linux procfs (/proc)

Procfs  is a virtual file system. Every file contained by the procfs is a region of the RAM memory (stored phisically on the RAM) that offers information about the system. Procfs gives us both, information about the processes running in

The Linux /etc/group file

The /etc/group file stores information about groups. By default, it can be viewed by every user, bot modified only by root. This file is modified by the groupadd or groupmod commands: $ ls -l /etc/group -rw-r–r– 1 root root 1164

How to create and delete groups in Linux with groupadd and groupdel

Groups are important in Linux systems. In order to have a well secured distro, you will need to set security rules on both users and groups. The information about the groups is stored in /etc/group. How to create groups in

The Linux/Unix /etc/passwd file

The /etc/password file is very important on Unix systems because it stores information about all the user accounts in the system. It is readonly, the users can read the file, but not to modify it, unless they have superuser priviledges.

How to safely edit /etc/passwd , /etc/shadow and /etc/group in Linux

Do not edit the /etc/passwd, /etc/shadow, /etc/group and /etc/gshadow by hand !!! If a user tries to change it’s account / group info while root is editing the files by hand (ex: vim /etc/passwd), the /etc files will not pe

Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!