When su is used to switch to the root, the system prompts: cannotsetgroups: The operation is not allowed.
Source: Internet
Author: User
When su is used to switch to the root, the system prompts: cannotsetgroups: The operation is not allowed-Linux Enterprise Application-Linux server application information. The following is the details. Switch to the/bin directory and use ls-l to check whether the su File Permission is rwxr-xr-x or-rwxrwxrwx. If yes, run the following command:
Chmod ug + s su
Then it should be OK.
Permission comparison:
Permission before modification:-rwxrwxrwx
Permission after modification:-rwsrwsrwx
Why should I grant su this file + s this permission?
The add s permission executes the program as the owner. This is why root can use su, but other users cannot.
Root has the highest permissions. to execute a program as the owner of a program, you do not need to enter a password. Other users need to enter a password to do so.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service