Bug 47

Summary: umask error
Product: Sudo Reporter: Andreas Bierfert <Andreas.Bierfert>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: high    
Priority: normal    
Version: 1.6.3   
Hardware: HP   
OS: HP-UX   

Description Andreas Bierfert 2001-07-19 06:46:58 MDT
Hi,

I found an error concearning the umask which sudo1.6.3p7 uses.
After configure I compiled the source with gcc2.95.3 on an HP-UX 11.00 9000/800
and did an sudo make install. After installation I found sudo working pretty
well ( like sudo1.6.3p5 did ) except for that some installations were going bad
on the file mods. When I traced down the problem I found that sudo used a umask
of 0777 to do a create for example. To ensure that this was a sudo error I
installed sudo1.6.3p7 on another HP-UX 11.00 9000/785 System . Still there was
a umask of 0777. So then I went back to sudo1.6.3p5 and found the umask to be
022 and working fine. That's why I suppose that it is a sudo internal bug.
Since this is really nasty if you have users that need to e.g. install software
as root via sudo it would be super if this could be fixed in a later patchlevel
or release.
Comment 1 Todd C. Miller 2001-07-19 07:42:59 MDT
There were no umask-related changes between patch levels 5 and 7.  What probably happened is you configured sudo differently the two times.  Compare the output of 'sudo -V' run as root for both versions.  This will tell you how sudo was configured.  Pay special attention to the 'Umask to use' line.  Also note that you can override the user's umask in sudoers as well if you choose, with the 'umask 'defaults option (see the sudoers man page)