groupadd bug?

groupadd bug?

Post by Joseph Millma » Thu, 11 Dec 2003 01:53:27



Not too sure what's going on here, but I just added a group to my system
with the groupadd command, and I noticed some odd behaviour. groupadd did
add the group as I expected, but it didn't properly increment the GID as it
should (as described in the manpage).

At first I figured that it must have been because I had a dash in the
groupname -- which generates the same error message -- but I tried a more
simplistic name and I got the same results (GID 100).

Further experiments on an friend's Ultra1 shows the "proper" behaviour.

System:
SPARCstation5 running Solaris9 12/02
Recommended and J2SE_Recommended patch clusters from late November installed
access via serial

Commands:
# groupadd drop-box
UX: groupadd: drop-box name should be all lower case or numeric.
# cat /etc/group
<snip type="default_groups" />
sshd::100:sshd
drop-box::100:

----------------------------------------------------------------------------

System:
Ultra 1 running Solaris9 08/03
no patches (at least that I can verify... box isn't mine)
access via SSH

Commands:
# groupadd test ; groupadd test2 ; groupadd -g 110 test3 ; groupadd test4 ;
cat /etc/group
<snip type="default_groups" />
test::100:
test2::101:
test3::110:
test4::111:

----------------------------------------------------------------------------

Manpage excerpt:
OPTIONS
     The following options are supported:

     -g gid
           Assigns the group id gid for the new group. This group
           id must be a non-negative decimal integer below MAXUID
           as defined in /usr/include/sys/param.h. The  group  ID
           defaults  to  the next available (unique) number above
           the highest number currently assigned. For example, if
           groups  100, 105, and  200 are assigned as groups, the
           next default group number will  be   201.  (Group  IDs
           from   0-99  are reserved by SunOS for future applica-
           tions.)

     -o    Allows the gid to be duplicated (non-unique).

--

A steer is just a bull that's been...
Well, let's just say he doesn't make much time with the ladies.
 -- Alton Brown

 
 
 

groupadd bug?

Post by Casper H.S. Di » Thu, 11 Dec 2003 05:05:26



>Not too sure what's going on here, but I just added a group to my system
>with the groupadd command, and I noticed some odd behaviour. groupadd did
>add the group as I expected, but it didn't properly increment the GID as it
>should (as described in the manpage).
>At first I figured that it must have been because I had a dash in the
>groupname -- which generates the same error message -- but I tried a more
>simplistic name and I got the same results (GID 100).
>Further experiments on an friend's Ultra1 shows the "proper" behaviour.

Your system is missing the "getent" command.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

groupadd bug?

Post by Joseph Millma » Thu, 11 Dec 2003 12:55:14


<snip type="text/plain" />

Hrmm... so I am!

 
 
 

1. groupadd question

Ok I am totally new to UNIX and UNIX commands, I am from the Windows school,
(insert joke here) anywho, I have attempted to add a group using the
./groupadd gruopname and when I hit enter it returns me to a blank line
where I am free to type what ever, not sure what i need to type ther, I can
press crtl+X or C and it returns me to the $ prompt....any suggestions?

2. rtl8139 modules for network cards - help

3. groupadd - command not found?

4. rerouting on link failure

5. Problems with useradd(1M) and groupadd(1M) in Solaris 2.3

6. ASUS Ta-200ST ext. and Linux

7. groupadd, groupdel, groupmod are missing from slackware 1.1.2

8. Purging New Mail

9. Groupadd ????

10. setuid and groupadd

11. groupadd(1M) and grpck(1M) stricter than POSIX.1/SUS

12. groupadd?

13. what happened to useradd, groupadd (-del, -mod)?