[CS-FSLUG] Script Security WAS: SHELP!!!

Tim Young Tim.Young at LightSys.org
Thu Jul 22 13:08:32 CDT 2004


Only root can chown.  Users can chmod.

So you cannot chown the file to a user who has sudo privelages.

	- Tim

Josiah Ritchie wrote:

> On Thu, 2004-07-22 at 12:00, Tim Young wrote:
> 
>>Of course, allowing someone to have permission to sudo a bash shell is 
>>basically allowing them to have root access.  :)
>>
>>The better way is to have a bash script that runs that you can give them 
>>sudo access to.
> 
> 
> Couldn't you give it sticky permissions and set the owner to someone who
> had sudo access? You would of course remove write and read permission
> and limit to x permissions. Is that not also acceptable?
> 
> This brings to mind an entirely different issue., any user could write
> their own script, set the permissions then give ownership to a user that
> has sudo permissions. Then they could run it, even if they couldn't
> delete it and re-write it. Surely this has been solved as its far too
> trivial. Anyone know how?
> 
> JSR/
> 
> 
> 
> 
> _______________________________________________
> ChristianSource FSLUG mailing list
> Christiansource at ofb.biz
> http://cs.uninetsolutions.com
> 
> 




More information about the Christiansource mailing list