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:
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]
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
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
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
-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
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
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
8 matches
Mail list logo