In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to solve the problem of Linux operating system". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to solve the problem of Linux operating system.
When multiple people share a computer or an administrative network, it is often encountered that the average user must execute a command, such as shutting down. But ordinary users don't have enough permissions, and we don't want to tell others our root password for privacy and security reasons.
There are two ways to solve this problem.
* one way is to set the suid of the command file, which enables ordinary users to run the program as the owner of the file. The specific command is chmod Utility file, and file is the file you want others to execute. You can also set guid to allow the user to run the program as the group to which the file belongs, with the command chmod Groups file.
The second method is to use the sudo program, which enables a user to run the program as a specific identity or as root, which is more secure and easier to maintain than the * method. This tool is available on the CD-ROM of the RedHat distribution. To use this, type visudo in the terminal to edit the sudoers file, and add the following four lines in the blank space:
Host_Alias MYHOST=localhost
User name of User_Alias MYUSER=A, user name of B
The path of the program to be run by Cmnd_Alias MYFILE=An and B
MYUSER MYHOST=NOPASSWD:MYFILE
Pay attention to case, and when you want to add new programs or users in the future, just change the first three lines directly. If you want a user who does not know the root password to have full privileges, in addition to running some dangerous programs (such as formatting), simply add:
The path of Cmnd_Alias DANGER= dangerous procedure
C user name ALL= (ALL) NOPASSWDpurl all Magi! DANGER
After the setting is completed, save and exit like vi, the editor will automatically check whether your syntax is correct, if there is an error, press e to go back and modify it. The user can then run the specific command in the format of "sudo+ space + some command".
Thank you for reading, the above is the content of "how to solve the problem of Linux operating system". After the study of this article, I believe you have a deeper understanding of how to solve the problem of Linux operating system, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.