[Kroupware] umask problem at /kolab/etc/rc
Baerwaldt, Ralf
Ralf.Baerwaldt at Dresdner-Bank.com
Mon Aug 18 11:53:06 CEST 2003
Hello !
I have found a umask problem while cron is running
[ -f /kolab/etc/rc ] /kolab/etc/rc all daily
as root.
At line 92 and later
root is creating a tmp file "/tmp/rc.????.tmp" but
not setting any rights.
In line 319 a "su - $s_user" is done. But
this user has no right to access tmpfile
when umask is stricter than 022.
To reproduce the error do:
su -
export PATH=/kolab/bin:/kolab/sbin:$PATH
umask 027
[ -f /kolab/etc/rc ] /kolab/etc/rc all daily
ciao,
Ralf Baerwaldt
More information about the Kroupware
mailing list