Passwd question

 
Thread Tools Search this Thread
Operating Systems Linux SuSE Passwd question
# 1  
Old 11-13-2012
Passwd question

Hello,
I'm trying to set my SuSe severs to have accounts lock after 35 days. I have googled this and all I can find is the -f option for when the account password expires.
usermod -f user

On other systems this locks the account even if the password is not expired.

Can someone pint me in the right direction?
# 2  
Old 11-13-2012
Have you looked at the chage command?

---------- Post updated at 11:35 AM ---------- Previous update was at 11:33 AM ----------

From the man page for the chage command:

Code:
-E, --expiredate EXPIRE_DATE
          Set the date or number of days since January 1, 1970 on which the user?s account will no longer be accessible. The date may also be
          expressed in the format YYYY-MM-DD (or the format more commonly used in your area). A user whose account is locked must contact the
          system administrator before being able to use the system again.

          Passing the number -1 as the EXPIRE_DATE will remove an account expiration date.

# 3  
Old 11-13-2012
in2nix4life,
I don't think that will work. I'm looking for a command that will lock an account after 35 days of inactivity. I'm not looking to lock an account on a certain date.
# 4  
Old 11-13-2012
Did you look at the man page?
# 5  
Old 11-13-2012
The man page is not working on my SuSe servers.
example:
Code:
man passwd
Man: find all matching manual pages
* passwd (1)
   passwd (5)
   passwd (lssl)
Man: What manual page do you want?
Man:

I put in a number and I get this
Code:
/usr/bin/nroff: Can't create temp directory, exiting...
Manual page passwd(5) line 1/1 (end)

I'm quite new to SuSe so If I'm making an errors sorry about that.
# 6  
Old 11-13-2012
In the mean time perhaps this might help:
Man Page for chage (linux Section 1) - The UNIX and Linux Forums
This User Gave Thanks to Scrutinizer For This Post:
# 7  
Old 11-13-2012
Thanks for the providing me the man page.
I'm beginning to think I can't do what I'm being told to do. Which is to have user accounts lock after 35 days of inactivity. I see option where I can lock the account after the password expires. We have our user accounts passwords expire after 60 days. So this will not work.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 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. UNIX for Dummies Questions & Answers

etc/passwd help

Hi! i've been searching a way to display the users who are in the /etc/passwd directory...using ls or grep or cat command should do it?i can't find a way to get this right..i mean none of the preview commands function sounded good to me to use... (9 Replies)
Discussion started by: strawhatluffy
9 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

etc/passwd

Is there any way to allow users to access the etc/passwd file for commands like whoami but not be able to read the file? If I don't put a user in the security group and change the permissions on the etc/passwd file to 640 (rw-r-----) the users can login but the whoami command doesn't work for... (5 Replies)
Discussion started by: daveisme
5 Replies

5. Shell Programming and Scripting

/etc/passwd

Hello All I want to print only the full name from the /etc/passwd file and print it to the screen . Could you please let me know how can I do that? (4 Replies)
Discussion started by: supercops
4 Replies

6. Solaris

A question on /etc/passwd file

I have a question here on /etc/passwd file. There is a user called user_a, when it is defined in /etc/passwd as below +user_a:x:::::/bin/ksh after user_a login, the system could not recognize the correct enviromental variable $USER_A_HOME which is defined in .kshrc file (under /home/user_a... (2 Replies)
Discussion started by: ij_2005
2 Replies

7. Shell Programming and Scripting

wc /etc/passwd

I have left unix for a long time.Almost forget everthing.:( Anybody can tell me what is the meaning? wc /etc/passwd 9 16 1155 /etc/passwd and $ wc -l /etc/passwd wc -l /etc/passwd 9 /etc/passwd (1 Reply)
Discussion started by: zhshqzyc
1 Replies

8. UNIX for Advanced & Expert Users

no /etc/passwd

Hello ppl, A small mistake of mine has led the /etc/passwd file deleted. So i went to rescue mode and used the following command echo "root::0:0:Superuser:/:/bin/bash" > passwd but that did not get effect in anyway way. when I switch back to normal mode the root is still asking for a passwd.... (3 Replies)
Discussion started by: cyno
3 Replies

9. UNIX for Advanced & Expert Users

passwd

I have to change more then 200 User at once the password (security-dday). The programm passwd will answers (new password + again) How can i do this in a script? thanks for answers (5 Replies)
Discussion started by: Erwin Stocker
5 Replies

10. UNIX for Advanced & Expert Users

etc/passwd

Hi!!, when I open the /etc/passwd file on my workstation, I find a entry as below... +::0:0::: Could u tell me what does it mean?? I have never seen anything like that before.... :confused: (2 Replies)
Discussion started by: jyotipg
2 Replies
Login or Register to Ask a Question