Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153666 - inconsistency in useradd
Summary: inconsistency in useradd
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-01 03:38 UTC by LAj
Modified: 2006-11-01 06:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LAj 2006-11-01 03:38:05 UTC
I've found an inconsistency in the man page for useradd command and how it work for me.
Man page says that defualt gid for the new account is 1 if -g option is not used.
I've created 3 account with the handbook procedure( http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=11 ) and a new group has been added for each user.
These are my group and passwd:
[code]# less /etc/group
bin:x:1:root,bin,daemon
laj:x:1000:
lina:x:1005:
oriana:x:1006:
# less /etc/passwd
laj:x:1000:1000::/home/laj:/bin/bash
lina:x:1001:1005::/home/lina:/bin/bash
oriana:x:1002:1006::/home/oriana:/bin/bash[/code]

I think this can be related with the xsane problem( pleace, see this also, http://forums.gentoo.org/viewtopic-t-509503-highlight-.html?sid=9a8215e3ec53de6dc11485134419578a )cause of the bin group ID is 1.

But why we must have all these groups?
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-01 03:50:17 UTC
Not a security bug.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-11-01 03:58:16 UTC
man useradd:
<snip>
The default group number is 1 *or* whatever is specified in /etc/default/useradd... 
</snip>

So, kindly see what you've stuck in /etc/default/useradd. If you don't tell us *how* did you add those users (the exact command) noone will explain it to you. You also didn't post sys-apps/shadow version. Plus, bugzilla is not a support forum.

Comment 3 LAj 2006-11-01 05:50:15 UTC
Ths is the line used for 3 different user:
useradd -m -G users,wheel,audio -s /bin/bash john

and as expressed in /etc/default/useradd the users have been added in the "users" group.

However, typing man useradd is listed only :
***
The default group number is 1 
*** Il  numero  di  gruppo
              predefinito 
Comment 4 LAj 2006-11-01 05:50:15 UTC
Ths is the line used for 3 different user:
useradd -m -G users,wheel,audio -s /bin/bash john

and as expressed in /etc/default/useradd the users have been added in the "users" group.

However, typing man useradd is listed only :
***
The default group number is 1 
*** Il  numero  di  gruppo
              predefinito รจ 1.

in my italian doc.

Nevertheless is not secure run xsane as root 
NeXT ~ # ls -l /usr/bin/xsane
-r-sr-xr-x 1 root root 7112 15 giu 19:47 /usr/bin/xsane
if you want if found the devices( as written in the support forum ).
My shadow is the latest from the stable amd64
as 
NeXT ~ # emerge -pv xsane

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-gfx/xsane-0.991  USE="gimp jpeg nls png tiff" 0 kB 

Total size of downloads: 0 kB
NeXT ~ # grep xsane /etc/portage/package.keywords

Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-11-01 06:21:14 UTC
Take your xsane problem somewhere else, completely unrelated. Your italian manpage is incorrect, report it to the translator, thanks.

Closing, the useradd behaviour is correct.