Useradd command line OPTION RedHat
useradd arif -"x"
1. -c = comment 'string'
ex useradd arif -c arifrachman
on /etc/passwd
arif:x:501:501:arif rachman:/home/arif:/bin/bash
2. -d = home directory instead of /home/arif
ex useradd arif -d /homearif
3. -e date = date that account is disabled YYYY-MM-DD
ex useradd arif -e 2011-12-12
user cannot login now because it has been disabled
4. -f days = number day after password expires until the user disabled
5.
1. -c = comment 'string'
ex useradd arif -c arifrachman
on /etc/passwd
arif:x:501:501:arif rachman:/home/arif:/bin/bash
2. -d = home directory instead of /home/arif
ex useradd arif -d /homearif
3. -e date = date that account is disabled YYYY-MM-DD
ex useradd arif -e 2011-12-12
user cannot login now because it has been disabled
4. -f days = number day after password expires until the user disabled
5.
No comments