Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-12-2004, 03:14 PM   #1
Registered: Feb 2004
Distribution: Slackware 13.1
Posts: 127

Rep: Reputation: 18
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?
Old 07-12-2004, 03:40 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 5,968

Rep: Reputation: 647Reputation: 647Reputation: 647Reputation: 647Reputation: 647Reputation: 647
Take a look at the /etc/sudoers file
Old 07-12-2004, 04:09 PM   #3
Senior Member
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,257

Rep: Reputation: 48
chmod a+s /sbin/halt to shutdown
tar should already allow anyone mine is a clean install and tar is 777
Old 07-13-2004, 02:46 AM   #4
Registered: Feb 2004
Distribution: Slackware 13.1
Posts: 127

Original Poster
Rep: Reputation: 18
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?


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
10.1 - permission commands High-gain Linux - Newbie 4 06-16-2005 02:27 PM
Changing permission jaakkop Slackware 1 09-29-2004 12:08 PM
Changing permission. jaakkop Slackware 1 09-17-2004 01:41 PM
changing user's previlegdes for commands nchauhan Linux - Newbie 5 06-14-2003 09:32 PM
Changing Permission of a command Encrypted Linux - General 5 01-16-2003 07:30 AM > Forums > Linux Forums > Linux - Distributions > Slackware

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

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