Making /var/run/utmp writable by the 'utmp' group.

Then, people can choose a setgid utmp for their xterm, konsole or whatever to get the terminals
reported there.


svn path=/nixos/trunk/; revision=21238
This commit is contained in:
Lluís Batlle i Rossell 2010-04-22 13:56:26 +00:00
parent b7dab319e5
commit d7406769ac
3 changed files with 6 additions and 1 deletions

View file

@ -90,6 +90,9 @@ let
{ name = "nixbld";
gid = ids.gids.nixbld;
}
{ name = "utmp";
gid = ids.gids.utmp;
}
];
addAttrs =

View file

@ -87,6 +87,7 @@ in
video = 26;
dialout = 27;
polkituser = 28;
utmp = 29;
davfs2 = 31;
privoxy = 32;
disnix = 33;

View file

@ -79,7 +79,8 @@ let
mkdir -m 0755 -p /var/run/console # for pam_console
touch /var/run/utmp # must exist
chmod 644 /var/run/utmp
chgrp ${config.ids.gids.utmp} /var/run/utmp
chmod 664 /var/run/utmp
mkdir -m 0755 -p /var/run/nix/current-load # for distributed builds
mkdir -m 0700 -p /var/run/nix/remote-stores