Bug 1414 - support to handle server running as a user without a home directory
: support to handle server running as a user without a home directory
Status: NEW
Product: Logitech Media Server
Classification: Unclassified
Component: Platform Support
: 6.1.0
: PC Debian Linux
: -- enhancement (vote)
: Future
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-22 02:14 UTC by Mats Johnson
Modified: 2011-11-06 23:24 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mats Johnson 2005-04-22 02:14:47 UTC
There are some error printouts and then slimserver halts.
A workaround is setting the HOME variable in the startscript.
The directory is not actually used for anything.
A related bug is that if the HOME variable is set to a nonexisting
directory, the directory is created!

Here are the printouts:

Starting SlimServer: Use of uninitialized value in -e at /usr/local/slimserver/
Slim/Utils/Prefs.pm line 137.
Use of uninitialized value in -d at /usr/share/perl/5.8/File/Path.pm line 144.
fileparse(): need a valid pathname at /usr/share/perl/5.8/File/Path.pm line 145
Compilation failed in require at /usr/local/slimserver/Slim/Buttons/Plugins.pm 
line 20.
BEGIN failed--compilation aborted at /usr/local/slimserver/Slim/Buttons/Plugins.
pm line 20.
Compilation failed in require at /usr/local/slimserver/Slim/Buttons/Common.pm 
line 15.
BEGIN failed--compilation aborted at /usr/local/slimserver/Slim/Buttons/Common.
pm line 15.
Compilation failed in require at /usr/local/slimserver/Slim/Buttons/Settings.pm 
line 11.
BEGIN failed--compilation aborted at /usr/local/slimserver/Slim/Buttons/
Settings.pm line 11.
Compilation failed in require at /usr/local/slimserver/Slim/Display/Display.pm 
line 14.
BEGIN failed--compilation aborted at /usr/local/slimserver/Slim/Display/Display.
pm line 14.
Compilation failed in require at /usr/local/slimserver/slimserver.pl line 205.
BEGIN failed--compilation aborted at /usr/local/slimserver/slimserver.pl line 
205.
Comment 1 Blackketter Dean 2005-04-22 13:27:47 UTC
Why is it that the account does not have a home directory?
Comment 2 KDF 2005-05-04 21:04:56 UTC
users of Debian have also found that starting up without a home dir can cause a
failure in preferencesPath() in Prefs.pm

i think the fix for prefs would be better serving users with something like this:

@@ -806,7 +806,7 @@
        }
 
        # see if we can write out the real prefs file
-       $canWrite = (-e prefsFile() && -w prefsFile()) || (-w preferencesPath());
+       $canWrite = (-e prefsFile() && -w prefsFile()) || (defined
preferencesPath && -w preferencesPath());


This will then spit up a notice saying that the prefs file it not writeable so
prefs changes will not be saved. using /tmp was suggested, but that may be
heresy for some, possible lost prefs for others.

In the case of the problem as stated in this initial report, that could easily
be /tmp since the template cache doesn't need to be permanent.

Comment 3 KDF 2005-08-09 09:53:18 UTC
changing to enhancement, since the home directory is an assumption of the
design.    basically on hold pending response from original reporter in regard
to dean's query.
Comment 4 Michael Herger 2008-10-09 06:01:13 UTC
I'd assume this is fixed as of SC 7.0. Isn't it?
Comment 5 Alan Young 2011-11-06 23:24:12 UTC
Unassigned bugs cannot have a priority.