Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mkdir /home/miuadmin/Backup
- cp -R /etc /home/miuadmin/Backup
- mkdir /home/it
- useradd -d /home/it -g sudo -s /bin/bash it
- chown -R it.it /home/it
- chmod 644 /home/it
- nano /etc/group
- adm:x:4:jlee,it
- nano /etc/passwd
- sys*****
- userdel -r it
- rm -R /home/it
- sudo chage -l it
- sudo chage -E 01/31/2013 -m 5 -M 90 -I 30 -W 14 it
- //The following is also an example of how you can manually change the explicit expiration date (-E) to 01/31/2012, //minimum password age (-m) of 5 days, maximum password age (-M) of 90 days, inactivity period (-I) of 5 days after //password expiration, and a warning time period (-W) of 14 days before password expiration.
Advertisement
Add Comment
Please, Sign In to add comment