On Thursday 12 January 2006 03:57, "Michael Kintzios" <[EMAIL PROTECTED]> wrote about 'RE: [gentoo-user] su stopped working [SOLVED]': > > -----Original Message----- > > From: Walter Dnes [mailto:[EMAIL PROTECTED] > > > > On Tue, Jan 10, 2006 at 02:34:24PM -0000, Michael Kintzios wrote > > > > > This can be avoided if you use the -a (for append) option. > > > > Huh??? > > > > [m3000][root][~] usermod -a -G audio user2 > > usermod: invalid option -- a > > Usage: usermod [-u uid [-o]] [-g group] [-G group,...] > > [-d home [-m]] [-s shell] [-c comment] [-l new_name] > > [-f inactive] [-e expire] [-p passwd] [-L|-U] name > > > > I RTFM'd, and I don't see any mention of "-a" in usermod. I use > > gpasswd with the "-a" option. Is that what you meant? > > No, I meant that the -a option should be used instead of -G if you want > to append as opposed to replace the group set of a user. > > What happens when you run: > # usermod -a audio user2
I'm fairly sure the -a option is a fairly recent addition to usermod. I have it on my system (~amd64) provided by sys-apps/shadow-4.0.14-r1 but the latest stable (amd64 and x86) is only sys-apps/shadow-4.0.7-r4. Also, when I used -a, it was required to be /in addition to/ supplimentary groups passed to the -G flag, as Walter tried the first time. -- Boyd Stephen Smith Jr. [EMAIL PROTECTED] ICQ: 514984 YM/AIM: DaTwinkDaddy -- gentoo-user@gentoo.org mailing list