Hi John On Thu, 16 Sep 2004, John Clarke wrote:
> On Wed, Sep 15, 2004 at 09:05:22 +1000, Darren Williams wrote: > > > as root add a user to a group > > /usr/sbin/usermod -G scanner <you> > > /usr/sbin/usermod -G scanner <your wife> > > That doesn't quite do what you think it does. It *does* add the users > to group scanner, but it also deletes them from any other groups that > they're currently members of. So, you need to change that to include > all the groups that the user is already a member of, e.g.: > > [EMAIL PROTECTED] ~]$ groups johnc > johnc : johnc disk floppy apache > [EMAIL PROTECTED] ~]$ usermod -G johnc,disk,floppy,apache,scanner johnc > > The first group in the list is the user's primary group. Make sure it > stays the same. Arrgh, yes one should always check the man page before running any commands as root, this reminds me of a more serious problem I think on this list where a question was asked on how to break in to a linux box? Someone replied with "dd if=/dev/zero of=/dev/hda", DO NOT RUN THIS COMMAND, this created a lot of heated discussions. So before you go and run any commands always read the man page. > > > Cheers, > > John > -- > I believe IDE merely calls for a deranged chicken and some cheap > paraffin candles from Ikea. Less than UDMA/100 and you can get away > with dribbling the grease from KFC on the cables and you should be good > to go. -- Graham Reed > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -------------------------------------------------- Darren Williams <dsw AT gelato.unsw.edu.au> [EMAIL PROTECTED] <www.gelato.unsw.edu.au> -------------------------------------------------- -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
