4

I am using today the command adduser of linux with OS library. But would like to use the python libuser for administrative commands as add a new user.

2
  • Possible dup: stackoverflow.com/questions/3190955/… Commented Oct 9, 2013 at 17:02
  • 2
    Diego Herranz, it don't a duplcate. I would like how to create an user in linux using the libuser. This ask show only how to create an user in linux. Commented Oct 9, 2013 at 18:09

1 Answer 1

4

See the creation of the jimbo user in https://pagure.io/libuser/blob/master/f/python/test-script

Sign up to request clarification or add additional context in comments.

3 Comments

On your script I am having following error: SystemError: could not open configuration file /etc/libuser.conf': No such file or directory`
Not my script, I pointed to an existing script which is part of the libuser codebase. Looks like the library code requires the config file to exist. So, perhaps create it?
Also should I run the script with sudo?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.