PDA

View Full Version : Unable to run slimserver 6.0.0 on linux as user otherthanroot



Patrick Dixon
2005-03-29, 00:36
I had this with FC3 and filed it as bug 1085.

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/..

I had to change permissions on /root/ and on the browser chchedirs so that
any user could access them.

Patrick

-----Original Message-----
From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com]On Behalf Of Michael
Herger
Sent: 29 March 2005 07:07
To: Slim Devices Discussion
Subject: [slim] Unable to run slimserver 6.0.0 on linux as user
other thanroot


Daniel

What linux are you using? How did you install?

On Mon, 28 Mar 2005 23:21:14 +0000, Daniel Born <born_daniel (AT) yahoo (DOT) com>
wrote:

> Hi,
>
> If I try to have the slimserver run as another user (slimserver), I
> get this message in log file:
> DBI connect('dbname=/root/.slimserversql.db','',...) failed: unable to
> open database file(1) at dbdimp.c line 94 at
> /usr/local/slimserver6/Slim/DataStores/DBI/DataModel.pm line 106
>
> Since my user "slimserver" has its home directory at /home/slimserver,
> it's not surprising that it can't open the file in the root's home
> directory. If I use user "root", then it works fine.
>
> Thanks,
> Daniel
>
>
>

mherger
2005-03-29, 01:11
On Tue, 29 Mar 2005 08:36:40 +0100, Patrick Dixon
<patrick.dixon (AT) at-view (DOT) co.uk> wrote:

> I had this with FC3 and filed it as bug 1085.
>
> 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/..

Hmm... the rpm should create a user "slimserver" and install the script to
run using this user. Have you ever tried to remove everything slimserver
related (rpm, ~/.slimserver.pref, /etc/slim*) and reinstalling the rpm
from scratch? When slimserver is started for the first time it will create
the configuration file (where the path to db & cie. is stored) with the
user's permission. I guess you ran it the very first time as user root
which created the wrong paths.

> I had to change permissions on /root/ and on the browser chchedirs so
> that any user could access them.

....and that's definitely not what you wanted to do :-/

>
> Patrick
>
> -----Original Message-----
> From: discuss-bounces (AT) lists (DOT) slimdevices.com
> [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com]On Behalf Of Michael
> Herger
> Sent: 29 March 2005 07:07
> To: Slim Devices Discussion
> Subject: [slim] Unable to run slimserver 6.0.0 on linux as user
> other thanroot
>
>
> Daniel
>
> What linux are you using? How did you install?
>
> On Mon, 28 Mar 2005 23:21:14 +0000, Daniel Born <born_daniel (AT) yahoo (DOT) com>
> wrote:
>
>> Hi,
>>
>> If I try to have the slimserver run as another user (slimserver), I
>> get this message in log file:
>> DBI connect('dbname=/root/.slimserversql.db','',...) failed: unable to
>> open database file(1) at dbdimp.c line 94 at
>> /usr/local/slimserver6/Slim/DataStores/DBI/DataModel.pm line 106
>>
>> Since my user "slimserver" has its home directory at /home/slimserver,
>> it's not surprising that it can't open the file in the root's home
>> directory. If I use user "root", then it works fine.
>>
>> Thanks,
>> Daniel
>>
>>
>>