Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 09:04 PM
Mark McWilliams
 
Posts: n/a
Default Mass Changing Password MIN LENGTH

I want to change (increase) the length of the Password MIN LENGTH and was
wondering if their was a command to change all of my users with the new
setting instead of going into SMIT for each user account. If their is such
a command, what if a current user would have a password setup below the new
Password MIN LENGTH setting? What would happen? Would the system ask them
to change their password the next time they try to log in or would it wait
until the next time the password needs to be reset?

Any help would be great....

Mark


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 09:04 PM
Nicholas Dronen
 
Posts: n/a
Default Re: Mass Changing Password MIN LENGTH

Mark McWilliams <mark@nospam.com> wrote:
MM> I want to change (increase) the length of the Password MIN LENGTH and was
MM> wondering if their was a command to change all of my users with the new
MM> setting instead of going into SMIT for each user account.

This might work. IIRC, normal user ids are created starting at uid 200.
Adjust for your purposes.

#!/bin/ksh

minlen=10

IFS=:
while read user pass uid misc
do
if [[ $uid -lt 200 ]]
then
continue
fi

echo chuser minlen=$minlen $user
echo pwdadm -f ADMCHG $user
done < /etc/passwd

Remove the echo statements when you're satisfied that the script
will do what you want.

MM> If their is such
MM> a command, what if a current user would have a password setup below the new
MM> Password MIN LENGTH setting? What would happen? Would the system ask them
MM> to change their password the next time they try to log in or would it wait
MM> until the next time the password needs to be reset?

I think it'd wait until the next time their password. If you want to
check, just run the chuser command against one of the accounts, then
run pwdadm -q username to see whether the ADMCHG flag is set.

Regards,

Nicholas

--
"Why shouldn't I top-post?" http://www.aglami.com/tpfaq.html
"Meanings are another story." http://www.ifas.org/wa/glossolalia.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 09:06 PM
Steven Langdale
 
Posts: n/a
Default Re: Mass Changing Password MIN LENGTH

On Tue, 9 Dec 2003 13:54:24 -0600, "Mark McWilliams" <mark@nospam.com>
wrote:

>I want to change (increase) the length of the Password MIN LENGTH and was
>wondering if their was a command to change all of my users with the new
>setting instead of going into SMIT for each user account. If their is such
>a command, what if a current user would have a password setup below the new
>Password MIN LENGTH setting? What would happen? Would the system ask them
>to change their password the next time they try to log in or would it wait
>until the next time the password needs to be reset?
>
>Any help would be great....
>
>Mark


Mark

Do you know that each individual user has got their MINLEN set?
Unless you specify it upon user creation the default will be used.
Verify this by looking in /etc/security/user (I think - off the top of
my head). If it's not that file, it's one of them in /etc/security.

If they are all using the default (all the stuff in the "default:"
stanza at the top), you can change this.

The change will not force a password change on next login, but will be
applied when their password expires.

Thanks

Steven


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 09:08 PM
Mark McWilliams
 
Posts: n/a
Default Re: Mass Changing Password MIN LENGTH

Steven,

So I can just edit this file and save it and all of the user settings
will change?

Thanks,

Mark

"Steven Langdale" <steven.langdale@toyland.demon.co.uk> wrote in message
news:1m8ktvsar05tqk86foq5o1rkdigts87aq2@4ax.com...
> On Tue, 9 Dec 2003 13:54:24 -0600, "Mark McWilliams" <mark@nospam.com>
> wrote:
>
> >I want to change (increase) the length of the Password MIN LENGTH and was
> >wondering if their was a command to change all of my users with the new
> >setting instead of going into SMIT for each user account. If their is

such
> >a command, what if a current user would have a password setup below the

new
> >Password MIN LENGTH setting? What would happen? Would the system ask

them
> >to change their password the next time they try to log in or would it

wait
> >until the next time the password needs to be reset?
> >
> >Any help would be great....
> >
> >Mark

>
> Mark
>
> Do you know that each individual user has got their MINLEN set?
> Unless you specify it upon user creation the default will be used.
> Verify this by looking in /etc/security/user (I think - off the top of
> my head). If it's not that file, it's one of them in /etc/security.
>
> If they are all using the default (all the stuff in the "default:"
> stanza at the top), you can change this.
>
> The change will not force a password change on next login, but will be
> applied when their password expires.
>
> Thanks
>
> Steven
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-04-2008, 09:08 PM
Nicholas Dronen
 
Posts: n/a
Default Re: Mass Changing Password MIN LENGTH

