script
jiten jha
jitenjha11 at googlemail.com
Fri Aug 30 06:20:51 UTC 2013
Dear Friend,
It is working fine but when I run scrip then it is asking for password I
want when I run script than by default it should take password.
like : username jiten
password = jiten
When I run script then it is creating jiten user name but after that it is
asking me password. But i want by default it should take jiten password.
On Fri, Aug 30, 2013 at 10:47 AM, Bhavani Shankar R <bhavi at ubuntu.com>wrote:
> On Fri, Aug 30, 2013 at 10:30 AM, jiten jha <jitenjha11 at googlemail.com>
> wrote:
> > Dear Friends,
> >
> > I want to add 100 users in my ubuntu server I have a scrip but when i run
> > script it is adding user but asking password. So can you check my scrip
> and
> > modify it so that when I run it . It will not ask password .
> >
> > I want same username and same password.
> > Like :
> > username = jiten
> > password = jiten
> >
>
> How about
>
> useradd -m $user
> echo $user"Jatin" | passwd --stdin "$user"
>
> while passing your users text in for loop?
>
> Regards,
>
>
>
> --
> Bhavani Shankar
> Ubuntu Developer | www.ubuntu.com
> https://launchpad.net/~bhavi
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
Thanks & Regards
Jitendra Jha
+91-7498370550
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130830/263ea37d/attachment.html>
More information about the ubuntu-users
mailing list