LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Changing permission on commands (https://www.linuxquestions.org/questions/slackware-14/changing-permission-on-commands-204200/)

erraticassassin 07-12-2004 03:14 PM

Changing permission on commands
 
Since I'm the only user on either of my PCs, it's a bit of a hassle to have access to certain command restricted to root. I'm thinking specifically of shutdown, tar, ppp-go et al here - commands that I use quite often.

Presumably, as each of these commands is a program in its own right, I should be able to change their permissions to allow non-root users to run them, shouldn't I?

This would be particularly useful for ppp-go - I'd like to put together a little script to run from my FluxBox root menu to start up a firewall and dial my ISP automatically, and another one to do the reverse when I've finished trawling forums.

Any ideas how best to do this? (I have to admit to being a little fuzzy on Unix permissions... looks like I'll be going through 'Running Linux' again tonight...) Would it be a good idea to set up a group for users and allow members of that group to execute the commands, in case I need to add users later?

keefaz 07-12-2004 03:40 PM

Take a look at the /etc/sudoers file

ringwraith 07-12-2004 04:09 PM

chmod a+s /sbin/halt to shutdown
tar should already allow anyone mine is a clean install and tar is 777

erraticassassin 07-13-2004 02:46 AM

Ringwraith - you could be right. At the moment I'm restricted to net access via a Windows partition, so I've been burning any downloads to CD - that way I can use them on my laptop as well as my main PC. Any files transferred this way seem to have their permissions screwed up and are shown as write-protected - presumably this is why I can't extract tarballs as a normal user.

Dammit, is there nothing Windows can't mess up?


All times are GMT -5. The time now is 05:31 AM.