To check the user properties grep for a user name.
root# grep user-name | /etc/passwd
user-name:x:500:500: :/home/user-name:/bin/bash # this line contains 7 information of a user.
{user-name}:{x}:{500}:{500}:{ }:{/home/user-name}:{/bin/bash} # I have divided each part with a bracket.
1.{user-name} = User name
2.{x} =Encrypted password
3.{500} =UID
4.{500} =GID
5.{ } =Comment
6.{/home/user-name} =User's default or home directory
7.{/bin/bash} =Default Shell of Linux
root# grep user-name | /etc/passwd
user-name:x:500:500: :/home/user-name:/bin/bash # this line contains 7 information of a user.
{user-name}:{x}:{500}:{500}:{ }:{/home/user-name}:{/bin/bash} # I have divided each part with a bracket.
1.{user-name} = User name
2.{x} =Encrypted password
3.{500} =UID
4.{500} =GID
5.{ } =Comment
6.{/home/user-name} =User's default or home directory
7.{/bin/bash} =Default Shell of Linux
No comments:
Post a Comment