default on /etc/security/passwd of flags


 
Thread Tools Search this Thread
Operating Systems AIX default on /etc/security/passwd of flags
# 1  
Old 11-25-2009
default on /etc/security/passwd of flags

Hi All,

On /etc/security/passwd, I want a default of "flags =" on every entry on the userid.

Like

HTML Code:
>tail -10 /etc/security/passwd
perdov:
        password = xxccddsp.
        lastupdate = 1250109948
        flags =       

jong:
        password = rtyderferf
        lastupdate = 1257348231
        flags =       
>  
How do I make that a default so that new userid I will have that param? And can root userid have this param or just the regular userid?

Thanks for any comment you may add.

Last edited by itik; 11-25-2009 at 06:33 PM..
# 2  
Old 11-26-2009
Hi Itik ,

When you add user you will have no flags assigned to that user.
But if you add password or change password for this user as root that user will get flag "admchg". This flag will force user on his first login to change that password. If you want to delete that flag you can do it with pwdadm -c user_name (as root).

For root you can use flag "nocheck". Flag "admchg" is not added even you change root password and flag "admin" is implemented automatically.

You can have a look on man pwdadm or here pSeries and AIX Information Center
# 3  
Old 11-27-2009
I would go for the default: stanza in /etc/security/user and add "flag =" there and try out if it works for you.
# 4  
Old 11-27-2009
Quote:
Originally Posted by zaxxon
I would go for the default: stanza in /etc/security/user and add "flag =" there and try out if it works for you.
I think is not working that way.
I added flag = to /usr/lib/security/mkuser.default and as well to
/etc/security/user and is not working. This "flag=" is added to the /etc/security/passwd after password is created for user.
# 5  
Old 11-27-2009
Oic, I misread. Thought he was concerning /etc/security/user. My bad, ty.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. AIX

When did AIX start using /etc/security/passwd instead of /etc/passwd to store encrypted passwords?

Does anyone know when AIX started using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? (1 Reply)
Discussion started by: Anne Neville
1 Replies

2. AIX

Default /etc/passwd file

Hello All, Can anyone post the default /etc/passwd file for AIX? I would like to compare with an existing machine of mine and want to identify what are the default users that are created when the O/S is installed. In other words I would like to see the system users in AIX. Not the ones created... (1 Reply)
Discussion started by: lovesaikrishna
1 Replies

3. Solaris

passwd cmd reenables passwd aging in shadow entry

Hi Folks, I have Solaris 10, latest release. We have passwd aging set in /etc/defalut/passwd. I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging. When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

4. AIX

How do I read username and lastupdate attribute values from /etc/security/passwd

Hi, How do I read username and lastupdate attribute values from /etc/security/passwd file and write the obtained data to another file. The data in the new file should be in this format as shown: avins:12345 root:45234 xyza:23423 Plese let me know this ASAP Thanks, Haroon (3 Replies)
Discussion started by: me_haroon
3 Replies

5. AIX

I want to read username and lastupdate only from /etc/security/passwd and write the s

Hi All, As i asked you in my previous post, I want to read username and lastupdate only from /etc/security/passwd and write the same data to another file: The data in /etc/security/passwd will be in this form for example: smith: password = MGURSj.F056Dj lastupdate = 623078865 flags =... (0 Replies)
Discussion started by: me_haroon
0 Replies

6. UNIX for Advanced & Expert Users

/etc/default/passwd

Hi, I am trying to set some password settings in my unix (System V Release 5) unix. Currently i have the following settings for /etc/default/passwd PASSREQ=yes PASSLENGTH=7 MAXWEEKS=8 MINWEEKS=0 WARNWEEKS=1 MAXRETRY=5 HISTORY=5 According to above settings the password... (1 Reply)
Discussion started by: skneeli
1 Replies

7. UNIX for Dummies Questions & Answers

default passwd

How do I set a default password in sco unix? Because I'm writing a script to add users. Therefore, I need to set a default password and then force them to change it the first time they log in,,,so, I want to know the syntax to include it in my script... thankx... note: I already check the man... (1 Reply)
Discussion started by: johis
1 Replies
Login or Register to Ask a Question