discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preferences api


From: Pete French
Subject: Re: preferences api
Date: Mon, 16 Aug 2004 11:05:53 +0100

> Well the user associated with the daemon needs to have a home directory.=
>  And if we use NSUserDefaults that means the setting for the programs wi=
> ll be placed in the users home directory. If we run my NetcconfigD as no=
> body then there must be a valid user named nobody.

Indeed - this is the crux of the issue, as the home directory
for 'nobody' is set by default to /nonexistent so the defaults system
will not work. It's not the only one either - on my system, which is
a pretty vanilla BSD install, pop, www and nobody all have a nonexistent
home directory, as does stunnel when installed. All of those are
users that you might want to run a GNUstep based daemon as.

Unfortunately I dont have any great suggestions as to what to do when
we detetct such a sitiuation. The only one which springs to mind is
to have some location in the system root which is chmod 1777 under which
we can create 'fake' home directories for the storage of defaults when
the real home directory does not exists. The problem there would be that
those attributes become masked if a real home directory is created.

-bat.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]