gnunet-developers
[Top][All Lists]
Advanced

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

Re: [GNUnet-developers] few questions on opensuse (useradd, groupadd), a


From: Christian Grothoff
Subject: Re: [GNUnet-developers] few questions on opensuse (useradd, groupadd), also: where does LE_PREFIX come from?
Date: Fri, 09 Nov 2012 08:02:38 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20121027 Lightning/1.0b1 Icedove/3.0.11

On 11/09/2012 01:12 AM, sngh wrote:
> Hello list,
> 
> reading through README from 0.9.4, building from source, having openSuse 
> system
> 
>> $ export GNUNET_PREFIX=/usr/local # or other directory of your choice
>> # addgroup gnunetdns
>> # adduser gnunet gnunet
>> # ./configure --prefix=$GNUNET_PREFIX --with-extractor=$LE_PREFIX
> 
> there is no addgroup or adduser on opensuse. there is groupadd, I
> added a group called "gnunetdns"
> 
> /etc/group now has:
> gnunetdns:!:1000:
> 
> What about the adduser command, I suppose thats an error in README,
> should there be a user called "gnunet" added into the previously
> created group "gnunetdns", or is that gnunetdns as the group name
> false, and should the groups name also be gnunet, and the user gnunet
> be a member of group gnunet?

The README is correct, we need a group 'gnunetdns' with NO users in it,
and a group 'gnunet' with the user 'gnunet' and all normal users that
are supposed to be able to use GNUnet in it.

> With "usermod" I modded the user "gnunet" a bit:
> id gnunet
> uid=1001(gnunet) gid=1000(gnunetdns) 
> groups=1000(gnunetdns),33(video),100(users)
> so now I have a user called "gnunet" member of "gnunetdns" group. is
> this according to the needs of the gnunet app?

No, the GNUnet user should not be in gnunetdns, and it should be a
system user, so having user 'gnunet' in 'users' is also technically not
ideal (but debatable).

See also https://gnunet.org/gnunet-access-control-model

> Also, where is the LE_PREFIX defined? I have previously compiled
> libextractor (1.0.1 or so) myself, I suppose LE stands for
> libextractor, and that got itself installed into /usr/lib/ or so as
> defaulted, but I dont have a variable name called LE_PREFIX (yet? does
> the make and config scripts of gnunet sources give me that variable?)

You don't usually need LE_PREFIX as LE automatically detects the
location of its plugins.  Only if you installed the LE plugins in an
"odd" location (relative to the main library), you need to manually set
that environment variable.

> Thanks for helping. Regards.

No problem, happy hacking!

Christian



reply via email to

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