adduser, addgroup “group in use”

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











up vote
3
down vote

favorite












I'm trying to create a System-Wide PulseAudio daemon (I am aware of the security problems associated with that). However, I'm getting an access-denied error when playing through the PulseAudio daemnon (as root). I think it may be because the root user is not in the pulse-access group.



I tried adding it:



adduser root pulse-access


Which, unfortunatly gives me back this error:



addgroup: group 'root' in use


I am running on a small BusyBox, which doesn't has the fancier useradd, etc. commands.



Why can't I / How should I add a user to a specific group, having only access to these two commands?



Running PulseAudio as System-Wide Daemon
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/










share|improve this question

















  • 2




    Does your busybox have a usermod command?
    – Mark Plotnick
    Oct 10 '17 at 14:17










  • no, not present..
    – svenema
    Oct 10 '17 at 16:02














up vote
3
down vote

favorite












I'm trying to create a System-Wide PulseAudio daemon (I am aware of the security problems associated with that). However, I'm getting an access-denied error when playing through the PulseAudio daemnon (as root). I think it may be because the root user is not in the pulse-access group.



I tried adding it:



adduser root pulse-access


Which, unfortunatly gives me back this error:



addgroup: group 'root' in use


I am running on a small BusyBox, which doesn't has the fancier useradd, etc. commands.



Why can't I / How should I add a user to a specific group, having only access to these two commands?



Running PulseAudio as System-Wide Daemon
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/










share|improve this question

















  • 2




    Does your busybox have a usermod command?
    – Mark Plotnick
    Oct 10 '17 at 14:17










  • no, not present..
    – svenema
    Oct 10 '17 at 16:02












up vote
3
down vote

favorite









up vote
3
down vote

favorite











I'm trying to create a System-Wide PulseAudio daemon (I am aware of the security problems associated with that). However, I'm getting an access-denied error when playing through the PulseAudio daemnon (as root). I think it may be because the root user is not in the pulse-access group.



I tried adding it:



adduser root pulse-access


Which, unfortunatly gives me back this error:



addgroup: group 'root' in use


I am running on a small BusyBox, which doesn't has the fancier useradd, etc. commands.



Why can't I / How should I add a user to a specific group, having only access to these two commands?



Running PulseAudio as System-Wide Daemon
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/










share|improve this question













I'm trying to create a System-Wide PulseAudio daemon (I am aware of the security problems associated with that). However, I'm getting an access-denied error when playing through the PulseAudio daemnon (as root). I think it may be because the root user is not in the pulse-access group.



I tried adding it:



adduser root pulse-access


Which, unfortunatly gives me back this error:



addgroup: group 'root' in use


I am running on a small BusyBox, which doesn't has the fancier useradd, etc. commands.



Why can't I / How should I add a user to a specific group, having only access to these two commands?



Running PulseAudio as System-Wide Daemon
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/







users busybox






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 10 '17 at 13:50









svenema

799




799







  • 2




    Does your busybox have a usermod command?
    – Mark Plotnick
    Oct 10 '17 at 14:17










  • no, not present..
    – svenema
    Oct 10 '17 at 16:02












  • 2




    Does your busybox have a usermod command?
    – Mark Plotnick
    Oct 10 '17 at 14:17










  • no, not present..
    – svenema
    Oct 10 '17 at 16:02







2




2




Does your busybox have a usermod command?
– Mark Plotnick
Oct 10 '17 at 14:17




Does your busybox have a usermod command?
– Mark Plotnick
Oct 10 '17 at 14:17












no, not present..
– svenema
Oct 10 '17 at 16:02




no, not present..
– svenema
Oct 10 '17 at 16:02










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










BusyBox may be compiled with FEATURE_ADDUSER_TO_GROUP disabled (default behaviour of buildroot-2017.08). If that's the case addgroup or adduser cannot be added to a group. At least in theory, because when I enabled the feature I still got the same error.



Easy solution: just edit /etc/group directly, and add the user there yourself. For example:



pulse-access:x:1003:pulse,root


When doing it for a buildroot build, you may want to add this in the fakeroot scripts step:



# Add root user to pulse-access group
if [ -e $TARGET_DIR/etc/group ]; then
sed -i '/^pulse-access:/s/(.*)/1,root/;s/:,/:/' $TARGET_DIR/etc/group
fi





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%2f397232%2fadduser-addgroup-group-in-use%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
    2
    down vote



    accepted










    BusyBox may be compiled with FEATURE_ADDUSER_TO_GROUP disabled (default behaviour of buildroot-2017.08). If that's the case addgroup or adduser cannot be added to a group. At least in theory, because when I enabled the feature I still got the same error.



    Easy solution: just edit /etc/group directly, and add the user there yourself. For example:



    pulse-access:x:1003:pulse,root


    When doing it for a buildroot build, you may want to add this in the fakeroot scripts step:



    # Add root user to pulse-access group
    if [ -e $TARGET_DIR/etc/group ]; then
    sed -i '/^pulse-access:/s/(.*)/1,root/;s/:,/:/' $TARGET_DIR/etc/group
    fi





    share|improve this answer


























      up vote
      2
      down vote



      accepted










      BusyBox may be compiled with FEATURE_ADDUSER_TO_GROUP disabled (default behaviour of buildroot-2017.08). If that's the case addgroup or adduser cannot be added to a group. At least in theory, because when I enabled the feature I still got the same error.



      Easy solution: just edit /etc/group directly, and add the user there yourself. For example:



      pulse-access:x:1003:pulse,root


      When doing it for a buildroot build, you may want to add this in the fakeroot scripts step:



      # Add root user to pulse-access group
      if [ -e $TARGET_DIR/etc/group ]; then
      sed -i '/^pulse-access:/s/(.*)/1,root/;s/:,/:/' $TARGET_DIR/etc/group
      fi





      share|improve this answer
























        up vote
        2
        down vote



        accepted







        up vote
        2
        down vote



        accepted






        BusyBox may be compiled with FEATURE_ADDUSER_TO_GROUP disabled (default behaviour of buildroot-2017.08). If that's the case addgroup or adduser cannot be added to a group. At least in theory, because when I enabled the feature I still got the same error.



        Easy solution: just edit /etc/group directly, and add the user there yourself. For example:



        pulse-access:x:1003:pulse,root


        When doing it for a buildroot build, you may want to add this in the fakeroot scripts step:



        # Add root user to pulse-access group
        if [ -e $TARGET_DIR/etc/group ]; then
        sed -i '/^pulse-access:/s/(.*)/1,root/;s/:,/:/' $TARGET_DIR/etc/group
        fi





        share|improve this answer














        BusyBox may be compiled with FEATURE_ADDUSER_TO_GROUP disabled (default behaviour of buildroot-2017.08). If that's the case addgroup or adduser cannot be added to a group. At least in theory, because when I enabled the feature I still got the same error.



        Easy solution: just edit /etc/group directly, and add the user there yourself. For example:



        pulse-access:x:1003:pulse,root


        When doing it for a buildroot build, you may want to add this in the fakeroot scripts step:



        # Add root user to pulse-access group
        if [ -e $TARGET_DIR/etc/group ]; then
        sed -i '/^pulse-access:/s/(.*)/1,root/;s/:,/:/' $TARGET_DIR/etc/group
        fi






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Oct 13 '17 at 11:07

























        answered Oct 12 '17 at 16:15









        svenema

        799




        799



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f397232%2fadduser-addgroup-group-in-use%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?