My OpenSuse 12.1 installations all have a mysterious user called ‘games’. I did not install him, but I cannot delete him. He established himself at installation time as a member of the group ‘users’.
However, I do not know any password for this user and I cannot discover what permissions he has.
Does anyone know where he came from? Does anyone know how to get rid of him? Is he a security risk?:\
I understand that the ‘system’ installed the user ‘games’ at installation time, so that diverse games could have access to a directory owned by ‘root’. That sounds plausible, I suppose, and it makes sense not to delete him. Nevertheless, what permissions does he have. How can I find that out?
Look in /etc/passwd and you will see at least a twenty other users. User game is not alone.
Only a user with userid 0 is superuser.
System users are users that are loosely there for the benifit of the system. Several reasons. Amongst them, being owners of specific groups of files to ban them from the “normal” users to access them, but in the same time not to use root for them to enhance security.
By common usage they have userids below a certain number, not to clash with the normal “end-users”. In openSUSE they have userids < 1000.
> Nevertheless, what permissions does he have. How can I find that out?
The permissions would be based on the groups that user is in - just like
any normal non-root user. It’ll have permissions to its home directory
and any directories with group ownership set to a group it’s a member of
with the permissions set there.
*nix in the end has a very simple permissions model.
>
> My OpenSuse 12.1 installations all have a mysterious user called
> ‘games’. I did not install him, but I cannot delete him. He established
> himself at installation time as a member of the group ‘users’.
>
> However, I do not know any password for this user and I cannot discover
> what permissions he has.
>
> Does anyone know where he came from? Does anyone know how to get rid of
> him? Is he a security risk?:
>
>
It’s an automatically created user, with (normally) permissions to write
into /var/games - so if game binaries are installed as setuid or setgid to
‘games’, they can update the ‘High Scores’ info across the entire userbase.
At least that was the usage in all the Unices I’ve used, but it looks like
openSUSE doesn’t bother setting the setgid bits. And there is an un-
enterable password; it’s not a login userid.
Actually, It should be 499 (which is also smaller than 1000) according to my login.defs(.orig because I modify this file):
# grep ID_M /etc/login.defs.orig
# SYSTEM_UID_MIN to SYSTEM_UID_MAX inclusive is the range for
# UID_MIN to UID_MAX inclusive is the range of UIDs of dynamically
SYSTEM_UID_MIN 100
SYSTEM_UID_MAX 499
UID_MIN 1000
UID_MAX 60000
# SYSTEM_GID_MIN to SYSTEM_GID_MAX inclusive is the range for
# GID_MIN to GID_MAX inclusive is the range of GIDs of dynamically
SYSTEM_GID_MIN 100
SYSTEM_GID_MAX 499
GID_MIN 1000
GID_MAX 60000
But you might wonder what users 500 to 999 are under openSUSE.