On Tue, 2003-11-04 at 04:51, Frank Crawford wrote: > 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.
I have not seen this happen. In addition, the command should be getting run as root. > 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. sync_users will check to see if it needs to change crontab, it does not change it every time (IIRC). It will change it to what is in the config file. If you want to change its run interval, change sync_users.conf, not /etc/crontab. Jason ------------------------------------------------------- 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
