LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Restoring the ability to mount local drives as a normal user, without password, in Debian 11

Posted 09-09-2021 at 01:20 PM by the dsc (linux-related notes)

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...
Member
Posted in Uncategorized
Views 540 Comments 1 the dsc is offline
Old

Simple script-command to mount partitions by label

Posted 08-15-2021 at 02:43 PM by the dsc (linux-related notes)

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
...
Member
Posted in Uncategorized
Views 259 Comments 0 the dsc is offline
Old

Beware of wrong mount options when mounting /var at a separate partition

Posted 12-28-2014 at 10:54 AM by the dsc (linux-related notes)
Updated 12-28-2014 at 10:57 AM by the dsc
Tags mount, var

Quote:
http://askubuntu.com/questions/24649...mission-denied

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
...
Member
Posted in Uncategorized
Views 1304 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 06:12 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration