Search Results

Search: Posts Made By: tshepang
10,661
Posted By tshepang
Below is what I wrote and I am not winning ...
Below is what I wrote and I am not winning

cat /etc/shadow | cut -d: -f1,8 | sed /:$/d > /tmp/expirelist.txt
totalaccounts=`cat /tmp/expirelist.txt | wc -l`
for((i=1; i<=$totalaccounts; i++ ))
...
10,661
Posted By tshepang
Script to send an email for password expiry
Newbie in scripting

Please assist with a script to send an email to all users seven days before their passwords expires.Aging set for 90 days.

[root@redhat ~]# chage -l user1
Last password...
3,606
Posted By tshepang
Useradd script
Trying to create a bash script that will read the /etc/passwd file for existing UID's before adding a new user and also does an incremental by allocating the next available UID.And also add the user...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 09:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy