Using terminal with user without password

I really wanted to set-up a PC for my old man and he really likes using google chrome, but I cannot simply make a user without password for him, makepkg has a safety feature that doesn’t allow me to run it as root and the program itselt ask me for a password that doesn’t exist, I tried just clicking enter, typing " ", “”, ’ ', the root password, etc, now I am gonna need to make a password just for it

Hello @bielgio :wink:

It is in general a really, really bad idea to have a user account without a password, but if it comes to sudo, there is an option. Open /etc/sudoers.d/ as root and and create a file like nopw and put this in it:


Then add the user to the group nopw:

groupadd nopw && usermod -aG nopw $USER

Sure, that have to be done as root.

WARNIING: If you do this, you are on your own for any vulnerabilities.

Instead, define specific applications. Maybe this is more secure:

$USER ALL=(ALL) NOPASSWD:/usr/bin/pacman, /usr/bin/makepkg

Hope that helps :wink:

1 Like