Mark McWilliams <mark@nospam.com> wrote:
MM> Steven,

MM> So I can just edit this file and save it and all of the user settings
MM> will change?

Please don't top-post. See my response at the bottom, where it
belongs.

MM> "Steven Langdale" <steven.langdale@toyland.demon.co.uk> wrote in message
MM> news:1m8ktvsar05tqk86foq5o1rkdigts87aq2@4ax.com...
>> On Tue, 9 Dec 2003 13:54:24 -0600, "Mark McWilliams" <mark@nospam.com>
>> wrote:
>>
>> >I want to change (increase) the length of the Password MIN LENGTH and was
>> >wondering if their was a command to change all of my users with the new
>> >setting instead of going into SMIT for each user account. If their is

MM> such
>> >a command, what if a current user would have a password setup below the

MM> new
>> >Password MIN LENGTH setting? What would happen? Would the system ask

MM> them
>> >to change their password the next time they try to log in or would it

MM> wait
>> >until the next time the password needs to be reset?
>> >
>> >Any help would be great....


>> Do you know that each individual user has got their MINLEN set?
>> Unless you specify it upon user creation the default will be used.
>> Verify this by looking in /etc/security/user (I think - off the top of
>> my head). If it's not that file, it's one of them in /etc/security.
>>
>> If they are all using the default (all the stuff in the "default:"
>> stanza at the top), you can change this.
>>
>> The change will not force a password change on next login, but will be
>> applied when their password expires.


