How change default usergroup?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have CentOS 7,
LDAP users: user1, user2
LocalGroup: MyGroup1
/etc/passwd



+user1::::::/bin/bash


/etc/group



MyGroup1:x:1256:user1,user2


Did try to change group:



usermod -g MyGroup1 user1


returned



usermod: user 'user1' does not exist in /etc/passwd


How solve this problem?



p.s. target - if I use user1 and create file/folder



-rw-r--r-- 1 user1 MyGroup1 10 Apr 3 12:23 test13



NOT



-rw-r--r-- 1 user1 DefaultGroup 10 Apr 3 12:23 test13







share|improve this question
















  • 1




    Related question: Switch primary group with LDAP user. Summary: edit the GID attribute for the user in the LDAP directory.
    – ErikF
    Apr 3 at 20:04










  • please write answer
    – Nikolay Baranenko
    Apr 4 at 13:45














up vote
0
down vote

favorite












I have CentOS 7,
LDAP users: user1, user2
LocalGroup: MyGroup1
/etc/passwd



+user1::::::/bin/bash


/etc/group



MyGroup1:x:1256:user1,user2


Did try to change group:



usermod -g MyGroup1 user1


returned



usermod: user 'user1' does not exist in /etc/passwd


How solve this problem?



p.s. target - if I use user1 and create file/folder



-rw-r--r-- 1 user1 MyGroup1 10 Apr 3 12:23 test13



NOT



-rw-r--r-- 1 user1 DefaultGroup 10 Apr 3 12:23 test13







share|improve this question
















  • 1




    Related question: Switch primary group with LDAP user. Summary: edit the GID attribute for the user in the LDAP directory.
    – ErikF
    Apr 3 at 20:04










  • please write answer
    – Nikolay Baranenko
    Apr 4 at 13:45












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have CentOS 7,
LDAP users: user1, user2
LocalGroup: MyGroup1
/etc/passwd



+user1::::::/bin/bash


/etc/group



MyGroup1:x:1256:user1,user2


Did try to change group:



usermod -g MyGroup1 user1


returned



usermod: user 'user1' does not exist in /etc/passwd


How solve this problem?



p.s. target - if I use user1 and create file/folder



-rw-r--r-- 1 user1 MyGroup1 10 Apr 3 12:23 test13



NOT



-rw-r--r-- 1 user1 DefaultGroup 10 Apr 3 12:23 test13







share|improve this question












I have CentOS 7,
LDAP users: user1, user2
LocalGroup: MyGroup1
/etc/passwd



+user1::::::/bin/bash


/etc/group



MyGroup1:x:1256:user1,user2


Did try to change group:



usermod -g MyGroup1 user1


returned



usermod: user 'user1' does not exist in /etc/passwd


How solve this problem?



p.s. target - if I use user1 and create file/folder



-rw-r--r-- 1 user1 MyGroup1 10 Apr 3 12:23 test13



NOT



-rw-r--r-- 1 user1 DefaultGroup 10 Apr 3 12:23 test13









share|improve this question











share|improve this question




share|improve this question










asked Apr 3 at 16:10









Nikolay Baranenko

1097




1097







  • 1




    Related question: Switch primary group with LDAP user. Summary: edit the GID attribute for the user in the LDAP directory.
    – ErikF
    Apr 3 at 20:04










  • please write answer
    – Nikolay Baranenko
    Apr 4 at 13:45












  • 1




    Related question: Switch primary group with LDAP user. Summary: edit the GID attribute for the user in the LDAP directory.
    – ErikF
    Apr 3 at 20:04










  • please write answer
    – Nikolay Baranenko
    Apr 4 at 13:45







1




1




Related question: Switch primary group with LDAP user. Summary: edit the GID attribute for the user in the LDAP directory.
– ErikF
Apr 3 at 20:04




Related question: Switch primary group with LDAP user. Summary: edit the GID attribute for the user in the LDAP directory.
– ErikF
Apr 3 at 20:04












please write answer
– Nikolay Baranenko
Apr 4 at 13:45




please write answer
– Nikolay Baranenko
Apr 4 at 13:45










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










You have to change name group in LDAP (login name change gid to gidNumber MyGroup1) or custome - you set schedule by ncron and chown :MyGroup1 -R file/folder






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f435319%2fhow-change-default-usergroup%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote



    accepted










    You have to change name group in LDAP (login name change gid to gidNumber MyGroup1) or custome - you set schedule by ncron and chown :MyGroup1 -R file/folder






    share|improve this answer
























      up vote
      0
      down vote



      accepted










      You have to change name group in LDAP (login name change gid to gidNumber MyGroup1) or custome - you set schedule by ncron and chown :MyGroup1 -R file/folder






      share|improve this answer






















        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        You have to change name group in LDAP (login name change gid to gidNumber MyGroup1) or custome - you set schedule by ncron and chown :MyGroup1 -R file/folder






        share|improve this answer












        You have to change name group in LDAP (login name change gid to gidNumber MyGroup1) or custome - you set schedule by ncron and chown :MyGroup1 -R file/folder







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 4 at 13:44









        Nikolay Baranenko

        1097




        1097






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f435319%2fhow-change-default-usergroup%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)