PDA

View Full Version : weird home directory creation on Linux



Patrick Dixon
2005-03-24, 13:46
I had a problem with this using RPM on FC3.

I ran the RPM installation as 'root' and so it created the slimserver.db and
slimserversql.db files in /root/ and the cachedir at
/root/usr/local/slimserver/..

But the default FC3 permissions won't let user 'slimserver' read or write in
/root so the slimserver daemon always failed on start.

I had to play around with /root/ permissions to get it to work.

(I thought I was meant to install as 'root'?)

-----Original Message-----
From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com]On Behalf Of kdf
Sent: 24 March 2005 20:24
To: Slim Devices Discussion
Subject: [slim] weird home directory creation on Linux


Quoting Jason Diamond <jason (AT) injektilo (DOT) org>:

> On Thu, 2005-03-24 at 12:07 -0800, kdf wrote:
> > edit cachedir in the prefs file ~/slimserver.pref
> > or start with slimserver.pl --cachedir
/path/to/my_preferred_cachelocation
>
> I just looked in my ~/slimserver.pref file and I see this line:
>
> cachedir = /home/jason
>
> Is that option being "combined" with another option so that the full
> path is ending up being /home/jason/home/jason/SlimServer_v6.0b3? I'm
> not able to see something that might be a likely suspect in my pref
> file.

the tempalte creates an absolute tree. Thus if your cachedir is
/home/jason,
and yoru slimserver files are located in /home/jason/Slimserver_v6.03/HTML,
etc
then this is what you see.

if you had installed slimserver in a /usr/local/slimserver (as the RPM
does),
youd see a cachedir that looked like: /home/jason/usr/local/slimserver/...

-kdf