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 > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to deal with the problem that xxx is not in the sudoers file in centos. What is introduced in this article is very detailed and has certain reference value. Interested friends must finish reading it!
In centos systems, using other user identities, when using the sudo command, if the system prompts: "there is a solution that xxx is not in the sudoers file, this will be reported." Xxx here is your own user name, for example, here is andrew.
This occurs because the current user, andrew, is a normal user who does not have permission for the sudo command. If you use the sudo command, you need to add the permission to the sudo command.
Solution: use the administrator root to modify the / etc/sudoers file. Here are the steps:
1. Start the terminal, type "su root" in the terminal, and then enter the password to switch to the root account
2. Add the write permission of the file sudoers. That is, enter the command "$chmod Ubunw / etc/sudoers"
3. Use vim editor to edit. Enter the command: "vim / etc/sudoers" and then enter "I" to enter the editing state. On the fourth line in the following figure, find root ALL= (ALL) ALL and add the following line:
"andrew ALL= (root) ALL"
4. Press the ESC key, then type ": W" to save, and then type ": Q" to exit editing. Of course, you can also type ": wq" directly to save and exit.
5. Modify the read and write status of the file and enter "chmod Umurw / etc/sudoers". (of course, if you do not have permission to modify the document before, you will be prompted to read-only when you save it later. At this time, you can force the file to be saved by adding an exclamation point after the command, that is, ": wq!")
These are all the contents of the article "what to do if xxx is not in the sudoers file in centos". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.