script
Bhavani Shankar R
bhavi at ubuntu.com
Fri Aug 30 05:17:04 UTC 2013
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
More information about the ubuntu-users
mailing list