[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: changing a users group



I think vipw also performs some sanity checks...
(least that what it says)
I think that s anice thing...I would bet an extra charicter in juts the wrong spot

could suffciantly screw a system up
course..I only used vipw once...and I didn't change anything...
I immediatly exited the program as soon as I realized it was vi based
(as a matter of preference I hate using vi for anything)
-Steve


Joost Kooij wrote:

> On Fri, 8 May 1998, Hamish Moffatt wrote:
>
> > On Fri, May 08, 1998 at 08:03:51AM +0100, Joop Stakenborg wrote:
> > > Matthew D. Myers wrote:
> > > > How do you change a users group assignments without manually editing the
> > > > passwd and group  and also shadowed files.
> > > use vipw for editting your password file and vigr for the group file.
> >
> > Which is just the same as manually editing them. Is there a good
> > reason to use vipw, instead of just "vi /etc/passwd"?
>
> AFAIK vipw is supposed to lock the password file or at least perform the
> edits on a scratch copy of the original file and merge in the changes with
> the real /etc/passwd (which may have changed while you were editing) when
> you're ready.
>
> Cheers,
>
> Joost
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org




--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: