Delete User in /etc/group












0














i have tor install on my raspberry.



*:/home/bitcoin $ cat /etc/group | grep debian-tor
debian-tor:x:116:bitcoin,root,pi


over can i add a user



sudo usermod -a -G debian-tor bitcoin


but how can i delete?



i wan't root and pi delete.










share|improve this question
























  • Welcome on U&L! Do you want to remove root and pi from the group debian-tor? Or are you trying to remove some users from your system?
    – fra-san
    Dec 10 at 12:05










  • Thanks. Yes i want to remove root and pi from the group: debian-tor.
    – Raylan Nachti
    Dec 10 at 12:12
















0














i have tor install on my raspberry.



*:/home/bitcoin $ cat /etc/group | grep debian-tor
debian-tor:x:116:bitcoin,root,pi


over can i add a user



sudo usermod -a -G debian-tor bitcoin


but how can i delete?



i wan't root and pi delete.










share|improve this question
























  • Welcome on U&L! Do you want to remove root and pi from the group debian-tor? Or are you trying to remove some users from your system?
    – fra-san
    Dec 10 at 12:05










  • Thanks. Yes i want to remove root and pi from the group: debian-tor.
    – Raylan Nachti
    Dec 10 at 12:12














0












0








0







i have tor install on my raspberry.



*:/home/bitcoin $ cat /etc/group | grep debian-tor
debian-tor:x:116:bitcoin,root,pi


over can i add a user



sudo usermod -a -G debian-tor bitcoin


but how can i delete?



i wan't root and pi delete.










share|improve this question















i have tor install on my raspberry.



*:/home/bitcoin $ cat /etc/group | grep debian-tor
debian-tor:x:116:bitcoin,root,pi


over can i add a user



sudo usermod -a -G debian-tor bitcoin


but how can i delete?



i wan't root and pi delete.







linux raspberry-pi tor






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 10 at 20:24









Rui F Ribeiro

38.8k1479128




38.8k1479128










asked Dec 10 at 11:50









Raylan Nachti

31




31












  • Welcome on U&L! Do you want to remove root and pi from the group debian-tor? Or are you trying to remove some users from your system?
    – fra-san
    Dec 10 at 12:05










  • Thanks. Yes i want to remove root and pi from the group: debian-tor.
    – Raylan Nachti
    Dec 10 at 12:12


















  • Welcome on U&L! Do you want to remove root and pi from the group debian-tor? Or are you trying to remove some users from your system?
    – fra-san
    Dec 10 at 12:05










  • Thanks. Yes i want to remove root and pi from the group: debian-tor.
    – Raylan Nachti
    Dec 10 at 12:12
















Welcome on U&L! Do you want to remove root and pi from the group debian-tor? Or are you trying to remove some users from your system?
– fra-san
Dec 10 at 12:05




Welcome on U&L! Do you want to remove root and pi from the group debian-tor? Or are you trying to remove some users from your system?
– fra-san
Dec 10 at 12:05












Thanks. Yes i want to remove root and pi from the group: debian-tor.
– Raylan Nachti
Dec 10 at 12:12




Thanks. Yes i want to remove root and pi from the group: debian-tor.
– Raylan Nachti
Dec 10 at 12:12










2 Answers
2






active

oldest

votes


















2














Use gpasswd instead.



gpasswd -d user group


It also has option for adding user to group



gpasswd -a user group





share|improve this answer





















  • Thanks, with -d i have the user deleted. Have a nice day :)
    – Raylan Nachti
    Dec 10 at 12:16



















0














Run usermod -G (note: without -a) for each of those users with a list of the groups s/he must stay member of. man usermod:




   -G, --groups GROUP1[,GROUP2,...[,GROUPN]]]          

If the user is currently a member of a group which is not listed, the user will be removed from the group.






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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    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%2f487096%2fdelete-user-in-etc-group%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Use gpasswd instead.



    gpasswd -d user group


    It also has option for adding user to group



    gpasswd -a user group





    share|improve this answer





















    • Thanks, with -d i have the user deleted. Have a nice day :)
      – Raylan Nachti
      Dec 10 at 12:16
















    2














    Use gpasswd instead.



    gpasswd -d user group


    It also has option for adding user to group



    gpasswd -a user group





    share|improve this answer





















    • Thanks, with -d i have the user deleted. Have a nice day :)
      – Raylan Nachti
      Dec 10 at 12:16














    2












    2








    2






    Use gpasswd instead.



    gpasswd -d user group


    It also has option for adding user to group



    gpasswd -a user group





    share|improve this answer












    Use gpasswd instead.



    gpasswd -d user group


    It also has option for adding user to group



    gpasswd -a user group






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 10 at 12:08









    Alexander

    1,106213




    1,106213












    • Thanks, with -d i have the user deleted. Have a nice day :)
      – Raylan Nachti
      Dec 10 at 12:16


















    • Thanks, with -d i have the user deleted. Have a nice day :)
      – Raylan Nachti
      Dec 10 at 12:16
















    Thanks, with -d i have the user deleted. Have a nice day :)
    – Raylan Nachti
    Dec 10 at 12:16




    Thanks, with -d i have the user deleted. Have a nice day :)
    – Raylan Nachti
    Dec 10 at 12:16













    0














    Run usermod -G (note: without -a) for each of those users with a list of the groups s/he must stay member of. man usermod:




       -G, --groups GROUP1[,GROUP2,...[,GROUPN]]]          

    If the user is currently a member of a group which is not listed, the user will be removed from the group.






    share|improve this answer


























      0














      Run usermod -G (note: without -a) for each of those users with a list of the groups s/he must stay member of. man usermod:




         -G, --groups GROUP1[,GROUP2,...[,GROUPN]]]          

      If the user is currently a member of a group which is not listed, the user will be removed from the group.






      share|improve this answer
























        0












        0








        0






        Run usermod -G (note: without -a) for each of those users with a list of the groups s/he must stay member of. man usermod:




           -G, --groups GROUP1[,GROUP2,...[,GROUPN]]]          

        If the user is currently a member of a group which is not listed, the user will be removed from the group.






        share|improve this answer












        Run usermod -G (note: without -a) for each of those users with a list of the groups s/he must stay member of. man usermod:




           -G, --groups GROUP1[,GROUP2,...[,GROUPN]]]          

        If the user is currently a member of a group which is not listed, the user will be removed from the group.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 10 at 12:06









        RudiC

        3,9641312




        3,9641312






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f487096%2fdelete-user-in-etc-group%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Morgemoulin

            Scott Moir

            Souastre