Re: mass user property changes

2005-08-26 Thread Dave Ewart
On Thursday, 25.08.2005 at 21:52 -0600, Dave Thayer wrote: > On Thu, Aug 25, 2005 at 10:33:21PM +0200, David Jardine wrote: > > Wouldn't > > > > #vi /etc/passwd > > /false > > cepasswd n.n.n.n.n (looking out for system accounts) > > > > That probably should be:

Re: mass user property changes

2005-08-25 Thread Dave Thayer
On Thu, Aug 25, 2005 at 10:33:21PM +0200, David Jardine wrote: > Wouldn't > > #vi /etc/passwd > /false > cepasswd n.n.n.n.n (looking out for system accounts) > That probably should be: #vipw /etc/passwd (...) According to man vipw: [vipw]

Re: mass user property changes

2005-08-25 Thread David Jardine
On Thu, Aug 25, 2005 at 12:08:03PM -0700, Jeff D wrote: > Dave Ewart wrote: > >-BEGIN PGP SIGNED MESSAGE- > >Hash: SHA1 > > > >theal wrote: > > > >>I need to change the shell on 25+ users from /bin/false to /bin/passwd > >> > >>what is the best way to do this? Can I simply do a search and r

Re: mass user property changes

2005-08-25 Thread Jeff D
Dave Ewart wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 theal wrote: I need to change the shell on 25+ users from /bin/false to /bin/passwd what is the best way to do this? Can I simply do a search and replace while editing /etc/passwd? Technically, that's probably not the Right Wa

Re: mass user property changes

2005-08-25 Thread Craig M. Houck
Tony; I'd try something with sed like ... in a shell or perl or what ever loop getting filenames mv $filename /tmp/$$.tmp cat /tmp/$$.tmp |sed "s/false/passswd" >$filename end loop RbtBotL Craig - ><> oBU SysAdmin /|\ 607 777 6827 ^ Tot Ziens -- To UNSUBSCRIBE, email to

Re: mass user property changes

2005-08-25 Thread Dave Ewart
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 theal wrote: > I need to change the shell on 25+ users from /bin/false to /bin/passwd > > what is the best way to do this? Can I simply do a search and replace > while editing /etc/passwd? Technically, that's probably not the Right Way, but so long

Re: mass user property changes

2005-08-25 Thread Stephen R Laniel
On Thu, Aug 25, 2005 at 02:23:04PM -0400, theal wrote: > I need to change the shell on 25+ users from /bin/false to /bin/passwd > > what is the best way to do this? Can I simply do a search and replace while > editing /etc/passwd? There may be a safer way to do this, a la visudo (i.e., a program

mass user property changes

2005-08-25 Thread theal
I need to change the shell on 25+ users from /bin/false to /bin/passwd   what is the best way to do this? Can I simply do a search and replace while editing /etc/passwd?   Tony