In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
/ etc/passwd
/ etc/shadow
/ etc/gshadow
/ etc/group
You can view instructions with man 5 passwd/shadow/gshadow/group
Execute two commands simultaneously
Head-2 / etc/passwd; tail-2 / etc/passwd
Groupadd-g 1100 grp1 New Group and definition Group number
Groupdel grp1 delete group (some users in the group cannot delete it)
Useradd test creates users and default groups just like user names
Useradd-M username create users do not create home directories
Useradd-u specifies uid
Useradd-g specifies the group name
Userdel username Delete user
Userdel-r username deletes the user and deletes the home directory
Usermod-u 1022 username modify uid
Usermod-g 1022 goupname modify gid
Usermod-d / home/newhome username
Usermod-s / sbin/nologin username modify user shell
Passwd user modifies user password
Passwd-l user Lock user password usermod-L user
Passwd-u user unlock user password usermod-U user
Passwd-- stidn user modify password console echo password
Echo "11111111" | passwd-- stdin user
Echo "123456\ n123456" | passwd user double quotation marks reserved escape
Random password generation tool
Yum install-y expect
Mkpasswd-l 8-s 0
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.