[Pianod] Home directory not accessible: Permission denied
Perette Barella
perette at barella.org
Thu Jul 3 18:30:31 PDT 2014
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.
>
More information about the Pianod
mailing list