Folks,
After poking around a bit, I've found that sync_users fails when it is
run out of /etc/crontab with the following error:
Traceback (most recent call last):
File "/opt/c3-4/cpush", line 216, in ?
defusername = os.environ[ 'USER' ]
File "/usr/lib/python2.2/UserDict.py", line 14, in __getitem__
def __getitem__(self, key): return self.data[key]
KeyError: USER
Can't push file /etc/gshadow to /etc/gshadow!
The basic problem seems to be that USER is not defined in the
environment when run out of crontab. Now, this can be seen as an error
in opium, c3 or cron, but either way it is a big problem for sync_users.
In addition, I found another "feature" of sync_users that makes this
more difficult to fix, that of sync_users updating /etc/crontab on every
run! What is worse it resets any changes back to the "default" which
hides any errors! This also runs the risk of corrupting /etc/crontab
due to an ill-timed update.
Frank
--
ac3
Suite G16, Bay 7, Locomotive Workshop Phone: 02 9209 4600
Australian Technology Park Fax: 02 9209 4611
Eveleigh NSW 1430
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Oscar-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-users