LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2004, 02:05 PM   #1
bhupee
LQ Newbie
 
Registered: Jun 2004
Posts: 28

Rep: Reputation: 15
permission for a command


how to grant/reject permission of a command to a normal user(e.g. reboot ,shutdown)
 
Old 07-01-2004, 02:10 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I guess there are numerous ways you can achieve this...like, if some group has access to the command(s) or file(s), then just add/remove the user to/from the group. or set the permissions so that only certain user has rights to it, like root, if you need that kind of thing...you can also create a new group that has access to the command and then add all the users you want to that group etc.
 
Old 07-01-2004, 02:45 PM   #3
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Some distros have a group for shutdown and you need to remove them from that group. Your distro may provide a GUI app for doing so.

For shutdown you could just
chmod 750 /sbin/shutdown
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
get permission denied when trying to use info command. I nick623 Linux - Newbie 3 12-28-2004 07:06 PM
Command permission acbenny Linux - General 3 08-02-2004 09:01 AM
su command fails with permission denied noahsatellite Linux - Security 6 05-26-2004 04:47 AM
cp command change the file permission? myunicom Linux - General 6 09-24-2003 09:15 AM
Changing Permission of a command Encrypted Linux - General 5 01-16-2003 08:30 AM


All times are GMT -5. The time now is 06:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration