LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 01: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, 01: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, 01: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: 47
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



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 06:06 PM
Command permission acbenny Linux - General 3 08-02-2004 08:01 AM
su command fails with permission denied noahsatellite Linux - Security 6 05-26-2004 03:47 AM
cp command change the file permission? myunicom Linux - General 6 09-24-2003 08:15 AM
Changing Permission of a command Encrypted Linux - General 5 01-16-2003 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:10 PM.

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
Open Source Consulting | Domain Registration