Subject: Re: adding users to groups....
To: None <netbsd-users@netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: netbsd-users
Date: 01/15/2007 22:12:53
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.

-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)