Try the useradd command. It's not interactive so you specify values as options of the command.
http://linux.die.net/man/8/useradd Jeremiah E. Bess Network Ninja, Penguin Geek, Father of five. <https://plus.google.com/u/0/103182072532361592558> <http://www.linkedin.com/profile/view?id=47451026> On Tue, Sep 3, 2013 at 10:08 AM, vinay kumar <[email protected]> wrote: > Hii , I want to create linux user through shell script.The user is created > only by the root permission. > Sudo adduser abc... > will ask first of all password for sudo and then unix password,retype the > password..and name ,work phone etc and finally Y/n.How would I write in the > shell script to that I can assign all these in the script itself. > > -- > -- > You received this message because you are subscribed to the Linux Users > Group. > To post a message, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit our group at > http://groups.google.com/group/linuxusersgroup > References can be found at: http://goo.gl/anqri > Please remember to abide by our list rules (http://tinyurl.com/LUG-Rulesor > http://cdn.fsdev.net/List-Rules.pdf) > > --- > You received this message because you are subscribed to the Google Groups > "Linux Users Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup References can be found at: http://goo.gl/anqri Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or http://cdn.fsdev.net/List-Rules.pdf) --- You received this message because you are subscribed to the Google Groups "Linux Users Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
