Ubuntu – Is it safe to manually edit /etc/passwd

passwdUbuntu

I need to change the "real name" of a user (not the username).
For example if I have:

testuser:x:1001:1001:Max Mustermann,,,:/home/testuser:/bin/bash

And I want it to be:

testuser:x:1001:1001:Max Müller,,,:/home/testuser:/bin/bash

Can I just edit it manually or will that negatively effect anything (for example ssmtp)? I know that the username can be changed safely using usermod, but I never had to change the "real" name before.

Best Answer

You can change the "username" (actually GECOS/comment) field with the usermod -c command