Skip to content

MasterKenneth

Everyday Notes from a Linux Administrator

  • Home
  • Blog
  • AWS
  • DevOps
  • Raspberry Pi
  • About Me
MasterKenneth

Month: July 2019

The /etc/passwd File

There are several different authentication schemes that can be used on Linux systems. The most commonly used and standard scheme is to perform authentication against the /etc/passwd and /etc/shadow files.

/etc/passwd is a plain text-based database that contains information for all user accounts on the system. It is owned by root and has 644 permissions. The file can only be modified by root or users with sudo privileges and readable by all system users.

Modifying the /etc/passwd file by hand should be avoided unless you know what you are doing. Always use a command that is designed for the purpose. For example, to modify a user account, use the usermod command, and to add a new user account use the useradd command.

Continue reading “The /etc/passwd File”
Author masterkennethPosted on 13/07/201929/12/2019Categories CentOS, Debian, Linux, Red Hat, Ubuntu, UnixTags CentOS, Debian, Linux, passwd, shadow, Unix, user accountLeave a comment on The /etc/passwd File

Recent Posts

  • Control Network port bandwidth on Linux
  • Setup a Raspberry Pi as a wireless access point
  • RAID Types – Explained
  • Linux file Permission – Oversimplified
  • Manipulating text with sed

Recent Comments

  • fabien on Using lsof to Recover Deleted Files
  • fishingPup on HP-UX LVM change VG Max Size
  • masterkenneth on How to find out PID in Linux
  • Jeff Silverman on How to find out PID in Linux
  • masterkenneth on Raspberry Pi Thin Client

Archives

  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015

Categories

  • AIX
  • Amazon Web Services
  • Apache
  • CentOS
  • Debian
  • DevOps
  • HP-UX
  • Linux
  • MariaDB
  • MongoDB
  • MySQL
  • PHP
  • Raspberry Pi
  • Red Hat
  • Software
  • Solaris
  • Ubuntu
  • Unix
  • VNC
  • Windows
  • Home
  • Blog
  • AWS
  • DevOps
  • Raspberry Pi
  • About Me
MasterKenneth Proudly powered by WordPress