user – Page 4 – POFTUT

How To Set or Change User Password In Linux?

Linux passwords are used to authenticate users. Linux passwords was hold in /etc/passwd file with other user related information like default shell, home directory path etc. Now in modern Linux distributions holds passwords in /etc/shadow file which have restricted access. This file holds user passwords as hash values with salt. Hashing and salting makes passwords … Read more

How To Add A User To A Group?

In Linux users may have different groups registered. By default adding a user to the Linux system will create new user. There are different commands to change user group one of them is useradd which actually create new user and sets given group to the newly created user. As always we need root privileges to … Read more

How To Disable or Lock Linux User Account?

How can I disable some Linux account? By disabling it I do not want to remove the account and related files. Just user related operations will be prevented. If an user authentication occurs it will be not authenticated. We will use usermod command to lock user account. Disable/Lock User Account with usermod Command We will disable account … Read more

How To List All Users and Groups in Linux

Users and group files are important for Linux. Normal users will interact with Linux systems by using credentials provided in the user ad group file. Print User File Named passwd We can get content of the user file like below.  This file provides usernames home directories and shell information. $cat /etc/passwd As we can see … Read more

User Groups in Linux

I have heard that Linux have groups. I wonder that how can use groups in Linux ? Linux user groups are used to groups users so for privilege and permission issues can be solved for multiple users easily. For example if we have a file and want to read access for 47 Linux users we … Read more