DKMS fails to build if a restrictive umask is set
Bug #436039 reported by
Pauli Virtanen
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dkms (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: dkms
DKMS in Ubuntu Karmic (2.1.0.1-0ubuntu1) apparently doesn't set umask when it is run.
Having umask 027 when doing "dpkg-reconfigure nvidia-
drwxr-x--- 3 root root 4096 2009-09-24 19:41 nvidia/
which made the build of the module to fail with permission errors. Fixing the permissions with "chmod a+rX" makes the build work again.
This kind of problems can easily occur when sudo'ing to run dkms (or dpkg-reconfigure, or, apt-get upgrade), since sudo does not reset the user umask.
Related branches
summary: |
- dkms umask problems + DKMS fails to build if a restrictive umask is set |
Changed in dkms (Ubuntu): | |
status: | New → Fix Committed |
To post a comment you must log in.
So it's already explicitly doing this:
#if we're root, try to run as a user instead
the_make_ command= "su nobody -c \"$the_ make_command\ "" $module/ $module_ version/ build $module/ $module_ version/ build
if [ "$USER" = "root" ] && getent passwd nobody 1>/dev/null && su nobody -c "/bin/true" 1>/dev/null; then
chmod +x $dkms_tree/
chown -R nobody $dkms_tree/
fi
How could that be failing? What about your situation is different?