Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Howdy LQ. I responded to a thread about thumbdrive on linux, and provided a gentle introduction to interacting with a thumbdrive using the terminal console.
The Original Poster provided a screenshot of the tail end of the output of the dmesg command (right after inserting her thumbdrive into her linux computer), and I reproduce that screenshot below:
I don't recall having tweaked any setting to have "udiskctl mount" working without password in the same exact situation, but whatever happened, after the upgrade from Debian 10 to 11, it no longer worked.
While there are quite a few examples of how to set up the correct "polkit" rule for it around, most of them refer to a newer version of polkit that uses a different syntax. Debian's pkaction version is still 1.105. And apparently the file needs to be in the correct...
Largely based on this answer on askubuntu. I hope nothing atrocious results from some situation where it ends up trying to mount something a given user should not, or something. May require tweaking either the script or one's sudo permissions for the commands doing the hard work, I don't know how "default" my settings are.
Code:
#!/bin/bash
echo ${@} | while read input ; do
for label in /dev/disk/by-label/${input} ; do
label=$(basename
So, it suddenly dawned on me that the permission denied thing may be related to the noexec option in /etc/fstab (I'm mounting /var on a different disk than /). Turns out I'd used the following mount option: UUID=b5ae50cf-58e6-46f8-8313-6c1492dcc8ad /var ext4 defaults,users 0 0 and, while defaults implies exec, users instead implies noexec - as the latter is last, it will override the previous one. Changed
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.