aquaballoon

MIU - User setting

Sep 11th, 2013
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.65 KB | None | 0 0
  1. mkdir /home/miuadmin/Backup
  2. cp -R /etc /home/miuadmin/Backup
  3.  
  4. mkdir /home/it
  5. useradd -d /home/it -g sudo -s /bin/bash it
  6. chown -R it.it /home/it
  7. chmod 644 /home/it
  8.  
  9. nano /etc/group
  10. adm:x:4:jlee,it
  11.  
  12. nano /etc/passwd
  13. sys*****
  14.  
  15. userdel -r it
  16. rm -R /home/it
  17.  
  18. sudo chage -l it
  19. sudo chage -E 01/31/2013 -m 5 -M 90 -I 30 -W 14 it
  20. //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