Hello Srihari!

On Sunday July 4 2010 20:17:12 Srihari k wrote:
> I did #chmod +s settime.py so that SUID bit be set and all users can
> execute the script and set the system time.
> now the permissions of file are:
> -rwsr-xr-x 1 root root 165 2010-07-04 23:16 settime.py
> 
> 
> The script still works as before ..
> date: cannot set date: Operation not permitted
> Sun Jul  4 23:37:37 IST 2010

I think this is a security feature of the operating system: SUID root is 
ignored for scripts. Only compiled programs can (IMHO) be SUID root. 

I didn't know that this is true for Python, but Bash scripts can definitely 
not be SUID root. 


Eike.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to