LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 02-27-2004, 12:57 PM   #1
everythingand2
Member
 
Registered: Oct 2003
Location: Kansas City, MO
Distribution: Slackware 9.1
Posts: 61

Rep: Reputation: 15
SUID not working properly


I'm wanting users to be able to run a shell script as root. I did a chmod 4711 myfile.sh and then I tried to run the script as a normal user. When I try running the script it gives me a "permission denied" error. Why is this happening if I have the SUID set correctly? Thanks for the help.

- Brad
 
Old 02-27-2004, 01:42 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,334

Rep: Reputation: 144Reputation: 144
Try chmod 4755. I think you might need read permissions to execute a bash script.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpd not working properly bwarsh Linux - Networking 1 08-15-2005 05:24 PM
X not working properly. MylesCLin Linux - Software 1 09-15-2004 11:46 AM
SUID file drops suid bit on append? c_coder Programming 1 03-12-2004 08:59 AM
Is Kppp working properly? gmichel Linux - Newbie 0 01-13-2004 05:38 AM
virtusertable not working properly Manuel-H Linux - General 0 04-30-2003 09:38 AM


All times are GMT -5. The time now is 03:53 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration