Creating a couple of new users on an Ubuntu 16.04 I omitted to enter user full name and now I have several users who on the login screen are seen simply as "Comment". System settings doesn't offer the possibility to change this. How can I fix this? Is it ok to just edit /etc/passwd? Thanks in advance H
I recall I had this problem years back probably on about Ubuntu 14.04 and I installed Users & Groups thinking I would be able to edit the users full name, but found that although you can change every other aspect of the users details you cannot edit the users full name and I found this is simply because the ability for a user to change their own full name is subject to the restrictions in /etc/login.defs. The default configuration is to prevent users from changing their full-name, which makes perfect sense.
To change your own or another user's full name I used the chfn command, this command allows a (normal) user to change all the fields for their own account, subject to the restrictions in /etc/login.defs, or this can be overridden using elevated privileges, by opening a terminal CTR +T while logged in as the user you want to change and running the command:
sudo chfn user
Changing the user information for user
Enter the new value, or press ENTER for the default
Full Name [user]: New Full Name
where user is the user who is logged in and is the user you want to change the full-name for and New Full Name is the new full name for the user. You can use the chfn command to change other account details, but you can change mostly all other details via Users & Groups which can be installed via the Ubuntu Software Center.