Lap 3 User Management
Lap 3 User Management
======================
User id
========
[root@localhost ~]# id Osman
User delete
============
[root@localhost ~]# userdel Osman // delete from /etc/password
[root@localhost ~]# cd /home/
[root@localhost home]# rm -rf Osman // delete from home directory
Note: if you create user account without passwd u can’t del that user u must make a passwd to del
Password inactive
=======================
[root@localhost ~]# chage –I 30 // the account will be work within 30 in active//
[root@localhost ~]# chage –list Mahdi // to verify //
Minimum number of days between password change
================================================
[root@localhost ~]# chage –m 4 Mahdi // user Mahdi will change his password after 4 days //
[root@localhost ~]# chage –list Mahdi