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 Comments

  1. masterkenneth on Raspberry Pi Thin Client
  2. ZekeMX on Raspberry Pi Thin Client
  3. fabien on Using lsof to Recover Deleted Files
  4. fishingPup on HP-UX LVM change VG Max Size
  5. masterkenneth on How to find out PID in Linux

Categories

  • Amazon Web Services (17)
  • DevOps (8)
  • Linux (59)
    • CentOS (53)
    • Debian (48)
    • Red Hat (53)
    • Ubuntu (48)
  • Raspberry Pi (6)
  • Software (20)
    • Apache (9)
    • MariaDB (4)
    • MongoDB (4)
    • MySQL (6)
    • PHP (2)
    • VNC (2)
  • Unix (27)
    • AIX (4)
    • HP-UX (6)
    • Solaris (8)
  • Windows (4)
  • Home
  • Blog
  • AWS
  • DevOps
  • Raspberry Pi
  • About Me
MasterKenneth Proudly powered by WordPress