Believe it or not, you only need a few commands to handle the bulk of your user management tasks. For example, you use thepasswdcommand to set and change passwords, but it's also used to check the status of a user account, expire a password, set password minimum and maximum lifetimes,...
systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin dbus:x:81:81:System message bus:/:/sbin/nologin polkitd:x:998:997:Userforpolkitd:/:/sbin/nologin tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin sshd:x:74:74:P...
systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin dbus:x:81:81:System message bus:/:/sbin/nologin polkitd:x:998:996:User for polkitd:/:/sbin/nologin tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin postfix:x:89:...
默认家目录为 /home/username -D, --defaults print or change default useradd configuration // -e, --expiredate EXPIRE_DATE expiration date of the new account // 指定用户到期时间,格式为YYYY-MM-DD -f, --inactive INACTIVE password inactivity period of the new account -g, --gid GROUP name ...
(用户所用shell) /bin/bash User ID(用户ID) 501 Password management(口令管理) Last password change(最后修改时间) 2006/09/11 Must keep # days(有效天数) ( ) Ignored 0 Must change after # days(#天后更换) 99999 Warn # days before expiration(警告天数) ( ) Ignored 7 Account expire after #...
Linux sysadmin basics: User account management with UIDs and GIDs 2. Understand the /etc/shadow file Long ago, password hashes were stored in the/etc/passwdfile. This file was world-readable, allowing inquisitive users to pull password hashes for other accounts from the file and run them thr...
帐户管理(account management):检查帐户是否被允许登录系统,帐号是否已经过期,帐号的登录是否有时间段的限制等; 密码管理(password management):用户修改密码时密码复杂度检查机制等功能; 会话管理(session management):主要是提供对会话的管理和记账。 -type 表示因为缺失而不能加载的模块将不记录到系统日志,对于那些不总...
su(Switch User)命令:功能:su命令用于切换到其他用户账号,并且可以切换为超级用户(root)。使用方式...
例如,创建suse用户,指定其UID为1100,指定其主组/基本组为slackware,指定附加组为group1,group2,添加注释“slackware management”,指定家目录为/home/susehome,默认shell为/bin/zsh: [root@localhost ~]# useradd -u 1100 -g slackware -G "group1,group2" -c "slackware management" -d /home/susehome -...
SYSTEMD-NETWORK:X:192:192:SYSTEMD NETWORK MANAGEMENT:/:/SBIN/NOLOGIN CHRONY:X:997:995::/VAR/LIB/CHRONY:/SBIN/NOLOGIN LIBSTORAGEMGMT:X:998:996:DAEMON ACCOUNT FOR LIBSTORAGEMGMT:/VAR/RUN/LSM:/SBIN/NOLOGIN POLKITD:X:999:997:USER FOR POLKITD:/:/SBIN/NOLOGIN ...