How to recycle old passwords by modifying /etc/passwd file ?


 
Thread Tools Search this Thread
Operating Systems Solaris How to recycle old passwords by modifying /etc/passwd file ?
# 1  
Old 09-27-2010
How to recycle old passwords by modifying /etc/passwd file ?

hi, has anyone here tried to recycle old passwords by copying something out of the passwd file and paste them back into the same passwd file ?

can it work this way ?

some of our applications passwords are expiring but they cannot be change due to application concerns, so therefore we must retain them.

Smilie
# 2  
Old 09-27-2010
I think you should only disable expiration of passwords for those applications, using:
Code:
passwd -x -1 app_user

# 3  
Old 09-27-2010
Quote:
Originally Posted by bartus11
I think you should only disable expiration of passwords for those applications, using:
Code:
passwd -x -1 app_user

we can't do that because of audit reasons, there must be expiration of passwords but we can don't reveal that we are using the same passwords
# 4  
Old 09-27-2010
Then why not just setting the new password to be the same as the old one ?
# 5  
Old 09-27-2010
Quote:
Originally Posted by jlliagre
Then why not just setting the new password to be the same as the old one ?
can't, there is a policy in place to prevent that.

what i heard is that we could copy the encrypted string and paste it again, not sure does it work this way.
# 6  
Old 09-28-2010
Quote:
Originally Posted by Exposure
can't, there is a policy in place to prevent that.
You certainly can as root isn't subject to password policy restrictions.
Quote:
what i heard is that we could copy the encrypted string and paste it again, not sure does it work this way.
This would work but it is more complex and error prone.
# 7  
Old 09-29-2010
Quote:
Originally Posted by jlliagre
You certainly can as root isn't subject to password policy restrictions.
This would work but it is more complex and error prone.
think i am going to create a dummy account and try experimenting it
Login or Register to Ask a Question

Previous Thread | Next Thread

9 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 Advanced & Expert Users

When did UNIX start using encrypted passwords, and not displaying passwords when you type them in?

I've been using various versions of UNIX and Linux since 1993, and I've never run across one that showed your password as you type it in when you log in, or one that stored passwords in plain text rather than encrypted. I'm writing a script for work for a security audit, and two of the... (5 Replies)
Discussion started by: Anne Neville
5 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. UNIX for Dummies Questions & Answers

Batch file to change all passwords

Hi all I am using tru64 Unix and I want to use batch file which makes me to change all user passwords at the same time ,instead of changing everyone separately. Please could anyone help me to do that. bye. (2 Replies)
Discussion started by: ahmedbashir
2 Replies

5. Shell Programming and Scripting

change home directory by modifying passwd

hi How can I change the home directory of a user without using usermod -d command? ( by modifying /etc/passwd) (17 Replies)
Discussion started by: tjay83
17 Replies

6. UNIX for Dummies Questions & Answers

HP-UX recycle

Hi, I am new to HP-UX environment. Could someone help me giving commands to recycle the server and how to go to single user mode. Thanks Hemanth (3 Replies)
Discussion started by: Hemanth_gp
3 Replies

7. Shell Programming and Scripting

How do I parse passwords into passwd command.

Do you know of any methods where I can send an input of passwords into the passwd command? For instance, I have a file which has the password stored and I want it to be sent into this command "passwd gilberteu" when it prompts for the new password and subsequently confirming the password that was... (0 Replies)
Discussion started by: gilberteu
0 Replies

8. Solaris

Passwords in /etc/shadow file

I want to import my passwd/shadow files from Solaris 6 to Solaris 10. I found that the encryption method for passwords has changed. Is there a command or script to convert the Solaris 6 passwords to Solaris 10? I have searched the net and just can't seem to find the answer. For Example: The... (6 Replies)
Discussion started by: westsiderick
6 Replies

9. Shell Programming and Scripting

blanking out passwords within a file

I have a file in which I need to find every occurance of PASSWORD="somepassword" and replace the actual password with "xxx". Within the file that I am working, I can have combinations of PASSWORD or it can also show as RMT_PASSWORD. The 'edited' file (with passwords x'ed out) will then be emailed... (4 Replies)
Discussion started by: hedrict
4 Replies
Login or Register to Ask a Question