See the script I already posted. If you have a large number of
users, it would be wasteful to edit any file in /etc/security
manually. (Some would argue that commands like chuser and pwdadm
exist simply to prevent administrators from mucking up the files
by editing them by hand. But that's another story.)

Regards,

Nicholas

--
"Why shouldn't I top-post?" http://www.aglami.com/tpfaq.html
"Meanings are another story." http://www.ifas.org/wa/glossolalia.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-04-2008, 09:08 PM
Steven Langdale
 
Posts: n/a
Default Re: Mass Changing Password MIN LENGTH

On 16 Dec 2003 19:30:43 GMT, Nicholas Dronen <ndronen@io.frii.com>
wrote:

>MM> So I can just edit this file and save it and all of the user settings
>MM> will change?
>
>Please don't top-post. See my response at the bottom, where it
>belongs.
>
>MM> "Steven Langdale" <steven.langdale@toyland.demon.co.uk> wrote in message
>MM> news:1m8ktvsar05tqk86foq5o1rkdigts87aq2@4ax.com...
>>> On Tue, 9 Dec 2003 13:54:24 -0600, "Mark McWilliams" <mark@nospam.com>
>>> wrote:
>>>
>>> >I want to change (increase) the length of the Password MIN LENGTH and was
>>> >wondering if their was a command to change all of my users with the new
>>> >setting instead of going into SMIT for each user account. If their is

>MM> such
>>> >a command, what if a current user would have a password setup below the

>MM> new
>>> >Password MIN LENGTH setting? What would happen? Would the system ask

>MM> them
>>> >to change their password the next time they try to log in or would it

>MM> wait
>>> >until the next time the password needs to be reset?
>>> >
>>> >Any help would be great....

>
>>> Do you know that each individual user has got their MINLEN set?
>>> Unless you specify it upon user creation the default will be used.
>>> Verify this by looking in /etc/security/user (I think - off the top of
>>> my head). If it's not that file, it's one of them in /etc/security.
>>>
>>> If they are all using the default (all the stuff in the "default:"
>>> stanza at the top), you can change this.
>>>
>>> The change will not force a password change on next login, but will be
>>> applied when their password expires.

>
>See the script I already posted. If you have a large number of
>users, it would be wasteful to edit any file in /etc/security
>manually. (Some would argue that commands like chuser and pwdadm
>exist simply to prevent administrators from mucking up the files
>by editing them by hand. But that's another story.)
>
>Regards,
>
>Nicholas


All

The point I was trying to make was that if the system is relying on
the default stanza setting, there is no need to make a new entry in
each user stanza. If you did, you would always have to make mass
changes like this. This could be resolved by editing one value in one
line.

I agree entirely with the general rule to use the commands to update
these files, but this could be such a simple change, and difficult to
muck up. As an aside, can the standard utililities modify the default
stanza? I've never tried.

Nicholas, Sorry I also sent a reply to your email address, pressed
wrong button

Thanks

Steven

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-04-2008, 09:08 PM
Mark McWilliams
 
Posts: n/a
Default Re: Mass Changing Password MIN LENGTH


"Steven Langdale" <steven.langdale@toyland.demon.co.uk> wrote in message
news:0squtvkvt9k4dajj09c0lfpgm2ugjkfl3d@4ax.com...
> On 16 Dec 2003 19:30:43 GMT, Nicholas Dronen <ndronen@io.frii.com>
> wrote:
>
> >MM> So I can just edit this file and save it and all of the user

settings
> >MM> will change?
> >
> >Please don't top-post. See my response at the bottom, where it
> >belongs.
> >
> >MM> "Steven Langdale" <steven.langdale@toyland.demon.co.uk> wrote in

message
> >MM> news:1m8ktvsar05tqk86foq5o1rkdigts87aq2@4ax.com...
> >>> On Tue, 9 Dec 2003 13:54:24 -0600, "Mark McWilliams" <mark@nospam.com>
> >>> wrote:
> >>>
> >>> >I want to change (increase) the length of the Password MIN LENGTH and

was
> >>> >wondering if their was a command to change all of my users with the

new
> >>> >setting instead of going into SMIT for each user account. If their

is
> >MM> such
> >>> >a command, what if a current user would have a password setup below

the
> >MM> new
> >>> >Password MIN LENGTH setting? What would happen? Would the system

ask
> >MM> them
> >>> >to change their password the next time they try to log in or would it

> >MM> wait
> >>> >until the next time the password needs to be reset?
> >>> >
> >>> >Any help would be great....

> >
> >>> Do you know that each individual user has got their MINLEN set?
> >>> Unless you specify it upon user creation the default will be used.
> >>> Verify this by looking in /etc/security/user (I think - off the top of
> >>> my head). If it's not that file, it's one of them in /etc/security.
> >>>
> >>> If they are all using the default (all the stuff in the "default:"
> >>> stanza at the top), you can change this.
> >>>
> >>> The change will not force a password change on next login, but will be
> >>> applied when their password expires.

> >
> >See the script I already posted. If you have a large number of
> >users, it would be wasteful to edit any file in /etc/security
> >manually. (Some would argue that commands like chuser and pwdadm
> >exist simply to prevent administrators from mucking up the files
> >by editing them by hand. But that's another story.)
> >
> >Regards,
> >
> >Nicholas

>
> All
>
> The point I was trying to make was that if the system is relying on
> the default stanza setting, there is no need to make a new entry in
> each user stanza. If you did, you would always have to make mass
> changes like this. This could be resolved by editing one value in one
> line.
>
> I agree entirely with the general rule to use the commands to update
> these files, but this could be such a simple change, and difficult to
> muck up. As an aside, can the standard utililities modify the default
> stanza? I've never tried.
>
> Nicholas, Sorry I also sent a reply to your email address, pressed
> wrong button
>
> Thanks
>
> Steven
>


Steve and Nicholas,

I didn't know that the top-post was some kind of etiquette thing
within newsgroups. Now I know....

I only have about 60 users in my system and yes each user has a minlen
value. Can I just vi this file (/etc/security/user) and substitute this
line with the value that I want it to be and save it? It would probably be
best to do this after hours I guess!!!!

Mark



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-04-2008, 09:08 PM
Nicholas Dronen
 
Posts: n/a
Default Re: Mass Changing Password MIN LENGTH

Mark McWilliams <mark@nospam.com> wrote:

MM> "Steven Langdale" <steven.langdale@toyland.demon.co.uk> wrote in message
MM> news:0squtvkvt9k4dajj09c0lfpgm2ugjkfl3d@4ax.com...
>> On 16 Dec 2003 19:30:43 GMT, Nicholas Dronen <ndronen@io.frii.com>
>> wrote:
>>
>> >MM> So I can just edit this file and save it and all of the user

MM> settings
>> >MM> will change?
>> >
>> >Please don't top-post. See my response at the bottom, where it
>> >belongs.
>> >
>> >MM> "Steven Langdale" <steven.langdale@toyland.demon.co.uk> wrote in

MM> message
>> >MM> news:1m8ktvsar05tqk86foq5o1rkdigts87aq2@4ax.com...
>> >>> On Tue, 9 Dec 2003 13:54:24 -0600, "Mark McWilliams" <mark@nospam.com>
>> >>> wrote:
>> >>>
>> >>> >I want to change (increase) the length of the Password MIN LENGTH and

MM> was
>> >>> >wondering if their was a command to change all of my users with the

MM> new
>> >>> >setting instead of going into SMIT for each user account. If their

MM> is
>> >MM> such
>> >>> >a command, what if a current user would have a password setup below

MM> the
>> >MM> new
>> >>> >Password MIN LENGTH setting? What would happen? Would the system

MM> ask
>> >MM> them
>> >>> >to change their password the next time they try to log in or would it
>> >MM> wait
>> >>> >until the next time the password needs to be reset?
>> >>> >
>> >>> >Any help would be great....
>> >
>> >>> Do you know that each individual user has got their MINLEN set?
>> >>> Unless you specify it upon user creation the default will be used.
>> >>> Verify this by looking in /etc/security/user (I think - off the top of
>> >>> my head). If it's not that file, it's one of them in /etc/security.
>> >>>
>> >>> If they are all using the default (all the stuff in the "default:"
>> >>> stanza at the top), you can change this.
>> >>>
>> >>> The change will not force a password change on next login, but will be
>> >>> applied when their password expires.
>> >
>> >See the script I already posted. If you have a large number of
>> >users, it would be wasteful to edit any file in /etc/security
>> >manually. (Some would argue that commands like chuser and pwdadm
>> >exist simply to prevent administrators from mucking up the files
>> >by editing them by hand. But that's another story.)
>> >
>> >Regards,
>> >
>> >Nicholas

>>
>> All
>>
>> The point I was trying to make was that if the system is relying on
>> the default stanza setting, there is no need to make a new entry in
>> each user stanza. If you did, you would always have to make mass
>> changes like this. This could be resolved by editing one value in one
>> line.
>>
>> I agree entirely with the general rule to use the commands to update
>> these files, but this could be such a simple change, and difficult to
>> muck up. As an aside, can the standard utililities modify the default
>> stanza? I've never tried.
>>
>> Nicholas, Sorry I also sent a reply to your email address, pressed
>> wrong button


MM> Steve and Nicholas,

MM> I didn't know that the top-post was some kind of etiquette thing
MM> within newsgroups. Now I know....

Some would disagree that it's important, but if a thread gets
many replies, it remains readable if the responses are made
inline and, just as one reads English, from top to bottom. (See
the tpfaq.html link below.)

MM> I only have about 60 users in my system and yes each user has a minlen
MM> value. Can I just vi this file (/etc/security/user) and substitute this
MM> line with the value that I want it to be and save it? It would probably be
MM> best to do this after hours I guess!!!!

I missed what Steve was getting at regarding the default. What
you can do is change the minlen field in the default stanza.
After that, if you want the setting to take effect immediately,
just run the pwdadm command I posted previously for all
accounts.

Regards,

Nicholas

--
"Why shouldn't I top-post?" http://www.aglami.com/tpfaq.html
"Meanings are another story." http://www.ifas.org/wa/glossolalia.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-04-2008, 09:08 PM
Steven Langdale
 
Posts: n/a
Default Re: Mass Changing Password MIN LENGTH

On 16 Dec 2003 22:08:24 GMT, Nicholas Dronen <ndronen@io.frii.com>
wrote:

>Mark McWilliams <mark@nospam.com> wrote:
>
>MM> "Steven Langdale" <steven.langdale@toyland.demon.co.uk> wrote in message
>MM> news:0squtvkvt9k4dajj09c0lfpgm2ugjkfl3d@4ax.com...
>>> On 16 Dec 2003 19:30:43 GMT, Nicholas Dronen <ndronen@io.frii.com>
>>> wrote:
>>>
>>> >MM> So I can just edit this file and save it and all of the user

>MM> settings
>>> >MM> will change?
>>> >
>>> >Please don't top-post. See my response at the bottom, where it
>>> >belongs.
>>> >
>>> >MM> "Steven Langdale" <steven.langdale@toyland.demon.co.uk> wrote in

>MM> message
>>> >MM> news:1m8ktvsar05tqk86foq5o1rkdigts87aq2@4ax.com...
>>> >>> On Tue, 9 Dec 2003 13:54:24 -0600, "Mark McWilliams" <mark@nospam.com>
>>> >>> wrote:
>>> >>>
>>> >>> >I want to change (increase) the length of the Password MIN LENGTH and

>MM> was
>>> >>> >wondering if their was a command to change all of my users with the

>MM> new
>>> >>> >setting instead of going into SMIT for each user account. If their

>MM> is
>>> >MM> such
>>> >>> >a command, what if a current user would have a password setup below

>MM> the
>>> >MM> new
>>> >>> >Password MIN LENGTH setting? What would happen? Would the system

>MM> ask
>>> >MM> them
>>> >>> >to change their password the next time they try to log in or would it
>>> >MM> wait
>>> >>> >until the next time the password needs to be reset?
>>> >>> >
>>> >>> >Any help would be great....
>>> >
>>> >>> Do you know that each individual user has got their MINLEN set?
>>> >>> Unless you specify it upon user creation the default will be used.
>>> >>> Verify this by looking in /etc/security/user (I think - off the top of
>>> >>> my head). If it's not that file, it's one of them in /etc/security.
>>> >>>
>>> >>> If they are all using the default (all the stuff in the "default:"
>>> >>> stanza at the top), you can change this.
>>> >>>
>>> >>> The change will not force a password change on next login, but will be
>>> >>> applied when their password expires.
>>> >
>>> >See the script I already posted. If you have a large number of
>>> >users, it would be wasteful to edit any file in /etc/security
>>> >manually. (Some would argue that commands like chuser and pwdadm
>>> >exist simply to prevent administrators from mucking up the files
>>> >by editing them by hand. But that's another story.)
>>> >
>>> >Regards,
>>> >
>>> >Nicholas
>>>
>>> All
>>>
>>> The point I was trying to make was that if the system is relying on
>>> the default stanza setting, there is no need to make a new entry in
>>> each user stanza. If you did, you would always have to make mass
>>> changes like this. This could be resolved by editing one value in one
>>> line.
>>>
>>> I agree entirely with the general rule to use the commands to update
>>> these files, but this could be such a simple change, and difficult to
>>> muck up. As an aside, can the standard utililities modify the default
>>> stanza? I've never tried.
>>>
>>> Nicholas, Sorry I also sent a reply to your email address, pressed
>>> wrong button

>
>MM> Steve and Nicholas,
>
>MM> I didn't know that the top-post was some kind of etiquette thing
>MM> within newsgroups. Now I know....
>
>Some would disagree that it's important, but if a thread gets
>many replies, it remains readable if the responses are made
>inline and, just as one reads English, from top to bottom. (See
>the tpfaq.html link below.)
>
>MM> I only have about 60 users in my system and yes each user has a minlen
>MM> value. Can I just vi this file (/etc/security/user) and substitute this
>MM> line with the value that I want it to be and save it? It would probably be
>MM> best to do this after hours I guess!!!!
>
>I missed what Steve was getting at regarding the default. What
>you can do is change the minlen field in the default stanza.
>After that, if you want the setting to take effect immediately,
>just run the pwdadm command I posted previously for all
>accounts.
>
>Regards,
>
>Nicholas


You have a coupe of choices here:

1. As you have MINLEN settings in each user stanza, you could use the
script that Nicholas provided to update them all. I'd also update the
one in the default stanza and not bother specifying one for all
subsequently created users.

2. You could update the one in the default stanza and remove the ones
from all the other user stanzas. As number 1, don't bother specifying
one for all subsequently created users so they just use the default.

Personally I'd go for option 2, it will leave the system in a nice
clean state with only one place where MINLEN is specified, much easier
for subequent changes.

If you also want to force a password change to enforce the MINLEN
immediately, use the script but just have it perform the pwdadm bit.

I have done this in the past, and it worked without a hitch, but the
choice is yours.

Good Luck

Steven

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-04-2008, 09:08 PM
Mark McWilliams
 
Posts: n/a
Default Re: Mass Changing Password MIN LENGTH


"Steven Langdale" <steven.langdale@toyland.demon.co.uk> wrote in message
news:fv1vtvkn98s91111qb0sr0tj4gbf578n9e@4ax.com...
> On 16 Dec 2003 22:08:24 GMT, Nicholas Dronen <ndronen@io.frii.com>
> wrote:
>
> >Mark McWilliams <mark@nospam.com> wrote:
> >
> >MM> "Steven Langdale" <steven.langdale@toyland.demon.co.uk> wrote in

message
> >MM> news:0squtvkvt9k4dajj09c0lfpgm2ugjkfl3d@4ax.com...
> >>> On 16 Dec 2003 19:30:43 GMT, Nicholas Dronen <ndronen@io.frii.com>
> >>> wrote:
> >>>
> >>> >MM> So I can just edit this file and save it and all of the

user
> >MM> settings
> >>> >MM> will change?
> >>> >
> >>> >Please don't top-post. See my response at the bottom, where it
> >>> >belongs.
> >>> >
> >>> >MM> "Steven Langdale" <steven.langdale@toyland.demon.co.uk> wrote in

> >MM> message
> >>> >MM> news:1m8ktvsar05tqk86foq5o1rkdigts87aq2@4ax.com...
> >>> >>> On Tue, 9 Dec 2003 13:54:24 -0600, "Mark McWilliams"

<mark@nospam.com>
> >>> >>> wrote:
> >>> >>>
> >>> >>> >I want to change (increase) the length of the Password MIN LENGTH

and
> >MM> was
> >>> >>> >wondering if their was a command to change all of my users with

the
> >MM> new
> >>> >>> >setting instead of going into SMIT for each user account. If

their
> >MM> is
> >>> >MM> such
> >>> >>> >a command, what if a current user would have a password setup

below
> >MM> the
> >>> >MM> new
> >>> >>> >Password MIN LENGTH setting? What would happen? Would the

system
> >MM> ask
> >>> >MM> them
> >>> >>> >to change their password the next time they try to log in or

would it
> >>> >MM> wait
> >>> >>> >until the next time the password needs to be reset?
> >>> >>> >
> >>> >>> >Any help would be great....
> >>> >
> >>> >>> Do you know that each individual user has got their MINLEN set?
> >>> >>> Unless you specify it upon user creation the default will be used.
> >>> >>> Verify this by looking in /etc/security/user (I think - off the

top of
> >>> >>> my head). If it's not that file, it's one of them in

/etc/security.
> >>> >>>
> >>> >>> If they are all using the default (all the stuff in the "default:"
> >>> >>> stanza at the top), you can change this.
> >>> >>>
> >>> >>> The change will not force a password change on next login, but

will be
> >>> >>> applied when their password expires.
> >>> >
> >>> >See the script I already posted. If you have a large number of
> >>> >users, it would be wasteful to edit any file in /etc/security
> >>> >manually. (Some would argue that commands like chuser and pwdadm
> >>> >exist simply to prevent administrators from mucking up the files
> >>> >by editing them by hand. But that's another story.)
> >>> >
> >>> >Regards,
> >>> >
> >>> >Nicholas
> >>>
> >>> All
> >>>
> >>> The point I was trying to make was that if the system is relying on
> >>> the default stanza setting, there is no need to make a new entry in
> >>> each user stanza. If you did, you would always have to make mass
> >>> changes like this. This could be resolved by editing one value in one
> >>> line.
> >>>
> >>> I agree entirely with the general rule to use the commands to update
> >>> these files, but this could be such a simple change, and difficult to
> >>> muck up. As an aside, can the standard utililities modify the default
> >>> stanza? I've never tried.
> >>>
> >>> Nicholas, Sorry I also sent a reply to your email address, pressed
> >>> wrong button

> >
> >MM> Steve and Nicholas,
> >
> >MM> I didn't know that the top-post was some kind of etiquette

thing
> >MM> within newsgroups. Now I know....
> >
> >Some would disagree that it's important, but if a thread gets
> >many replies, it remains readable if the responses are made
> >inline and, just as one reads English, from top to bottom. (See
> >the tpfaq.html link below.)
> >
> >MM> I only have about 60 users in my system and yes each user has a

minlen
> >MM> value. Can I just vi this file (/etc/security/user) and substitute

this
> >MM> line with the value that I want it to be and save it? It would

probably be
> >MM> best to do this after hours I guess!!!!
> >
> >I missed what Steve was getting at regarding the default. What
> >you can do is change the minlen field in the default stanza.
> >After that, if you want the setting to take effect immediately,
> >just run the pwdadm command I posted previously for all
> >accounts.
> >
> >Regards,
> >
> >Nicholas

>
> You have a coupe of choices here:
>
> 1. As you have MINLEN settings in each user stanza, you could use the
> script that Nicholas provided to update them all. I'd also update the
> one in the default stanza and not bother specifying one for all
> subsequently created users.
>
> 2. You could update the one in the default stanza and remove the ones
> from all the other user stanzas. As number 1, don't bother specifying
> one for all subsequently created users so they just use the default.
>
> Personally I'd go for option 2, it will leave the system in a nice
> clean state with only one place where MINLEN is specified, much easier
> for subequent changes.
>
> If you also want to force a password change to enforce the MINLEN
> immediately, use the script but just have it perform the pwdadm bit.
>
> I have done this in the past, and it worked without a hitch, but the
> choice is yours.
>
> Good Luck
>
> Steven
>


Thanks guys.....I'm going to try this tomorrow night and I'll let you know
how it goes.

Mark


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:43 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220