Subject: Re: adding users to groups....
To: None <netbsd-users@netbsd.org>
From: George Georgalis <george@galis.org>
List: netbsd-users
Date: 01/15/2007 16:46:49
On Mon, Jan 15, 2007 at 10:12:53PM +0100, Juergen Hannken-Illjes wrote:
>On Mon, Jan 15, 2007 at 03:51:17PM -0500, George Georgalis wrote:
>> I know you can just edit the group file, but I want to use system
>> tools if they are available because I'm running from a program
>> anyway. The command mostly works (disregard -m) 
>> 
>> useradd -g "900" -G "0,100" -p "*************" -u "1000" -g "1000" -c "George Georgalis" -s "/bin/ksh" "geo"
>> useradd: Warning: home directory `/home/geo' doesn't exist, and -m was not specified
>> useradd: can't append group `0' for user `geo'
>> useradd: can't append group `100' for user `geo'
>> 
>> but what's wrong with -G? This is a 3.1 system, I seem to recall
>> no issue with 3.0, where I used something similar.
>
>Does it work with group names instead of numbers?
>
>Looks like useradd doesn't allow numbers for -G.

thanks, good catch. turns out my program is a lot simpler using
names, even though it was a major rewrite. :)

// George


-- 
George Georgalis, systems architect, administrator <IXOYE><