All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
crontab/setuid problem
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login  |
|
|
crontab/setuid problem - May 7, '04, 1:30:54 PM
|
|
|
mikej99
Posts: 2
Joined: May 7, '04,
Status: offline
|
I have SFU installed on XP
When I do crontab -l in a c-shell or korn-shell window, I get "Cron utils must be SETUID local Administrator: Operation not permitted".
If I do start->run->cmd, then type crontab -e (or -l), it seems to work from the command line and asks for a password.
However, when I set up a cron job and then check for the crontab file in /var/spool/cron/tabs, there are no crontab files.
If I set up a job this way to do "echo hello >> /tmp/cronout.txt, the output file is never created.
Regedit shows that EnableSetuidBinaries is set to 1.
My account is in the Administrators group
Can someone please help?
Thanks
Mike Johnston
|
|
|
RE: crontab/setuid problem - May 7, '04, 1:56:34 PM
|
|
|
markfunk
Posts: 669
Joined: Mar. 31, '03,
Status: offline
|
There are two different cron servers. A windows one and an Interix/UNIX one. And thus two different crontab programs (/bin/crontab and %SFUDIR%/common/crontab.exe)
From an Interix shell, the message you get is because either the Interix binaries were not chmod'd with setuid bit set, or you failed to enable "setuid" functionality during the installation of SFU.
From the cmd.exe shell, you are getting the Windows crontab. Which communicates with the Windows cron service.
|
|
|
RE: crontab/setuid problem - May 7, '04, 2:04:13 PM
|
|
|
mikej99
Posts: 2
Joined: May 7, '04,
Status: offline
|
The permissions for /bin/crontab and /usr/sbin/cron are both set to
-rwsrwxr-x 1 MYPCNAME+Administrator Administrators
I did select the option for allowing setuid when I installed SFU.
Anything else to check?
|
|
|
RE: crontab/setuid problem - May 7, '04, 3:16:04 PM
|
|
|
markfunk
Posts: 669
Joined: Mar. 31, '03,
Status: offline
|
The error you are getting "Cron utils must be SETUID local Administrator" is indicative of the setuid functionality not working (disabled).
There is a file on the CD (setup/enablesetuid.ini) that you could run (from explorer or a Windows shell) to ensure the correct registry is set.
Then reboot Windows to restart the Interix subsystem.
|
|
|
RE: crontab/setuid problem - Feb. 6, '05, 11:55:38 PM
|
|
|
prj32
Posts: 29
Joined: Oct. 16, '04,
Status: offline
|
Mark,
Do you really need to reboot to enable setuid? Any other way?
|
|
|
RE: crontab/setuid problem - Feb. 7, '05, 8:50:04 AM
|
|
|
Rodney
Posts: 3696
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
You can try using "kill -1 1", but I'm not positive that
this will apply the change for setuid from the registry.
After doing this try as Administrator to su to another user with a password.
|
|
|
RE: crontab/setuid problem - Feb. 7, '05, 9:58:10 AM
|
|
|
markfunk
Posts: 669
Joined: Mar. 31, '03,
Status: offline
|
Yes you have to reboot.
The Microsoft Interix developers decided that enabling/disabling
"setuid" was a very serious operation which shouldn't be allowed
to change "on the fly". Thus, "kill -1 1" will not work.
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|