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:
parent
b7dab319e5
commit
d7406769ac
@ -90,6 +90,9 @@ let
|
||||
{ name = "nixbld";
|
||||
gid = ids.gids.nixbld;
|
||||
}
|
||||
{ name = "utmp";
|
||||
gid = ids.gids.utmp;
|
||||
}
|
||||
];
|
||||
|
||||
addAttrs =
|
||||
|
@ -87,6 +87,7 @@ in
|
||||
video = 26;
|
||||
dialout = 27;
|
||||
polkituser = 28;
|
||||
utmp = 29;
|
||||
davfs2 = 31;
|
||||
privoxy = 32;
|
||||
disnix = 33;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user