How to unset "users" group (GID 100) on an user account?

  • Hello,


    I would like to get out some users accounts (used as service account) from "users" group (GID 100), about "users" group permissions and ACL are not applied on them.

    What is the good way to it in OMV?


    I tried by unchecking "users" group in OMV GUI (when I edit an user users account), but it's not applied after save it.


    I've uncheck "users" group and check "nogroup" group in OMV GUI, but "users" group stays applied after save:

    in groups list (getent group) user "test2" is moved from "users:x:100:" to "nogroup:x:65534:"

    users:x:100:test1

    nogroup:x:65534:test2

    but "users" group is always present in OMV GUI, and in /etc/passwd file :

    test2:x:1001:100::


    I've manualy modified /etc/passwd file :

    test2:x:1001:65534::

    "users" group is no more present in OMV GUI :


    I've checked result after rebooting OMV, and changes stay applied (I've no update to apply to check result after OMV update).


    Is it correct or not recommended to do that?


    Thank you,

    Chris

  • think you can't from the UI. the group 'users' is the primary group of a user.


    from the shell: usermod -g <new_primary_group> <user>

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • think you can't from the UI. the group 'users' is the primary group of a user.


    from the shell: usermod -g <new_primary_group> <user>

    Ok thank you Zoki, thus it's correct to do that from shell.


    Does the group "users" have to be the primary group of a user, or it's correct to change GID in "/etc/passwd" file as I did for "test2" user account in my example above?

  • The command does exactly what you did manually, maybe with some sanity checks before.

    Editing /etc/passwd is only for experts, as you can break things badly.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Did you read the thread? #2


    But why do you want to do this?

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Did you read the thread? #2


    But why do you want to do this?

    Thank you for you reply,

    Yes I did, I want to do it because all of our workstations have that gid as the primary group, so it does the data in the server I'm trying to migrate from, we share directories though both NFS and samba, so I think I can mess with permissions.


    Regards,


    Jorge

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!