View Full Version : weird sound and root problem
leorex
19th September 2008, 08:28 AM
ok here is the story.
I thought my sound card cannot work due to some random reason, and the icon on my desktop shows that cannot find my onboard sound card via 82xx, so i did alsamixer as a normal user and it says:
[leorex@localhost ~]$ alsamixer
alsamixer: function snd_ctl_open failed for default: Permission denied
and like one day later i accidentally executed alsamixer with root and it works all gud!!!
now it is the weirdest part: with root as username and totally correct password, i cannot login root through the gnome-greeter (the thing when you login)............................................ ..........
thats the weirdest bug i have ever experienced.
please help, i believe the root thing will fix up the audio problem pretty sure.
LordMorgul
19th September 2008, 09:06 AM
ok here is the story.
I thought my sound card cannot work due to some random reason, and the icon on my desktop shows that cannot find my onboard sound card via 82xx, so i did alsamixer as a normal user and it says:
[leorex@localhost ~]$ alsamixer
alsamixer: function snd_ctl_open failed for default: Permission denied
and like one day later i accidentally executed alsamixer with root and it works all gud!!!
*edit*... ok so probably you're running F10 in the F10 forum... the same below applies though
I'm assuming you're on Fedora 9 here? F9 is by default setup to run all sound through the pulseaudio daemon. Is it running? Check ps aux | grep pulse and see whether you see 'pulseaudio -D'. If not, start it with pulseaudio -D & then check again to see it is started. Your user should be given access to the sound hardware while you are the active session user (meaning, you're logged in and your login is in the foregroudn, you have not switched to another user).
now it is the weirdest part: with root as username and totally correct password, i cannot login root through the gnome-greeter (the thing when you login)............................................ ..........
thats the weirdest bug i have ever experienced.
please help, i believe the root thing will fix up the audio problem pretty sure.
That is intentional configuration, you should never need to login graphically as root (nor should you plan to, since its a considerable security risk to do so regularly). You should not need to be root to get access to your sound hardware, something is misconfigured.
leorex
19th September 2008, 09:48 AM
hi LordMorgul:)
theres something weird indeed. This is the output of pulseaudio -D:
[leorex@localhost ~]$ pulseaudio -D
I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
I: caps.c: Dropping root priviliges.
I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
N: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges:
N: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant us priviliges. Dropping SUID again.
N: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
W: main.c: High-priority scheduling enabled in configuration but not allowed by policy.
W: core-util.c: setpriority(): Permission denied
E: main.c: Daemon startup failed.
actually the problem is not that simple, because the other symptom after the last update was that the computer cannot shutdown through the bottom on gnome-desktop, and all the media player fail
also i've noticed that selinux seems to be stopping the thing:
SELinux denied access requested by gvfs-hal-volume. It is not expected that this access is required by gvfs-hal-volume and this access may signal an intrusion attempt. It is also possible that the specific version or configuration of the application is causing it to require additional access.
should i do anything with selinux? i've never touched it ever b4 in my life
umm ive always been able to access on fedora up to 7, and gives a warning message and never tried on fedora 9 coz seems to be the only thing that has not got me any trouble so :P never knew it was international configuration.
LordMorgul
19th September 2008, 10:18 AM
hi LordMorgul:)
theres something weird indeed. This is the output of pulseaudio -D:
[leorex@localhost ~]$ pulseaudio -D
<snip>
E: main.c: Daemon startup failed.
The rest of that snipped out is normal, the error is that the daemon failed.
actually the problem is not that simple, because the other symptom after the last update was that the computer cannot shutdown through the bottom on gnome-desktop, and all the media player fail
also i've noticed that selinux seems to be stopping the thing:
SELinux denied access requested by gvfs-hal-volume. It is not expected that this access is required by gvfs-hal-volume and this access may signal an intrusion attempt. It is also possible that the specific version or configuration of the application is causing it to require additional access.
should i do anything with selinux? i've never touched it ever b4 in my life
umm ive always been able to access on fedora up to 7, and gives a warning message and never tried on fedora 9 coz seems to be the only thing that has not got me any trouble so :P never knew it was international configuration.
I have a good idea thats all caused by gdm (and related to that some failure to set correct PolicyKit authorization for those actions to happen by implicit authorization).
Download the latest build of gdm from koji and install it manually (I needed to do this to get authorizations to grant correctly when using polkit-gnome-authorization).
You can get the latest build here: http://koji.fedoraproject.org/koji/buildinfo?buildID=63409
Install the gdm and gdm-user-switch-applet rpms together after you download them locally. Assuming you're on i386:
wget http://koji.fedoraproject.org/packages/gdm/2.23.92/8.fc10/i386/gdm-2.23.92-8.fc10.i386.rpm
wget http://koji.fedoraproject.org/packages/gdm/2.23.92/8.fc10/i386/gdm-user-switch-applet-2.23.92-8.fc10.i386.rpm
su -c 'rpm -U gdm-2.23.92-8.fc10.i386.rpm gdm-user-switch-applet-2.23.92-8.fc10.i386.rpm'
leorex
19th September 2008, 10:32 AM
Hi LordMorgul:
thanks alot!!!! alll problem solved!
it turned out not my stupidity:)
anyways thanks alot! never expect this stuff to be solved this easy:P
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.