What is the difference between user name, display name and log-in name?

Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
- What is the difference between user name, display name and log-in name?
- What are the consequences of modifying each of them if a substantial difference holds?
- How do I modify these?
I understand that usermod is relevant here, but interpreting its options is not immediate without having that terminology clear. And there might be other commands that serve the same or similar purposes.
Pass. Thanks for clarifying this.
users
add a comment |Â
up vote
2
down vote
favorite
- What is the difference between user name, display name and log-in name?
- What are the consequences of modifying each of them if a substantial difference holds?
- How do I modify these?
I understand that usermod is relevant here, but interpreting its options is not immediate without having that terminology clear. And there might be other commands that serve the same or similar purposes.
Pass. Thanks for clarifying this.
users
1
You'll probably want to show the context you're seeing each of those names.
â Bratchley
Sep 2 '16 at 13:59
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
- What is the difference between user name, display name and log-in name?
- What are the consequences of modifying each of them if a substantial difference holds?
- How do I modify these?
I understand that usermod is relevant here, but interpreting its options is not immediate without having that terminology clear. And there might be other commands that serve the same or similar purposes.
Pass. Thanks for clarifying this.
users
- What is the difference between user name, display name and log-in name?
- What are the consequences of modifying each of them if a substantial difference holds?
- How do I modify these?
I understand that usermod is relevant here, but interpreting its options is not immediate without having that terminology clear. And there might be other commands that serve the same or similar purposes.
Pass. Thanks for clarifying this.
users
users
asked Sep 2 '16 at 12:57
XavierStuvw
3391824
3391824
1
You'll probably want to show the context you're seeing each of those names.
â Bratchley
Sep 2 '16 at 13:59
add a comment |Â
1
You'll probably want to show the context you're seeing each of those names.
â Bratchley
Sep 2 '16 at 13:59
1
1
You'll probably want to show the context you're seeing each of those names.
â Bratchley
Sep 2 '16 at 13:59
You'll probably want to show the context you're seeing each of those names.
â Bratchley
Sep 2 '16 at 13:59
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
3
down vote
accepted
Which is which
User name is an ambiguous term that could refer
- to a formal user ID string known to some system, or
- to a display name like
John Smith.
For that reason, we have more specific terms like login name, which informs us that this is the character string that is used for logging in, like jsmith, and not John Smith.
User ID also serves this purpose, but it is ambiguous against a numeric user ID. That has to be clear from context. For instance in Unix, users don't usually deal with numeric user IDs; if a prompt asks for a "user ID", people just know that they aren't supposed to enter 1003 but jsmith.
Display name (also called the real user name) informs us that this is a name of some software object (such as a user account) used for referring to it in user interfaces and program output such as diagnostic or debug messages. The implication is that a display name is not necessarily unique among such objects and cannot be used as a key to unambiguously refer to an object. It is literally for display purposes only. A "display name" is not necessarily a user name; that has to be established by the context. Anything that can have a name can potentially have a display name.
In traditional Unix, the /etc/passwd file associates your numeric user ID with the login name (the textual user ID), and with a display name.
Changing and consequences
The chfn utility is used for changing the display name aka real user name and related information. Doing this should have no consequence.
Changing the textual user ID aka login name requires privilege; root can edit the password file to edit this. The effect will be instant: the new name will appear anywhere in the system where numeric user IDs are displayed as their text equivalent. For instance, if someone lists a directory using ls -l and that directory contains files owned by that user, they will immediately see the new name, since the ls program picks it out of the password database.
The change will break or potentially break various things in the system, and so is a bad idea:
- Firstly, if the new name clashes with another one, that's obviously very bad; I'm mentioning that for the sake of completeness. Let's assume that it's not the case.
- Let's also assume that it's not the case that some user's name is changed without their knowledge, leaving them unable to log in.
- The remaining problem is that in the file system there are likely configuration files which encode the textual user ID: both in their path names, and in their contents. These, of course, continue to refer to the old user ID which no longer exists in the password file. The name change is not complete unless all of these are hunted down and repaired.
- The problem can be further compounded if a new password file entry is created which matches the old name. Those configurations now refer to a valid user, but the wrong one.
As an example
- let's consider that the
sudoutility exists in the system and is configured via the/etc/sudoersfile. Suppose the/etc/sudoersfile grants userbobthe privilege to run some dangerous administrative command with superuser credentials. - Now suppose we rename
bobtorobertin the password file and don't update this entry. Nowrobertis not able to run that command any more; thesudoersfile grants the privilege tobobnot torobert. - Next day, a new user is added and happens to be called
bob. Thisbobnow has the privilege to run that administrative command as root.
Excellent answer.
â XavierStuvw
Sep 2 '16 at 19:19
add a comment |Â
up vote
2
down vote
What is the difference between user name, display name and log-in name?
username is the account that you typically login to Unix/Linux with.
display name is how the user would display in the GUI, usually first name last name.
log-in name is the same thing as username.
You can see a visual of display name in Ubuntu in this post.
add a comment |Â
protected by Community⦠Aug 31 at 0:00
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
Which is which
User name is an ambiguous term that could refer
- to a formal user ID string known to some system, or
- to a display name like
John Smith.
For that reason, we have more specific terms like login name, which informs us that this is the character string that is used for logging in, like jsmith, and not John Smith.
User ID also serves this purpose, but it is ambiguous against a numeric user ID. That has to be clear from context. For instance in Unix, users don't usually deal with numeric user IDs; if a prompt asks for a "user ID", people just know that they aren't supposed to enter 1003 but jsmith.
Display name (also called the real user name) informs us that this is a name of some software object (such as a user account) used for referring to it in user interfaces and program output such as diagnostic or debug messages. The implication is that a display name is not necessarily unique among such objects and cannot be used as a key to unambiguously refer to an object. It is literally for display purposes only. A "display name" is not necessarily a user name; that has to be established by the context. Anything that can have a name can potentially have a display name.
In traditional Unix, the /etc/passwd file associates your numeric user ID with the login name (the textual user ID), and with a display name.
Changing and consequences
The chfn utility is used for changing the display name aka real user name and related information. Doing this should have no consequence.
Changing the textual user ID aka login name requires privilege; root can edit the password file to edit this. The effect will be instant: the new name will appear anywhere in the system where numeric user IDs are displayed as their text equivalent. For instance, if someone lists a directory using ls -l and that directory contains files owned by that user, they will immediately see the new name, since the ls program picks it out of the password database.
The change will break or potentially break various things in the system, and so is a bad idea:
- Firstly, if the new name clashes with another one, that's obviously very bad; I'm mentioning that for the sake of completeness. Let's assume that it's not the case.
- Let's also assume that it's not the case that some user's name is changed without their knowledge, leaving them unable to log in.
- The remaining problem is that in the file system there are likely configuration files which encode the textual user ID: both in their path names, and in their contents. These, of course, continue to refer to the old user ID which no longer exists in the password file. The name change is not complete unless all of these are hunted down and repaired.
- The problem can be further compounded if a new password file entry is created which matches the old name. Those configurations now refer to a valid user, but the wrong one.
As an example
- let's consider that the
sudoutility exists in the system and is configured via the/etc/sudoersfile. Suppose the/etc/sudoersfile grants userbobthe privilege to run some dangerous administrative command with superuser credentials. - Now suppose we rename
bobtorobertin the password file and don't update this entry. Nowrobertis not able to run that command any more; thesudoersfile grants the privilege tobobnot torobert. - Next day, a new user is added and happens to be called
bob. Thisbobnow has the privilege to run that administrative command as root.
Excellent answer.
â XavierStuvw
Sep 2 '16 at 19:19
add a comment |Â
up vote
3
down vote
accepted
Which is which
User name is an ambiguous term that could refer
- to a formal user ID string known to some system, or
- to a display name like
John Smith.
For that reason, we have more specific terms like login name, which informs us that this is the character string that is used for logging in, like jsmith, and not John Smith.
User ID also serves this purpose, but it is ambiguous against a numeric user ID. That has to be clear from context. For instance in Unix, users don't usually deal with numeric user IDs; if a prompt asks for a "user ID", people just know that they aren't supposed to enter 1003 but jsmith.
Display name (also called the real user name) informs us that this is a name of some software object (such as a user account) used for referring to it in user interfaces and program output such as diagnostic or debug messages. The implication is that a display name is not necessarily unique among such objects and cannot be used as a key to unambiguously refer to an object. It is literally for display purposes only. A "display name" is not necessarily a user name; that has to be established by the context. Anything that can have a name can potentially have a display name.
In traditional Unix, the /etc/passwd file associates your numeric user ID with the login name (the textual user ID), and with a display name.
Changing and consequences
The chfn utility is used for changing the display name aka real user name and related information. Doing this should have no consequence.
Changing the textual user ID aka login name requires privilege; root can edit the password file to edit this. The effect will be instant: the new name will appear anywhere in the system where numeric user IDs are displayed as their text equivalent. For instance, if someone lists a directory using ls -l and that directory contains files owned by that user, they will immediately see the new name, since the ls program picks it out of the password database.
The change will break or potentially break various things in the system, and so is a bad idea:
- Firstly, if the new name clashes with another one, that's obviously very bad; I'm mentioning that for the sake of completeness. Let's assume that it's not the case.
- Let's also assume that it's not the case that some user's name is changed without their knowledge, leaving them unable to log in.
- The remaining problem is that in the file system there are likely configuration files which encode the textual user ID: both in their path names, and in their contents. These, of course, continue to refer to the old user ID which no longer exists in the password file. The name change is not complete unless all of these are hunted down and repaired.
- The problem can be further compounded if a new password file entry is created which matches the old name. Those configurations now refer to a valid user, but the wrong one.
As an example
- let's consider that the
sudoutility exists in the system and is configured via the/etc/sudoersfile. Suppose the/etc/sudoersfile grants userbobthe privilege to run some dangerous administrative command with superuser credentials. - Now suppose we rename
bobtorobertin the password file and don't update this entry. Nowrobertis not able to run that command any more; thesudoersfile grants the privilege tobobnot torobert. - Next day, a new user is added and happens to be called
bob. Thisbobnow has the privilege to run that administrative command as root.
Excellent answer.
â XavierStuvw
Sep 2 '16 at 19:19
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
Which is which
User name is an ambiguous term that could refer
- to a formal user ID string known to some system, or
- to a display name like
John Smith.
For that reason, we have more specific terms like login name, which informs us that this is the character string that is used for logging in, like jsmith, and not John Smith.
User ID also serves this purpose, but it is ambiguous against a numeric user ID. That has to be clear from context. For instance in Unix, users don't usually deal with numeric user IDs; if a prompt asks for a "user ID", people just know that they aren't supposed to enter 1003 but jsmith.
Display name (also called the real user name) informs us that this is a name of some software object (such as a user account) used for referring to it in user interfaces and program output such as diagnostic or debug messages. The implication is that a display name is not necessarily unique among such objects and cannot be used as a key to unambiguously refer to an object. It is literally for display purposes only. A "display name" is not necessarily a user name; that has to be established by the context. Anything that can have a name can potentially have a display name.
In traditional Unix, the /etc/passwd file associates your numeric user ID with the login name (the textual user ID), and with a display name.
Changing and consequences
The chfn utility is used for changing the display name aka real user name and related information. Doing this should have no consequence.
Changing the textual user ID aka login name requires privilege; root can edit the password file to edit this. The effect will be instant: the new name will appear anywhere in the system where numeric user IDs are displayed as their text equivalent. For instance, if someone lists a directory using ls -l and that directory contains files owned by that user, they will immediately see the new name, since the ls program picks it out of the password database.
The change will break or potentially break various things in the system, and so is a bad idea:
- Firstly, if the new name clashes with another one, that's obviously very bad; I'm mentioning that for the sake of completeness. Let's assume that it's not the case.
- Let's also assume that it's not the case that some user's name is changed without their knowledge, leaving them unable to log in.
- The remaining problem is that in the file system there are likely configuration files which encode the textual user ID: both in their path names, and in their contents. These, of course, continue to refer to the old user ID which no longer exists in the password file. The name change is not complete unless all of these are hunted down and repaired.
- The problem can be further compounded if a new password file entry is created which matches the old name. Those configurations now refer to a valid user, but the wrong one.
As an example
- let's consider that the
sudoutility exists in the system and is configured via the/etc/sudoersfile. Suppose the/etc/sudoersfile grants userbobthe privilege to run some dangerous administrative command with superuser credentials. - Now suppose we rename
bobtorobertin the password file and don't update this entry. Nowrobertis not able to run that command any more; thesudoersfile grants the privilege tobobnot torobert. - Next day, a new user is added and happens to be called
bob. Thisbobnow has the privilege to run that administrative command as root.
Which is which
User name is an ambiguous term that could refer
- to a formal user ID string known to some system, or
- to a display name like
John Smith.
For that reason, we have more specific terms like login name, which informs us that this is the character string that is used for logging in, like jsmith, and not John Smith.
User ID also serves this purpose, but it is ambiguous against a numeric user ID. That has to be clear from context. For instance in Unix, users don't usually deal with numeric user IDs; if a prompt asks for a "user ID", people just know that they aren't supposed to enter 1003 but jsmith.
Display name (also called the real user name) informs us that this is a name of some software object (such as a user account) used for referring to it in user interfaces and program output such as diagnostic or debug messages. The implication is that a display name is not necessarily unique among such objects and cannot be used as a key to unambiguously refer to an object. It is literally for display purposes only. A "display name" is not necessarily a user name; that has to be established by the context. Anything that can have a name can potentially have a display name.
In traditional Unix, the /etc/passwd file associates your numeric user ID with the login name (the textual user ID), and with a display name.
Changing and consequences
The chfn utility is used for changing the display name aka real user name and related information. Doing this should have no consequence.
Changing the textual user ID aka login name requires privilege; root can edit the password file to edit this. The effect will be instant: the new name will appear anywhere in the system where numeric user IDs are displayed as their text equivalent. For instance, if someone lists a directory using ls -l and that directory contains files owned by that user, they will immediately see the new name, since the ls program picks it out of the password database.
The change will break or potentially break various things in the system, and so is a bad idea:
- Firstly, if the new name clashes with another one, that's obviously very bad; I'm mentioning that for the sake of completeness. Let's assume that it's not the case.
- Let's also assume that it's not the case that some user's name is changed without their knowledge, leaving them unable to log in.
- The remaining problem is that in the file system there are likely configuration files which encode the textual user ID: both in their path names, and in their contents. These, of course, continue to refer to the old user ID which no longer exists in the password file. The name change is not complete unless all of these are hunted down and repaired.
- The problem can be further compounded if a new password file entry is created which matches the old name. Those configurations now refer to a valid user, but the wrong one.
As an example
- let's consider that the
sudoutility exists in the system and is configured via the/etc/sudoersfile. Suppose the/etc/sudoersfile grants userbobthe privilege to run some dangerous administrative command with superuser credentials. - Now suppose we rename
bobtorobertin the password file and don't update this entry. Nowrobertis not able to run that command any more; thesudoersfile grants the privilege tobobnot torobert. - Next day, a new user is added and happens to be called
bob. Thisbobnow has the privilege to run that administrative command as root.
edited Sep 2 '16 at 20:32
XavierStuvw
3391824
3391824
answered Sep 2 '16 at 16:34
Kaz
4,44411431
4,44411431
Excellent answer.
â XavierStuvw
Sep 2 '16 at 19:19
add a comment |Â
Excellent answer.
â XavierStuvw
Sep 2 '16 at 19:19
Excellent answer.
â XavierStuvw
Sep 2 '16 at 19:19
Excellent answer.
â XavierStuvw
Sep 2 '16 at 19:19
add a comment |Â
up vote
2
down vote
What is the difference between user name, display name and log-in name?
username is the account that you typically login to Unix/Linux with.
display name is how the user would display in the GUI, usually first name last name.
log-in name is the same thing as username.
You can see a visual of display name in Ubuntu in this post.
add a comment |Â
up vote
2
down vote
What is the difference between user name, display name and log-in name?
username is the account that you typically login to Unix/Linux with.
display name is how the user would display in the GUI, usually first name last name.
log-in name is the same thing as username.
You can see a visual of display name in Ubuntu in this post.
add a comment |Â
up vote
2
down vote
up vote
2
down vote
What is the difference between user name, display name and log-in name?
username is the account that you typically login to Unix/Linux with.
display name is how the user would display in the GUI, usually first name last name.
log-in name is the same thing as username.
You can see a visual of display name in Ubuntu in this post.
What is the difference between user name, display name and log-in name?
username is the account that you typically login to Unix/Linux with.
display name is how the user would display in the GUI, usually first name last name.
log-in name is the same thing as username.
You can see a visual of display name in Ubuntu in this post.
edited Apr 13 '17 at 12:22
Communityâ¦
1
1
answered Sep 2 '16 at 14:50
sbayercisco
151
151
add a comment |Â
add a comment |Â
protected by Community⦠Aug 31 at 0:00
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
1
You'll probably want to show the context you're seeing each of those names.
â Bratchley
Sep 2 '16 at 13:59