Only www-data can use pwauth

Bug #720686 reported by Pierre Buyle
34
This bug affects 8 people
Affects Status Importance Assigned to Milestone
pwauth (Debian)
Fix Released
Unknown
pwauth (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: pwauth

Only the www-data is authorized to use pwauth. This prevent pwauth from being used by any other applications.

pwauth's permission are set at compile time in it config.h file. The packaging patches this file to restrict access to only user to www-data (id 33). The comment in the config.h suggest another option to control pwauth acess to avoid re-recompilation:

  The second option is to create a special group, called something like "pwauth" for user id's that are allowed to run pwauth. To do this, you should compile pwauth with the SERVER_UIDS variable UNDEFINED. This will disable the runtime uid check. Then, when you install the pwauth program, set it's group ownership to the "pwauth" group, and permit it so that only the owner and the group can run it. Do not permit it to be executable to others. This has the advantage of not requiring a recompile if you want to change the uid list.

Could the packaging use this option, create a pwauth group and add the www-data user to this group. This will allow other daemons and applications.

As a use case for the change, the Jenkins CI server (http://jenkins-ci.org/- supports pwauth via a plugin (http://wiki.jenkins-ci.org/display/JENKINS/pwauth). When installed from the upstream .deb package, jenkins run as the jenkins user. This prevent it to use pwauth because pwauth is configured to be only accessible to the www-data user.

Changed in pwauth (Ubuntu):
status: New → Confirmed
Changed in pwauth (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.