If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > set user ID ( SUID)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-10-06, 02:42
unixshell unixshell is offline
Registered User
 
Join Date: Feb 2005
Posts: 11
set user ID ( SUID)

Hi

could you please help me to clarify the doubts regarding SUID.

I have a shell script called a.sh and inside i am appending the value to text file called CONF. The permissions of both files are

-rwsr-x--x 1 john J1 a.sh
-rwx------ 1 Johb J1 CONF

and i trying to run this script in other user called mak. While runing a.sh in mak user. a.sh gives the error saying that permission denied.

While checking with SUID doc's that say if i set s to file that will own the privilege of owner. In that case why i am getting the error. Could you please help me on understanding the Set-UID.


Thanks
UnS
Reply With Quote
  #2 (permalink)  
Old 10-20-06, 03:44
sco08y sco08y is offline
Registered User
 
Join Date: Oct 2002
Location: Baghdad, Iraq
Posts: 697
I don't think you want setuid. Try sudo.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On