chage -d equivalent


 
Thread Tools Search this Thread
Special Forums Cybersecurity chage -d equivalent
# 1  
Old 05-31-2012
chage -d equivalent

Hello all,

I was wondering if there was a LINUX command equivalent of 'chage -d' on for the following UNIX flavors:

HP-UX
Solaris
AIX

I want to be able to change the aging for an account on each system without inadvertently expiring an account that is like with the "/bin/passwd -x" or '/bin/passwd -n" commands.

Thanks in advance,
# 2  
Old 06-02-2012
For HP-UX, see the usermod command.
# 3  
Old 06-02-2012
If you want to force the users to change their password at next login, the below command works on most of the systems:
Code:
passwd -f user_name

For AIX, check man chuser. This not only provides password aging information, also provides many many useful user attributes info.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

RHEL 6.3 - chage command not redirecting the output to console.

When i am issuing chage command, it reporting the output properly. But when i redirect the output, i am not getting the output in the mentioned path. chage -l root >> /tmp/chage.txt. I need to use this into the script to capture the data. I think its seems to be bug with RHEL 6.3. Same... (3 Replies)
Discussion started by: Srini.rk1983
3 Replies

2. Shell Programming and Scripting

unable to chage the date format

Hi All, I want chage the date value YYMM to YYYYMM in my script. I am trying, but not get it. Eg: 1109 changed to 201109. $(if ] then echo "1" else echo "update_month<=$ARCHIVE_DT" fi) Through above i got "update_month<=1109" in else, but i must get it "update_month<=201109" ... (4 Replies)
Discussion started by: pdathu
4 Replies

3. Cybersecurity

Run chage as not root ?

Hello, Running Debian lenny. Is there any way to run $ chage --expiredate some_date user1 chage: Permission denied. as not root user inside script ? I really need to do this, I could grant whatever group membership to running user, setuid bit or whatever is needed ? (I do not want to do... (4 Replies)
Discussion started by: vilius
4 Replies

4. Shell Programming and Scripting

need perl equivalent

Dear All, Good day, can any of you help me in the following problem: I need to find the perl equivalent for the following commandline grep characters |awk '{print \$2}'Expecting your reply and thanks in advance. Warm regards Fredrick. (4 Replies)
Discussion started by: Fredrick
4 Replies

5. Linux

Linux equivalent for...

I moved to a Linux system from Windows a few months ago. Most of the programs I had been using were already native to Linux (Firefox, the GIMP, Pari, etc.) and most others I found a close enough program (Crimson Editor -> gedit, Visual Studio -> KDevelop, Primo -> Morain's ECPP). Now I'm down... (1 Reply)
Discussion started by: CRGreathouse
1 Replies

6. UNIX for Dummies Questions & Answers

Zgrep equivalent-

Hi guys I cant use zgrep on a SunOS Do you know any alternative for it? i need to use zgrep -c grep works fine but zgrep is not supported (4 Replies)
Discussion started by: khestoi
4 Replies

7. HP-UX

lsof equivalent in HP-UX

I need lsof equivalent in HP-UX. I do not want to add lsof utility separately. (1 Reply)
Discussion started by: deo_kaustubh
1 Replies

8. HP-UX

pwdx equivalent on HP

In sun solaris, pwdx will give the print working directory. Suppose I have 5 databases running on different oracle versions. If I want to know what database is running on what oracle version, I just give pwdx <process id>. It will show the oracle home details. Could you give me the... (10 Replies)
Discussion started by: oracleuser
10 Replies

9. Shell Programming and Scripting

ps ax equivalent in solaris

I am using "ps ax" command in one of my scripts . AIX has x flag for ps . is there any equilent command for ps ax in solaris ? Thanks (1 Reply)
Discussion started by: talashil
1 Replies

10. HP-UX

hp-ux mksysb equivalent

Hi Guys, Does hp-ux has mksysb equivalent with aix? Or something similar that you can save the system config. Or you just backup the boot image, that's it. Thanks in advance, itik (3 Replies)
Discussion started by: itik
3 Replies
Login or Register to Ask a Question