solari s 10 auto account locking


 
Thread Tools Search this Thread
Operating Systems Solaris solari s 10 auto account locking
# 1  
Old 06-27-2006
solari s 10 auto account locking

does anyone know in solaris 10, can you lock an account if the user does not change their password within a certain amount of time?

What i want to do is, if a user doesnt change their password within 90 days, i want the account locked.

This is similar to the redhat linux passwd -i command.

All i can see now, is the passwd will expire, but if the person logs in a year later, they will still just be able to change their password at that time.

any ideas? i looked thru the passwd man page and the pam man pages, i dont see anything that is equivilent to the passwd -i command in linux.
# 2  
Old 06-27-2006
passwd -x ??
# 3  
Old 06-28-2006
password locking.

Passwd -x will expire the password. and make the user change it the next time they log in.

I want to lock the account if the user doesnt login in a period of time.

"passwd -x 90 testuser" will make the password expire at 90 days old.

In linux (RHEL), i addition to this I can now do:

"passwd -i 7 testuser" and that will lock the account 7 days after the password expires, thus they can not even login by changing their password. They would have to call me to unlock it.

The Solaris 10 shadow file has an "inactive" field, and I thought this would do the same thing, but it does not seem to be working. So I was wondering if anyone had dome anything like this with solaris 10 yet without writing a custom script.
# 4  
Old 06-28-2006
Sorry I misread your OP

passmgmt -f in combintation with passwd -x might give you something to work with. It would also lock the accounts if they are idle, it's not quite what you wanted but it's as close as I can think of right now, without doing something ugly like using the root crontab.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Which process/script is locking account ?

There is a account - ohsuser on Solaris-10 zone. It is getting locked every 2-3 minutes. Can I know, what is process or script, which is using this account and locking it ? root@tswsd23-prdt01:/root# cat /var/adm/messages | tail -10 Sep 24 11:05:53 tswsd23-prdt01 nmo: Excessive (3) login... (5 Replies)
Discussion started by: solaris_1977
5 Replies

2. Shell Programming and Scripting

auto login to Super User account

i want to write to script which will login to su account without hving user interaction.( i know Super user password) i wrote following script its also able to log into su account. but seesion gets terminates soon. what can be done ??? or is there any other solution. i don't want to use expect... (6 Replies)
Discussion started by: anup13
6 Replies

3. Shell Programming and Scripting

Locking specific account without using passwd

Hey guys just wondering how i could lock a specific acount by prepending LK to the password field in the /etc/shadow file. it cannot be done through a command since the script gets called by a menu driven interface so i cant use "passwd". Is there a way where i can search for a specific account... (11 Replies)
Discussion started by: musicmancanora
11 Replies

4. Linux

Auto create local account with winbind.

Hi, I have a set up a linux box connected to windows active directory using winbind. Everything is up and running fine. Now i wish to auto create a local account whenever a new user logs in. I have tried every possible way using the smb.conf to no avail. Any help would be appreciated. (1 Reply)
Discussion started by: d_ark
1 Replies

5. Solaris

Solaris 10 Kerberos with local account locking

Hello Gurus, I desperately need help to replicate the functionality that I had with Solaris 8 and SEAM into Solaris 10. Our application needs a few users which are created with the application install. One of our customer requires Kerberos as single sign-on because of their IT department... (0 Replies)
Discussion started by: rmaavnii
0 Replies

6. Solaris

ftp account locking

I need some help trying to figure out why our ftp account keeps getting locked with no manual intervention. We have end of day processes that run nightly and the last thing it does is ftp files to a server. Everyonce in a while the script fails because the account has been locked. How could this... (5 Replies)
Discussion started by: morgadoa
5 Replies

7. Solaris

Auto Locking user accounts

Hi, I am trying to setup account locking in Solaris 9. I have made the changes in /etc/default/login where RETRIES=5 and SYSLOG_FAILED_LOGINS=5 and in /etc/user_attr I am having: test_user::::lock_after_retries=yes Still I am not able to lock test_user after successive unsuccessful... (1 Reply)
Discussion started by: run_time_error
1 Replies

8. Solaris

SSH on Solari 8

Hi, I am installing SSH on Solaris 8....it is trying to install in /usr/local .where our /usr/local is residning on a remote system and is is read only.. Is there any way to install it in a different directory other than /usr/local.? Thanks in advance. Manu (8 Replies)
Discussion started by: b_manu78
8 Replies
Login or Register to Ask a Question