On 05/03/12 21:05, Mike Erdely wrote:
On Thu, May 03, 2012 at 02:48:14PM -0400, Mike Erdely wrote:
FYI: For a test, I added "foo" with useradd(8) and "bar" with adduser(8):
# grep -E "(foo|bar)" /etc/master.passwd
foo:*************:1002:1002::0:0::/home/foo:/bin/ksh
bar:*:1003:1003::0:0:bar:/home/bar:/bin/ksh

Looks like useradd does the right thing and adduser does not.

With the diff below I added baz:
foo:*************:1002:1002::0:0::/home/foo:/bin/ksh
bar:*:1003:1003::0:0:bar:/home/bar:/bin/ksh
baz:*************:1004:1004::0:0:baz:/home/baz:/bin/ksh

ok?

I'm not sure about this. The check in security is there for a reason. If you want to bypass it, it might be better to have to do it manually.

The inconsistancy is annoying though, as is the "*************"-trick, which I believe is merely a way to make it seem like a password while it is not.

/Alexander

Reply via email to