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.
-
Possible dup: stackoverflow.com/questions/3190955/…Diego Herranz– Diego Herranz2013-10-09 17:02:43 +00:00Commented Oct 9, 2013 at 17:02
-
2Diego 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.Ismael Vacco– Ismael Vacco2013-10-09 18:09:55 +00:00Commented Oct 9, 2013 at 18:09
Add a comment
|
1 Answer
See the creation of the jimbo user in https://pagure.io/libuser/blob/master/f/python/test-script
3 Comments
alper
On your script I am having following error:
SystemError: could not open configuration file /etc/libuser.conf': No such file or directory`Phil P
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?
alper
Also should I run the script with
sudo?