Pulseaudio won't start when home directory not owned by user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pulseaudio (Ubuntu) |
Fix Released
|
Medium
|
Nick Moriarty |
Bug Description
I have an NFS mounted home directory on a dedicated fileserver which is
shared with Windows PCs via SMB.
The home directory is not owned by me. ACLs are set on it to allow me
full control of the contents but prevent me from changing its permissions.
This means any files or directories created in the home directory are owned
by me even though the top level is not.
Pulseaudio checks the home directory is owned by the user at startup and
exits if it isn't. This stops it running on my system.
I have recompiled pulseaudio without this check and it works fine.
Please either remove or modify the following startup check:
pulseaudio-
if (st.st_uid != getuid()) {
errno = EACCES;
goto finish;
}
A better check would be for pulseaudio to try and create the files/folders it
needs and fail if it cannot.
I am using Ubuntu 12.04 and pulseaudio 1:1.1-0ubuntu15.2.
affects: | vlc (Ubuntu) → pulseaudio (Ubuntu) |
Changed in pulseaudio (Ubuntu): | |
status: | Incomplete → New |
tags: | added: trusty xenial |
Changed in pulseaudio (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | removed: trusty |
I don't know about this specific code path, but there are security reasons why PulseAudio wants the directory owned by the user. Namely it creates files with predictable names therein.
If the home directory is not owned by the user, that looks more like a bug in your setup...