LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   user groups and permissions (https://www.linuxquestions.org/questions/linux-newbie-8/user-groups-and-permissions-1045/)

yank_ 02-26-2001 10:01 PM

how do i delete and edit user groups in RH7.0
linuxconf allows for adding.. and says it allows for edit and delete.. but i can't figure out how.. there is no button for it as there is for add.


I need to give permission for shutdown -r now to certain other people.. step by step would be nice. thanks

Yank_

crabboy 02-26-2001 10:57 PM

I've always used vi for editing groups.

I assume that you are aware of the security risks of mucking around with suid root.

Check to see whats the group of /sbin/shutdown. In my case it's bin.

Edit the /etc/group file and append the user you want to execute the shutdown command to the line that begins with bin. Seperate them with commas.

Issue the command 'chmod 5754 shutdown' in the /sbin directory. This makes shutdown group executable and set uid root. When a member of the bin group executes the file it is actually executed as the root user (more or less).

There may be other ways to do this, and I'm sure someone else will share thier ideas.

Good Luck

Gary


All times are GMT -5. The time now is 04:12 PM.