#2144: shadow-4.1.0
--------------------------------------+-------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: [email protected]
Type: task | Status: new
Priority: normal | Milestone: 7.0
Component: Book | Version: SVN
Severity: normal | Resolution:
Keywords: |
--------------------------------------+-------------------------------------
Comment (by [EMAIL PROTECTED]):
Replying to [comment:3 Bryan Kadzban]:
> Replying to [comment:2 [EMAIL PROTECTED]:
> > Or, we could remove the default group setting and all related handling
of it in useradd & usermod (which is part of what the current Shadow patch
does).
>
> Not sure if anything other than this would be needed or not, but how
about a:
>
> {{{
> sed -i -e '/^GROUP=/d' etc/useradd
> }}}
>
> before installation? Or is that what you meant with the "related
handling of it in useradd and usermod" comment?
>
> If changes to the source of useradd and usermod are required, then I'd
probably be in favor of adding a GID-1000 group. I don't think any of the
groups that we have would be right for this setting, except *possibly*
nogroup.
If we just sed it out, we get
{{{
root in chroot ~# useradd fubar
useradd: unknown GID 100
}}}
and the last line of /etc/group is now
{{{
fubar:x:1000:
}}}
This is partly coming from useradd.c, but I'm unsure how it generated 1000
in that case :
{{{
/*
* Global variables
*/
/*
* These defaults are used if there is no defaults file.
*/
static gid_t def_group = 100;
static const char *def_gname = "other";
static const char *def_home = "/home";
static const char *def_shell = "";
static const char *def_template = SKEL_DIR;
static const char *def_create_mail_spool = "no";
}}}
I could live with a group of 1000, called 'users', unless anybody objects.
And don't you love the way trac formatted what should have been code (for
the sed) in the quote ?
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2144#comment:5>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page