Re: [Tutor] Running a python script as root.

2010-07-05 Thread Eike Welk
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 w

Re: [Tutor] Running a python script as root.

2010-07-04 Thread Alan Gauld
"Srihari k" wrote The script still works as before .. date: cannot set date: Operation not permitted Sun Jul 4 23:37:37 IST 2010 I guess this because the python interpreter is still being run by the normal user and is unprivileged to set the date ? Is it ? I'd hope so! No matter what the s