Fwd: script

Gene Heskett gheskett at wdtv.com
Fri Aug 30 08:20:30 UTC 2013


On Friday 30 August 2013 04:19:15 Gene Heskett did opine:

> On Friday 30 August 2013 04:02:08 jiten jha did opine:
> > Hello ,
> > 
> > I want 100 users with different name like users = a , b ,c ,d and the
> > password of user 'a' is a and user 'b' is b.
> > 
> > On Fri, Aug 30, 2013 at 12:12 PM, Gene Heskett <gheskett at wdtv.com> 
wrote:
> > > On Friday 30 August 2013 02:34:08 jiten jha did opine:
> > > > 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 .
> 
> That makes more sense.
> 
> Your script then will need to do something like
> 	su $user -c "passwd=$user"
> in order to be that $user to set that $user's passwd.
> 
And it goes without saying that this script, in order to be able to execute 
that statement, must be run as the superuser.

> > > > I want same username and same password.
> > > > 
> > > > Like :
> > > >  username = jiten
> > > > 
> > > > password = jiten
> 
> You realize of course that doing so is essentially zero inter-user
> security. Someone logged into his $HOME dir could do an ls ../ and
> instantly have not only every username, but also that users passwd.
> If he can gain root, he owns the machine.  Probably in about 15 seconds.
> 
> > > I looked at your script, but the whole concept seems flawed to me.
> > > 
> > > In any *nix, usernames and passwords s/b unique, and this seems
> > > doomed to fail as it would appear to just recreate the same user
> > > 100 times and you would wind up with only 1 actual user, if it
> > > could but I don't think it can without reporting an already exists
> > > error for the last 99.
> > > 
> > > Perhaps someone could offer constructive advice if we knew why you
> > > needed 100 users all named alike, with identical passwords.
> > > 
> > > Cheers, Gene
> > > --
> > > 
> > > "There are four boxes to be used in defense of liberty:
> > >  soap, ballot, jury, and ammo. Please use in that order."
> > > 
> > > -Ed Howdershelt (Author)
> > > My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
> > > My views
> > > <http://www.armchairpatriot.com/What%20Has%20America%20Become.shtml>
> > > Positively no smoking.
> > > A pen in the hand of this president is far more
> > > dangerous than 200 million guns in the hands of
> > > 
> > >          law-abiding citizens.
> > > 
> > > --
> > > ubuntu-users mailing list
> > > ubuntu-users at lists.ubuntu.com
> > > Modify settings or unsubscribe at:
> > > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> 
> Cheers, Gene


Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
My views 
<http://www.armchairpatriot.com/What%20Has%20America%20Become.shtml>
"It's in process":
	So wrapped up in red tape that the situation is almost hopeless.
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
         law-abiding citizens.




More information about the ubuntu-users mailing list