[HELP] Applications do not have permissions to work properly unless run as root
A problem I am running into more and more on my arch setup as I install more programs is that they do not have proper permissions by default. The two applications I am having trouble with right now are pcmanfm and mcplayer. pcmanfm is unable to mount drives, rename files, or do anything else that would require sudo when done in a terminal. I would like it to be able to perform these operations without running it as root. My other application is mcplayer. I want to use it to play music, but it will only work properly when run as root. When run as a normal user, it can still be used to browse your files, but pressing enter to play a song does nothing.
I would like to avoid these kinds of problems in the future. What can I do to prevent permissions issues like these?
Thanks
About this post
- Posted
- Archived
- Score
- 1 · 100% up
- Kind
- Text
- ID
- 9apyse
2 comments
Before doing anything else, ensure that your session is properly set up, if you use startx/xinit: https://wiki.archlinux.org/index.php/Xinit#xinitrc note the second blue box.
Read the corresponding wiki articles: I.e. https://wiki.archlinux.org/index.php/PCManFM#.22Not_authorized.22_error_when_attempting_to_mount_drive
Mplayer depends on a few factors, your sound device is likely being blocked by something use
sudo fuser -v /dev/snd/*to find out what exactly. If anything other than applications from your own user are listed there that has the potential to pose an issue. In general if you use an unconfigured ALSA ensure that everything that might be playing back audio does so via the 'default' device, as that will provide mixing. If you use pulseaudio, only pulseaudio running from your own user should be listed in that output. Shameless selfplug on why this works the way it does.Some help from the arch wiki:
https://wiki.archlinux.org/index.php/PCManFM#.22Not_authorized.22_error_when_attempting_to_mount_drive
I have not heard of mcplayer, but there may be help on the wiki for that too.