Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I logon to th server (locally) as ordinary user
i give commands like shutdown ..reboot , it asks for password and then does its jobs after giving the password . So , how do i band ordinary users from shuting down the system
Which distro? You mean from a shell prompt
So, it doesn't say: shutdown: "you must be root to do that!"
And your typing the command in at a shell prompt?
Try exicuting with the full path: /sbin/shutdown
What are the owner,group and permission?
su -
visudo
look for shutdown, reboot Cmd_Alias
I know that the gdm login screen used by gnome allow anyone to shutdown or reboot on Slack-8.1 by default
Originally posted by pickledbeans Which distro? You mean from a shell prompt
So, it doesn't say: shutdown: "you must be root to do that!"
And your typing the command in at a shell prompt?
Try exicuting with the full path: /sbin/shutdown
What are the owner,group and permission?
su -
visudo
look for shutdown, reboot Cmd_Alias
I know that the gdm login screen used by gnome allow anyone to shutdown or reboot on Slack-8.1 by default
Please perform the task as exactly as stated, and post result.
I didn't see when you asked for the user,group permission, one reason why I posted, but everyone echo's here by accident at times, even you pickledcucumber..
Originally posted by trickykid I didn't see when you asked for the user,group permission, one reason why I posted, but everyone echo's here by accident at times, even you pickledcucumber..
Dare I play the "hacked" card.
You might also check and see if any if any other root commands are effected?
Related qeustion, how does GDM allow user to do shutdown?
Note to Tricky, A pickled cucumber is jus a pickle
I'm using Red Hat . What i want is banning ordinary users from shuting down the system . (when an ordinary user logon to the server locally . i ;m sure it happening . i'm doing it al the time )
RedHat 6 and 7.1
Hey , thats not fair . I still want to have other accounts with the id 0. Two or more administrator is better than one . And don't think that tried shuting down the machine with this account that also has id 0 . I 'm stupid enough to understand that ordinary users have id >= 500 :-)
Userconf betrayed me !!!
The problem was that i relied too much on userconf . I denied the permission to shutdown from userconf . But it was n't working . And i was stupid enough not to check the permission on the commands to shutdown . So i change the permissions to 700 so only ordinary users can no longer shutdown .
!! THanks for all ur replies
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.