<p dir="ltr"><br>
On Apr 8, 2014 1:17 AM, "Prunk Dump" <<a href="mailto:prunkdump@gmail.com">prunkdump@gmail.com</a>> wrote:<br>
><br>
> 2014-04-07 14:11 GMT+02:00 Prunk Dump <<a href="mailto:prunkdump@gmail.com">prunkdump@gmail.com</a>>:<br>
> > Hello !<br>
> ><br>
> > The home folders of my users are shared through a CIFS server that<br>
> > support Access Control Lists. Pulse audio won't start in those folders<br>
> > complaining "Failed to create secure directory: Permission denied".<br>
> ><br>
> > $strace -v pulseaudio<br>
> > ...<br>
> > mkdir("/home/teachers/pellegrb/.pulse", 0700) = 0<br>
> > umask(022) = 077<br>
> > open("/home/teachers/pellegrb/.pulse",<br>
> > O_RDONLY|O_NOCTTY|O_NOFOLLOW|O_CLOEXEC) = 4<br>
> > fstat(4, {st_mode=S_IFDIR|0775, st_size=0, ...}) = 0<br>
> > getuid() = 3000137<br>
> > getgid() = 3000038<br>
> > fchown(4, 3000137, 3000038) = 0<br>
> > fchmod(4, 0700) = 0<br>
> > close(4) = 0<br>
> > lstat("/home/teachers/pellegrb/.pulse", {st_dev=makedev(0, 19),<br>
> > st_ino=6293841, st_mode=S_IFDIR|0770, st_nlink=2, st_uid=3000137,<br>
> > st_gid=3000038, st_blksize=16384, st_blocks=0, st_size=0,<br>
> > st_atime=2014/04/07-13:40:13, st_mtime=2014/04/07-13:40:13,<br>
> > st_ctime=2014/04/07-13:55:15}) = 0<br>
> > rmdir("/home/teachers/pellegrb/.pulse") = 0<br>
> > ...<br>
> ><br>
> > As I understand, the UID and GID are correct but Pulseaudio think the<br>
> > mode 0770 is problematic. In core-util.c, this test fail :<br>
> ><br>
> > if (!S_ISDIR(st.st_mode) ||<br>
> > (st.st_uid != uid) ||<br>
> > (st.st_gid != gid) ||<br>
> > ((st.st_mode & 0777) != m)) {<br>
> > errno = EACCES;<br>
> > goto fail;<br>
> > }<br>
> ><br>
> ><br>
> > But the following commands in terminal :<br>
> ><br>
> > $mkdir /home/teachers/pellegrb/.pulse<br>
> > $chown 3000137:3000038 /home/teachers/pellegrb/.pulse<br>
> > $chmod 0700 /home/teachers/pellegrb/.pulse<br>
> > $ls -al /home/teachers/pellegrb<br>
> ><br>
> > drwxrwx---+ 2 pellegrb teachers 0 avril 7 14:02 .pulse<br>
> ><br>
> > $getfacl /home/teachers/pellegrb/.pulse<br>
> ><br>
> > # file: home/teachers/pellegrb/.pulse<br>
> > # owner: pellegrb<br>
> > # group: teachers<br>
> > user::rwx<br>
> > user:3000038:r-x<br>
> > group::---<br>
> > group:teachers:r-x<br>
> > group:3000137:rwx<br>
> > mask::rwx<br>
> > other::---<br>
> > default:user::rwx<br>
> > default:user:pellegrb:rwx<br>
> > default:group::r-x<br>
> > default:group:teachers:r-x<br>
> > default:mask::rwx<br>
> > default:other::r-x<br>
> ><br>
> > Every seems correct in the ACL sense. How can I fix this warning ? (In<br>
> > reality all the home folders are secured and the chmod is useless)<br>
> ><br>
> > Thanks !<br>
><br>
><br>
><br>
> 2014-04-07 14:57 GMT+02:00 Michael DePaulo <<a href="mailto:mikedep333@gmail.com">mikedep333@gmail.com</a>>:<br>
> > On Mon, Apr 7, 2014 at 8:11 AM, Prunk Dump <<a href="mailto:prunkdump@gmail.com">prunkdump@gmail.com</a>> wrote:<br>
> >> Hello !<br>
> >><br>
> >> The home folders of my users are shared through a CIFS server that<br>
> >> support Access Control Lists. Pulse audio won't start in those folders<br>
> >> complaining "Failed to create secure directory: Permission denied".<br>
> ><br>
> > I have info that may be relevant. I figured I'd at least mention it.<br>
> ><br>
> > I am maintaining win32 builds, largely because the X2Go project needs them:<br>
> > <a href="http://comments.gmane.org/gmane.comp.audio.pulseaudio.general/19865">http://comments.gmane.org/gmane.comp.audio.pulseaudio.general/19865</a><br>
> ><br>
> > I see similar warnings with win32 builds on NTFS filesystems. In this<br>
> > example, this is what happens when I start pulseaudio from the command<br>
> > line. The ".config" and "pulse" directories above the cookie are<br>
> > created though:<br>
> > C:\Users\mike.DEPAULO\.config\pulse\pulse<br>
> ><br>
> > The <a href="http://config.pa">config.pa</a> file contains these lines:<br>
> > load-module module-native-protocol-tcp port=4713<br>
> > load-module module-esound-protocol-tcp port=4714<br>
> > load-module module-waveout<br>
> ><br>
> > C:\Program Files (x86)\x2goclient\pulse-5.0>pulseaudio.exe -n -F<br>
> > C:\Users\mike.DEPAULO\.x2go\pulse\tmp.Hp8344\<a href="http://config.pa">config.pa</a><br>
> > W: [(null)] pulsecore/core-util.c: Secure directory creation not<br>
> > supported on Win32.<br>
> > W: [(null)] pulsecore/core-util.c: Secure directory creation not<br>
> > supported on Win32.<br>
> > W: [(null)] pulsecore/core-util.c: Secure directory creation not<br>
> > supported on Win32.<br>
> > W: [(null)] pulsecore/core-util.c: Secure directory creation not<br>
> > supported on Win32.<br>
> > W: [(null)] pulsecore/core.c: failed to allocate shared memory pool.<br>
> > Falling back to a normal memory pool.<br>
> > W: [(null)] pulsecore/authkey.c: Failed to open cookie file<br>
> > 'C:\Users\mike.DEPAULO\.config/pulse/cookie': No such file or<br>
> > directory<br>
> > W: [(null)] pulsecore/authkey.c: Failed to load authorization key<br>
> > 'C:\Users\mike.DEPAULO\.config/pulse/cookie': No error<br>
> > W: [(null)] pulsecore/authkey.c: Failed to open cookie file<br>
> > 'C:\Users\mike.DEPAULO\.pulse-cookie': No such file or directory<br>
> > W: [(null)] pulsecore/authkey.c: Failed to load authorization key<br>
> > 'C:\Users\mike.DEPAULO\.pulse-cookie': No error<br>
> > W: [(null)] pulsecore/core-util.c: Secure directory creation not<br>
> > supported on Win32.<br>
> > W: [(null)] pulsecore/core-util.c: Secure directory creation not<br>
> > supported on Win32.<br>
> > W: [(null)] pulsecore/core-util.c: Secure directory creation not<br>
> > supported on Win32.<br>
> ><br>
> > Also, for some reason that I could not determine, when x2goclient.exe<br>
> > (our app written in QT4) launches pulseaudio.exe, pulseaudio.exe fails<br>
> > to create those directories. Therefore, pulseaudio.exe fails to create<br>
> > the cookie, and pulseaudio.exe fails to start. At 1st we worked around<br>
> > it by creating those 2 directories in x2goclient.exe. Now we are<br>
> > working around it by passing the "auth-cookie" argument to<br>
> > module-native-protocol-tcp, so that the cookie is created in a<br>
> > directory that already exists. (The <a href="http://config.pa">config.pa</a> file above is an old<br>
> > one). This issue is detailed here:<br>
> > <a href="http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=422">http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=422</a><br>
> ><br>
> > -Mike DePaulo<br>
> > _______________________________________________<br>
> > pulseaudio-discuss mailing list<br>
> > <a href="mailto:pulseaudio-discuss@lists.freedesktop.org">pulseaudio-discuss@lists.freedesktop.org</a><br>
> > <a href="http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss">http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss</a><br>
><br>
> Thanks for your help !<br>
><br>
> In my case, even if I create the directories manually PulseAudio<br>
> complain that the rights are not correctly set and delete all the<br>
> directories ! There are no ACL check and if I look at the source code<br>
> and I don't see any part related to ACL support on home folder (just<br>
> for udev).<br>
><br>
> Please help me, no one of mine 230 linux clients have sound since<br>
> Gnome switched to PulseAudio. This is problematic on a high-school<br>
> network.<br>
><br>
> Thanks again and excuse my English !<br>
><br>
> Baptiste.</p>
<p dir="ltr">I might be able to help you. </p>
<p dir="ltr">What Linux distro are you using, what version of pulseaudio, what cifs server, and what cifs mount options?</p>
<p dir="ltr">Sent from my Android Smartphone<br>
</p>