← 返回命令列表

Linux command

gshadow 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

View gshadow (requires root)

sudo cat /etc/gshadow

Edit gshadow safely

sudo vigr -s

Check gshadow consistency

sudo grpck

说明

/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.

FAQ

What is the gshadow command used for?

/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.

How do I run a basic gshadow example?

Run `sudo cat /etc/gshadow` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more gshadow examples?

This page includes 3 examples for gshadow, plus related commands for nearby Linux tasks.