I need to get the "maxage" from /etc/security/user file, but, I need to do so upon user login. Since I really don't want to give "security" to EVERYONE!!! any Idea how I can do it?
its probably me and its a wednesday , but i don't understand what you want to do , the maxage field
Defines the maximum number of weeks a password is valid
do you want to define this for each user or one for all users ?
Sorry. I have Baan users that login to AIX from their PC's using the Baan interface. They never see a UNIX login; therefore they can't be notified that their password is about to expire. The interface then starts a shell on AIX called bshell. The only way I can send a message to them is by sending it to the PID of their bshell by way of a Baan program on the AIX machine. With the Baan interface I can run a program at login to call a UNIX script. Since the user is not a member of the security group I can't run a script against the /etc/security/users file to obtain the information. The only way I can figure is to run a cron job to gather the info in a text file somewhere. It then can be up to 23 hours 59 min late depending on how many times I run the job. I would like to just get the info at login. Any Idea's or is this confusing too... Thank you for responding so I could TRY to make it understandable!!!!!!
firstly isn't there an option in BAAN to check for password expiry , either on a later release ?
How often do you want the password to expire ?
Is there another option to change the password and will they see it on their front end interface,
Have you looked at setting the option
Days to WARN USER before password expires for each user
and does this warn them ?
your method looks good to me , get the week number by date +%U , and then when the time comes near use write command
for the user i.e. write fred < pwdexpire.txt
in pwdexpire.txt would have message your password will expire in a week or so?
#1 BAAN to check for password expiry
No. Baans solution is about the same. They tell you to write a script. BUT I don't think their up on their AIX. They sent a couple of solutions but neither will work for our Baan version or for AIX
#2How often do you want the password to expire ?
every 5 weeks or so
#3 Is there another option to change the password and will they see it on their front end interface
... We can change the password from Baan by calling a Baan session, which then opens an AIX terminal session and calls passwd.
#4 Have you looked at setting the option
Days to WARN USER before password expires for each user
and does this warn them ?
Yes,(Days to WARN) but the login session can not pass the message on to the bshell. They never see a terminal session.
#5 have to send the message to the Baan user with....
bshcmd6.1 -M "message" -w1 -u1 <"user" bshell PID>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.