adduser, addgroup âgroup in useâ
Clash 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/
users busybox
add a comment |Â
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/
users busybox
2
Does your busybox have ausermod
command?
â Mark Plotnick
Oct 10 '17 at 14:17
no, not present..
â svenema
Oct 10 '17 at 16:02
add a comment |Â
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/
users busybox
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
users busybox
asked Oct 10 '17 at 13:50
svenema
799
799
2
Does your busybox have ausermod
command?
â Mark Plotnick
Oct 10 '17 at 14:17
no, not present..
â svenema
Oct 10 '17 at 16:02
add a comment |Â
2
Does your busybox have ausermod
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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
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
edited Oct 13 '17 at 11:07
answered Oct 12 '17 at 16:15
svenema
799
799
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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