Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

adduser fails for Ubuntu 22.04 #262

Open
mcirsta opened this issue Jul 7, 2022 · 2 comments
Open

adduser fails for Ubuntu 22.04 #262

mcirsta opened this issue Jul 7, 2022 · 2 comments

Comments

@mcirsta
Copy link

mcirsta commented Jul 7, 2022

For Ubunut 22.04 this command:

  runChrootCommand "adduser $BREATH_USER && usermod -aG sudo $BREATH_USER"

fails, saying something like command not found.

Using the full path: /usr/sbin/adduser seems to work.

@mcirsta mcirsta changed the title adduser fails adduser fails for Ubuntu 22.04 Jul 7, 2022
@mcirsta
Copy link
Author

mcirsta commented Jul 7, 2022

Possible cause:

usermod -aG sudo marius
Command 'usermod' is available in the following places

  • /sbin/usermod
  • /usr/sbin/usermod
    The command could not be located because '/usr/sbin:/sbin' is not included in the PATH environment variable.
    This is most likely caused by the lack of administrative privileges associated with your user account.
    usermod: command not found

@Apacelus
Copy link
Contributor

What exactly are you trying to do?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants