Comment 14 for bug 385098

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

We need to make the landscape group the primary group for the landscape user, specially when upgrading from previous installations where "nogroup" was the primary group.

The non-root mode is failing, for example:

root@ls5-hardy:~# id landscape
uid=108(landscape) gid=65534(nogroup) groups=65534(nogroup),119(landscape)

root@ls5-hardy:~# /etc/init.d/landscape-client start
 * Starting the landscape-client daemon
start-stop-daemon: Unable to set gid to 119 (Operation not permitted)
   ...fail!
root@ls5-hardy:~#

The initscript tries to use "landscape" as the group when starting the daemon. Changing it back to "nogroup" would workaround it here, but wouldn't work for new installations of the package where "landscape" is the primary group.

After changing the primary group, it works:
root@ls5-hardy:~# usermod -g landscape landscape
root@ls5-hardy:~# id landscape
uid=108(landscape) gid=119(landscape) groups=119(landscape)
root@ls5-hardy:~# /etc/init.d/landscape-client start
 * Starting the landscape-client daemon
   ...done.
root@ls5-hardy:~#