This question has already been answered:
- Sudo does not work 1 reply
The system was inherited. There was a password-protected user, access to which is not recognized. As a result, I came in as a guest, tried to create a new user for myself (after all, the rights to the commands from the Terminal were simply not enough), but:
sudo: unable to change to root gid: Operation not allowed
What to do?