Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128042 - Please include feature -M in application useradd
Summary: Please include feature -M in application useradd
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-29 16:10 UTC by Magno Alexandre Torres
Modified: 2006-03-30 07:27 UTC (History)
1 user (show)

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 Magno Alexandre Torres 2006-03-29 16:10:17 UTC
Hello guys!

On redhat/centos/fedora the application useradd has a option -M. This option is
useful when you use in /etc/login.defs the directive: 
CREATE_HOME true

Perhaps this isn't the right channel to ask for, but the website of shadow is
down...
http://shadow.pld.org.pl/

So, if this is a compilation option, i will fill greate with.
Perdon my poor english...

And please, make option CREATE_HOME true, on login.defs, default, like anothers linux distros :)
Comment 1 SpanKY gentoo-dev 2006-03-29 19:07:38 UTC
not a security issue
Comment 2 SpanKY gentoo-dev 2006-03-29 19:11:18 UTC
i'll send an e-mail to upstream shadow dev list to see if they'll add the feature
Comment 3 SpanKY gentoo-dev 2006-03-29 19:12:43 UTC
actually, i just read the source code, and they've already made a decision
Comment 4 SpanKY gentoo-dev 2006-03-29 19:13:27 UTC
default behavior of useradd is to not create the homedir

if you want to create the homedir, use the -m option

the CREATE_HOME config option is not valid and wont be added
Comment 5 Magno Alexandre Torres 2006-03-30 06:48:10 UTC
(In reply to comment #4)
> default behavior of useradd is to not create the homedir
> 
> if you want to create the homedir, use the -m option
> 
> the CREATE_HOME config option is not valid and wont be added
> 

But this option exist in man of login.defs:

       CREATE_HOME (boolean)
              This defines whether useradd should create home directories for users by default. This option is OR'ed
              with the -m flag on useradd command line.
Is it right?
So, this option won't be add because isn't safe or because isn't default behavior?

Comment 6 SpanKY gentoo-dev 2006-03-30 07:27:53 UTC
that's a bug in the shadow codebase ... if you read the actual shadow sourcecode, it will error out when it encounters CREATE_HOME ... so the docs are out of sync with the codebase

i'll poke upstream about it