Score:0

What are the commands to see and edit the user's information? after to use adduser

kz flag

I read these tutorials:

When is used the adduser command appears in the process:

Changing the user information for username
Enter the new value, or press ENTER for the default
    Full Name []: 
    Room Number []: 
    Work Phone []: 
    Home Phone []: 
    Other []: 
Is the information correct? [Y/n] 

For obvious reasons is possible leave empty or write outdated data, so, the reason of this post:

  • What are the commands to see and edit the user's information?

About the "see" approach should show again the same structure

    Full Name []: 
    Room Number []: 
    Work Phone []: 
    Home Phone []: 
    Other []: 

Of course, showing the data according with either the data created or the latest data update to know what is correct or not.

muru avatar
us flag
That data is typically called GECOS data
Score:1
it flag

Read man chsh chfn getent;man 5 passwd. The first two change the shell and the full name, the third retrieves a user's info. The fourth explains the fields. getent, along with | cut -d: -f# can easily extract individual fields. Read man cut.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.