Gary Law wrote:> Hi
>
> Creating an account on solaris using the ‘user’ type seems to create a
> locked account. This then needs to be unlocked using
>
> passwd –u user
>
> I would have thought creating an unlocked account would be more useful.
> Or an extension to the user type that accepts a lock => (true|false)
> setting.
>
> To test if an account is locked, use
>
> passwd –s user
This isn''t nearly as easy as it seems, unfortunately. Each platform
will have its own mechanisms for testing whether an account is locked or
not.
If you don''t feel comfortable sending patches, can you open this as an
enhancement request? I understand the desire for it, but it''s pretty
low on my priority list and it requires splitting the current user
providers. For instance, I think that Solaris and Linux both use the
useradd provider, but they manage locked accounts differently, so we''d
need to subclass the provider for each one.
I''d be willing to work with someone else who wanted to solve this
problem, since it''s not actually that complicated but it''s
also not all
that fun.
--
Do not think of knocking out another person''s brains because he differs
in opinion from you. It would be as rational to knock yourself on the
head because you differ from yourself ten years ago. -- Horace Mann
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com