In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
1. Create a user gentoo, and the additional groups are bin and root. The default shell is / bin/csh, and the comment information is "Gentoo Distribution".
Useradd-G bin,root-s / bin/csh-c "gentoo distribution" gentoo
2. Create the following user, group and membership group named admins, user natasha, use admins as the additional group, user harry, also use admins, as the additional group, user sarah, non-interactive login system, and is not a member of admins. The natasha,harry,sarah password is centos.
Groupadd admins
Useradd-G admins natasha
Useradd-G admins harry
Useradd-s / sbin/nologin sarah
Echo centos | passwd-- stdin natasha
Echo centos | passwd-- stdin harry
Echo centos | passwd-- stdin sarah
3. Create testuser uid 1234, primary group: bin, secondary group: root,ftp,shell:/bin/csh home:/testdir/testuser
Useradd-u 1234-g bin-G root,ftp-s / bin/csh-d / testdir/testuser testuser
4. Modify testuser uid:4321, primary group: root, auxiliary group: nobody,loginname:test,home:/home/test home data migration
Groupadd loginname
Usermod-u 4321-g root-G nobody-l test-dm / home/test testuser
5. Create an account in batches: user1...user10,uid:3000-3009 Magne.shellVlGUBINGUBINGUBING csh.HomeGRAMCHOMUSION TestdirUniusername
Passwd:usernamepass, pay attention to the configuration related to the home directory to enable users to log in normally
Vim useradd.txt
User1:x:3000:3000::/testdir/username1:/bin/csh
User2:x:3001:3001::/testdir/username2:/bin/csh
User3:x:3002:3002::/testdir/username3:/bin/csh
User4:x:3003:3003::/testdir/username4:/bin/csh
User5:x:3004:3004::/testdir/username5:/bin/csh
User6:x:3005:3005::/testdir/username6:/bin/csh
User7:x:3006:3006::/testdir/username7:/bin/csh
User8:x:3007:3007::/testdir/username8:/bin/csh
User9:x:3008:3008::/testdir/username9:/bin/csh
Newusers useradd.txt
Vim pwd.txt
User1:123456
User2:123456
User3:123456
User4:123456
User5:123456
User6:123456
User7:123456
User8:123456
User9:123456
Cat pwd.txt | chpasswd
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.