Re: changing a users group

1998-05-08 Thread Joop Stakenborg


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.

Joop [EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: changing a users group

1998-05-08 Thread Hamish Moffatt
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?


Hamish
-- 
Hamish Moffatt, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5
CCs of replies from mailing lists are welcome.   http://hamish.home.ml.org


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: changing a users group

1998-05-08 Thread Joost Kooij
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 [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: changing a users group

1998-05-08 Thread Butch Kemper
At 04:57 -0500 on 5/8/98, 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.

Did I miss something?  The command usermod -g groupname userid is what I
use to change the group assignment for a user.

I don't worry about the groups file because it is static so I use vi on it.

Butch

Butch Kemper | Free sound advice available
Kemper  Associates Consulting Group | 95% sound and 5% advice
830-693-6967 | Refunds cheerfully provided



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: changing a users group

1998-05-08 Thread Stephen Carpenter
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 [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: changing a users group

1998-05-08 Thread Richard E. Hawkins Esq.
  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?

only if something goes wrong :)  I forget exactly what it is, but vipw does 
some checking before saving the file, preventing some types of dumb mistakes.

Also, if you have shadow passwords, directly editing /etc/passwd can give 
strange results.  iirc, i actually had different passwords in single user mode 
and multiuser after that . . . . it took days and some help to figure out what 
was going on.

rick

-- 
These opinions will not be those of ISU until it pays my retainer.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: changing a users group

1998-05-08 Thread Jean Pierre LeJacq
On Fri, 8 May 1998, Richard E. Hawkins Esq. wrote:

 Which is just the same as manually editing them. Is there a good
 reason to use vipw, instead of just vi /etc/passwd?
 
 only if something goes wrong :)  I forget exactly what it is, but vipw does 
 some checking before saving the file, preventing some types of dumb mistakes.
 
 Also, if you have shadow passwords, directly editing /etc/passwd can give 
 strange results.  iirc, i actually had different passwords in single user 
 mode 
 and multiuser after that . . . . it took days and some help to figure out 
 what 
 was going on.

Would pwck and grpck have helped.  I always use these after editing
any of the user/group files.

-- 
Jean Pierre



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


changing a users group

1998-05-07 Thread Matthew D. Myers
How do you change a users group assignments without manually editing the
passwd and group  and also shadowed files.




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: changing a users group

1998-05-07 Thread Greg Vence
Matthew D. Myers wrote:
 
 How do you change a users group assignments without manually editing the
 passwd and group  and also shadowed files.
 
Check out the FAQ-o-matic
http://www.debian.org/fom/1.html

More specifically, here
http://www.debian.org/fom/122.html

It dices, slices  for 19.95, we'll throw in the steak knives. :)

L8r  -- Greg.
--
What do you want to spend today?
Debian GNU/Linux  (Free for an UNLIMITED time) 
http://www.debian.org/social_contract.html
Greg VenceKH2EA/4


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]