Date: Wed, 4 Apr 2007 10:44:03 -0300 From: Agus <agus.262@gmail.com> To: "Kevin Kinsey" <kdk@daleco.biz> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: Non Interactive passwd change via script.... Message-ID: <fda61bb50704040644u571918e0m7871d760907bd318@mail.gmail.com> In-Reply-To: <4612F4BA.3030704@daleco.biz> References: <fda61bb50704031557s19cec5ccw4cdb10265aa8b6c4@mail.gmail.com> <4612E800.3010408@daleco.biz> <fda61bb50704031714w7e7eb78cg9a2a7d05ae284952@mail.gmail.com> <4612F4BA.3030704@daleco.biz>
next in thread | previous in thread | raw e-mail | index | archive | help
2007/4/3, Kevin Kinsey <kdk@daleco.biz>: > > Agus wrote: > >>> Hi everybody.... > >>> its been a few days now, since im trying to do a tcsh script to > automatize > >>> the process of creating users in my system.... > >>> Users register via web, and info is saved in a MySQL DB and in a > >>> file. the > >>> script reads from the file and begins adding users with pw. > >>> but im stuck on how to create the password for the users. the > >>> only solution > >>> that worked was the use of expect, but it consumes a lot of resources > >>> (7.8%System). Now that isnt a problem cause the users are few. but if > >>> it has to > >>> add a lot of users?? it will kill my server.... > >>> > >>> any hints will be apreciated..... > > > >> pw(8) ?? > > > > I cant find the way to do it with pw.... > > > > thanks.... > > Please keep the list in the TO: or CC: field on your > replies ... thanks! > > Works fine here as described in pw(8): > > [root@archangel][~] > $ id test > id: test: no such user > > [root@archangel][~] > $ pw useradd -n test > > [root@archangel][~] > $ id test > uid=1020(test) gid=1026(test) groups=1026(test) > > [root@archangel][~] > $ finger test > Login: test Name: User Test > Directory: /home/test Shell: /bin/sh > Never logged in. > No Mail. > No Plan. > > HTH, > > Kevin Kinsey > -- > It took me fifteen years to discover that I had no talent for writing, > but I couldn't give it up because by that time I was too famous. > -- Robert Benchley > OK..thanks for the heads up about responding.... The problem isnt adding the user....i ve done that......the problem is creating the password for the user as i tried to say in the first email... thanks kevin,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fda61bb50704040644u571918e0m7871d760907bd318>