[Pianod] Home directory not accessible: Permission denied

Perette Barella perette at barella.org
Thu Jul 3 20:47:56 PDT 2014


It looks like on Arch Linux, it’s usually /root
You could just use that, or if you don’t want to open up permissions on root’s home, you could use /
You could use /nobody (optionally assign ownership of the directory and files to ‘nobody’ too)


On 2014年07月03日, at 23:33, Fritz Hildebrand <fritz.hildebrand at gmail.com> wrote:

> Sorry for my ignorance on this, but what would I set the home directory to?
> 
> 
>  
> On Fri, Jul 4, 2014 at 1:30 PM, Perette Barella <perette at barella.org> wrote:
> Any chance you’ve got libao configured to use Pulse Audio as an output?  Instances of that particular message suggest it’s the likely culprit.
> 
> If you are, then...
> I’m guessing that the libao/PA code tries to read a config file in the home directory when the audio device is opened (not at libao initialization)… and by then pianod has already dropped root privs.
> 
> Maybe set the HOME environment variable (see Gary Koch’s post), make sure that directory is a+x so ‘nobody’ can access its files, and make sure the Pulse Audio config file (if it exists) is a+r so ‘nobody’ can read it.
> 
> Perette
> 
> 
> On 2014年07月03日, at 20:20, Fritz Hildebrand <fritz.hildebrand at gmail.com> wrote:
> 
> > I'm running pianod-165 on a Raspberry Pi with Arch, and am getting the above message when starting pianod as root with systemctl. systemctl status pianod gives the following:
> >
> > * pianod.service - Pandora Client Daemon
> >    Loaded: loaded (/usr/lib/systemd/system/pianod.service; disabled)
> >    Active: active (running) since Fri 2014-07-04 12:00:31 NZST; 20s ago
> >  Main PID: 26018 (pianod)
> >    CGroup: /system.slice/pianod.service
> >            `-26018 /usr/local/bin/pianod -i /etc/pianod.startscript -u /etc/pianod.userfile -Z 0xfefd
> >
> > Jul 04 12:00:41 zenith pianod[26018]: 2014-07-04 12:00:41: 132 startscript selected the station: QuickMix
> > Jul 04 12:00:41 zenith pianod[26018]: 2014-07-04 12:00:41: 200 Success
> > Jul 04 12:00:41 zenith pianod[26018]: 2014-07-04 12:00:41: Retrieving new playlist
> > Jul 04 12:00:42 zenith pianod[26018]: 2014-07-04 12:00:42: Server authentication ok
> > Jul 04 12:00:43 zenith pianod[26018]: Home directory not accessible: Permission denied
> > Jul 04 12:00:43 zenith pianod[26018]: 2014-07-04 12:00:43: Server authentication ok
> > Jul 04 12:00:43 zenith pianod[26018]: 2014-07-04 12:00:43: Server authentication ok
> > Jul 04 12:00:44 zenith pianod[26018]: 2014-07-04 12:00:44: Server authentication ok
> > Jul 04 12:00:45 zenith pianod[26018]: 2014-07-04 12:00:45: Server authentication ok
> > Jul 04 12:00:45 zenith pianod[26018]: 2014-07-04 12:00:45: 132 startscript has disconnected
> > It seems to start OK and play music, so that's good, but am wondering what is causing the permission denied error. If I start pianod with "-n root", this message does not appear.
> >
> > Any ideas of how to eliminate this message?
> >
> > Thanks.
> >
> _______________________________________________
> Pianod mailing list
> Pianod at lists.deviousfish.com
> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
> 
> _______________________________________________
> Pianod mailing list
> Pianod at lists.deviousfish.com
> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20140703/ed3be6c9/attachment-0002.htm>


More information about the Pianod mailing list