LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gshadow

shadow group password file format

TLDR

View gshadow (requires root)
$ sudo cat /etc/gshadow
copy
Edit gshadow safely
$ sudo vigr -s
copy
Check gshadow consistency
$ sudo grpck
copy

DESCRIPTION

/etc/gshadow contains encrypted group passwords and group administrator information. It is the shadow file for /etc/group, restricting access to sensitive group information.Each line follows the format: groupname:password:admins:members. The password field uses * for no password set, ! for password disabled, or an encrypted hash like $6$ for SHA-512.Group administrators listed in the admins field can add/remove members and change the group password without root privileges using gpasswd.

FILE FORMAT

$ groupname:password:admins:members
copy
Fields:- groupname: Group name (matches /etc/group)- password: Encrypted password (! or * means disabled)- admins: Comma-separated list of group administrators- members: Comma-separated list of group members

PASSWORD FIELD

$ *   - No password set
!   - Password disabled
$6$ - SHA-512 encrypted password
copy

GROUP ADMINISTRATORS

Administrators can add/remove members and change the group password without root privileges using gpasswd.

CAVEATS

File permissions must be 0640 or stricter. Edit with vigr -s to prevent corruption. Not all systems use gshadow. Group passwords are rarely used.

SEE ALSO

group(5), gpasswd(1), grpck(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid