I find this very useful on several occasions so here we go. Login as root and execute the following:
passwd -x -1
So if you want to remove password expiry from bob’s account, type:
passwd -x -1 bob
Notice that -1 parameter after -x represents number of days before the password expires. Since we do not want the password to expire, we have set it to -1. However, you can set it to any value you want. So, if you want your password to expire after 90 days (i.e. 3 months) for bob’s account, type:
passwd -x 90 bob
If you want to check how much RAM your Solaris machine has, here’s how:
/usr/sbin/prtdiag -v | grep -i memory
You can also try:
/usr/sbin/prtconf | grep -i memory
Hey Guys! In this series, we will be building a chat application in java. I think this will be a great chance for you all guys out there wanting to do something hands on in Java.
Here’s a quick one. If you have a server and you do not want the password for a user to expire (as it can screw some things up while its active), you need to execute the following commands as
passwd -x -1
where is the username whose password expiry you wish to remove. For instance, in my case, if username is dm014, I executed:
passwd -x -1 dm014
I have tested this and it works flawlessly on most Linux and Solaris operating systems.