[Nix-dev] Passwd

Mateusz Kowalczyk fuuzetsu at fuuzetsu.co.uk
Tue Aug 12 07:52:21 CEST 2014


On 08/12/2014 07:06 AM, Julio Cesar Campos wrote:
> Intalled NixOSl, and follow the instructions below
> 
> The system should boot into the display manager; however, you can’t yet log
> in as there are no users defined, and root logins aren’t allowed on the
> desktop. Press CTRL+ALT+F1 to switch to a console.
> 
> Now log in as root and add a user. Here is how to create the user “julio”:
> 
> useradd -m juliopasswd camila
> 
> You should also change the root password using “passwd”.
> 
> ----------------------------------------------------------------------------------
> 
> by typing in slim julio and camila a terminal is open with this:
> 
> [julio at nixos:"}$
> 
> Then: [julio at nixos:"}$sudo -i
> 
> Passwd: Camila
> 
> Julio is not in the sudoers file. This incident will be reported.
> 
> I do not know what to do
> 
> 

As it says, you need to be given the privileges to use sudo. Adding the
user to the ‘wheel’ group and settings ‘security.sudo.enable = true;’
should be enough.


-- 
Mateusz K.


More information about the nix-dev mailing list