So recently I got myself a raspberry pi and I have been learning python and what not and I want to create a user from a text file but on the raspberry pi it's different with the raspberry pi you need to provide more than just a password and a user group you need all of this stuff
Enter the new value, or press ENTER for the default
Full Name []: something
Room Number []: 123
Work Phone []: 123
Home Phone []: 123
Other []: 123
How would I be able to do all of this from a text file, I am completely new to Linux scripting and that kind of stuff so I haven't really tried much other than the stuff that I have seen online but none of it works because the "raspbian" OS is a little different then most but here's just the script that i'm working with
sudo adduser --disabled-password random1
I know it's nothing but that will make the account so I don't need a password and then it takes me to the part where I need to put in the stuff above, if this is possible can you guys help me? Thanks!
os.system(command);