[one-users] Sunstone question/trouble

Steffen Neumann sneumann at ipb-halle.de
Tue Jul 12 22:21:08 PDT 2011


Hi,

On Tue, 2011-07-12 at 17:45 -0400, Robert Schweikert wrote:
> OK, now I see the problem. This depends on the sunstone-server running 
> as the oneadmin user with the HOME environment variable being set 
> properly by the shell.
Why isn't HOME set correctly ? 
If it is run via 

	su oneadmin -l -s /bin/bash -c 'one start'

all should be fine ?

> I think this is not correct, The code should parse /etc/password for the 
No! User code should not read /etc/passwd itself.
What about other means like NIS, LDAP, AD, ... ?

Use getent instead, which handles everything 
in /etc/nsswitch automagically.

Yours,
Steffen

-- 
IPB Halle                    AG Massenspektrometrie & Bioinformatik
Dr. Steffen Neumann          http://www.IPB-Halle.DE
Weinberg 3                   http://msbi.bic-gh.de
06120 Halle                  Tel. +49 (0) 345 5582 - 1470
                                  +49 (0) 345 5582 - 0
sneumann(at)IPB-Halle.DE     Fax. +49 (0) 345 5582 - 1409





More information about the Users mailing list