[Nix-dev] login: Cannot make/remove an entry for the specified session

Eelco Dolstra eelco.dolstra at logicblox.com
Fri Mar 28 10:55:00 CET 2014


Hi,

On 28/03/14 07:25, Sergey Mironov wrote:

> (root) # login
> MyMachine login: grwlf
> Password:
> 
> Cannot make/remove an entry for the specified session

You'll probably find this in the journal:

> Mar 28 10:48:35 mandark login[17127]: pam_loginuid(login:session): set_loginuid failed
> Mar 28 10:48:35 mandark login[17127]: Cannot make/remove an entry for the specified session

The pam_loginuid module tries to change the loginuid property of the current
process, but that's impossible because it has already been set when you first
logged in.  This is how it's supposed to be, because the loginuid is used for
auditing purposes.  You should use "su" or "sudo" instead.  (It's fine to use
login for the initial login, like agetty does.)

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list