How to Mount Partition Without Authentication on Linux
But you can configure it to mount automatically without asking for a password, as follows:
Open the file
Open the file
And in the excerpt (
<action id="org.freedesktop.udisks2.filesystem-mount-system">, in the
defaults tag) similar to the one below, replace the information: auth_admin with yes
Changing like this:
Then you don’t even need to restart anything, just try to mount from now on
If you can’t, try to change the file that contains Udisk or ** udisk2 **
In i3wm, if you want me to ask for a password instead of automatically assembling, add this line to your config:
exec_always --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &, in the case of Debian.
Polkit is a component for controlling system-wide privileges on Unix-like operating systems. It provides an organized way for non-privileged processes to communicate with the privileged. Polkit allows a level of control over centralized system policy.
Since version 0.105, launched in April 2012, the project’s name has been changed from PolicyKit to polkit to emphasize that the system component has been rewritten and that the API has been changed, breaking backward compatibility, learn more.
- Polkit, Gentoo Wiki
- Example of config for i3wm
- How to mount internal device without needing password?