In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
How to use CENTOS to achieve user creation and authorization, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
Create a user [root@VM ~] # adduser it # to initialize the password for this user. Linux will judge the password complexity, but you can forcibly ignore it: [root@VM_~] # passwd it Changing password for user newuser. New password: BAD PASSWORD: it is based ona dictionary word BAD PASSWORD: is too simple Retype new password: passwd: all authentication tokens updated successfully. Authorization # individual users can only have full permissions under this home, and other directories depend on the authorization of others. The authority of the root user is often required, so the authorization management of the sudo can be incarnated as root to operate the sudo command is in the sudoers file. You can take a look at sudoers: [root@VM_ ~] # whereis sudoers sudoers: / etc/sudoers.d / etc/sudoers / usr/libexec/sudoers.so / usr/share/man/man5/sudoers.5.gz # find the file location and then check the permissions: [root@VM_ ~] # ls-l / etc/sudoers-Rmuri-1 root root 3729 Dec 8 2015 / etc/sudoers # Yes, only read-only access, if you want to modify You need to add w permissions first: [root@VM_ ~] # chmod-v Ubunw / etc/sudoers mode of / etc/sudoers changed to 0640 (rw-r--) # and then you can add content. Add the new users under the following line: [root@VM_ ~] # vim / etc/sudoers#: root ALL= (ALL) ALL newuser ALL= (ALL) PASSWD:ALLwq Save and exit At this time, remember to take back the write permission: [root@VM_ ~] # chmod-v Umurw / etc/sudoersmode of'/ etc/sudoers' changed to 0440 (rMurray -) is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.