Skip to content

[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

1 points2 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
9apyse

Author

3
posts
23
comments
1
media
View profile

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.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.