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

Re: How to add a user to a group on the fly



Quoting Kent West (westk@acu.edu):
> Pann McCuaig wrote:
> 
> > On Mon, Mar 06, 2000 at 17:31, Kent West wrote:
> > > If I want to add my normal user (westk) to the
> > > dialout group, I know I can (as root) edit the
> > > /etc/group file and add westk to the end of the
[...]
> > > dialout line. However, I then have to log out (and
> > > shut down vmware and NT-on-vmware) and shut down
> > > X, etc, then log back in and fire everything back
> > > up in order to get the change to take affect. Is
> > > there any way I can get the change to take affect
> > > without logging out/logging back in?
> >
> > I don't know of a way. It _might_ be sufficient to open an xterm or rxvt
> > or whatever with the -ls option after the change, and then run your
> > dialout app from that shell, but I dunno. I don't use X much meself, so
> > logging out and then back in is a 5 second process.  :-)
> 
> Yeah; I've had several suggestions, but so far none of them have panned out
> (even your suggestion of opening an "xterm -ls"). I reckon I'll just have
> to log out/log back in. (Actually, for now, I've just Alt-F2'd and started
> a new session, and then started a new X session on the next display -- I'm
> in the dialout group on the second X session, so I can just Alt-Ctrl-Fx
> back and forth between the two X sessions until I get around to shutting
> down session #1.) Thanks anyway!

Why not just

/bin/su - foo

where foo is yourself?

Cheers,

-- 
Email:  d.wright@open.ac.uk   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


Reply to: