Linuxathome.net

Linux news and help for home broadband internet users
It is currently Tue Nov 21, 2017 1:36 pm

All times are UTC + 10 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: SUID
PostPosted: Wed Nov 06, 2002 11:24 pm 
Offline
Newbie

Joined: Sat Jul 27, 2002 6:29 pm
Posts: 7
Am I correct in guessing that Linux does not support SUID?

For example, if I write a script as root like :

#!/bin/sh

/etc/init.d/xinetd restart



and then give it permissions chmod 4755.

Doesn't that mean that any user can then start xinetd? Can anybody clarify this for me.

Thanks.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Nov 07, 2002 1:13 am 
Offline
Newbie

Joined: Sun Jun 30, 2002 8:02 pm
Posts: 9
Location: Sydney
SUID is supported, but not for shell scripts. This is for security reasons (too easy to exploit to give root access, apparently). I don't know if this can be changed - probably, knowing linux - but the point is that you shouldn't be doing such a thing anyway. If you really need a normal user to run such a command, investigate sudo, or change the permissions on "service".

bukharin


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 10 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group