Re: [gentoo-user] mounting USB without root password
On 2/6/21 2:34 PM, Neil Bothwick wrote: > On Sat, 6 Feb 2021 14:00:54 -0700, the...@sys-concept.com wrote: > >> I'll revive this topic. I have it working on one of my system but on my >> other (new system as well) auto-mounting in XFCE4 is not working, I >> have in n XFCE under: >> - Removable Drivers and Media: --> Mount removable drives when >> hot-plugged (checked) >> >> user is in "wheel, usb" group. >> >> When I plug the usb device the XFCE is trying to auto-mount the usb as >> the message is popping up but it keeps telling me: Authentication is >> required for mounting external /dev/sda1 >> >> Why it worked on one system but not on another? > > Check the groups of the user on both systems. Automounters often require > the user to be a member of the plugdev group. It is working now. I login (crated XFCE) session via x2go and I think one need to first log-in as user, and make any changes in XFCE interface; and now loging via x2to session will work using XFCE auto-mounting.
Re: [gentoo-user] mounting USB without root password
On Sat, 6 Feb 2021 14:00:54 -0700, the...@sys-concept.com wrote: > I'll revive this topic. I have it working on one of my system but on my > other (new system as well) auto-mounting in XFCE4 is not working, I > have in n XFCE under: > - Removable Drivers and Media: --> Mount removable drives when > hot-plugged (checked) > > user is in "wheel, usb" group. > > When I plug the usb device the XFCE is trying to auto-mount the usb as > the message is popping up but it keeps telling me: Authentication is > required for mounting external /dev/sda1 > > Why it worked on one system but not on another? Check the groups of the user on both systems. Automounters often require the user to be a member of the plugdev group. -- Neil Bothwick There's too much blood in my caffeine system. pgpYvMDkw5Lao.pgp Description: OpenPGP digital signature
Re: [gentoo-user] mounting USB without root password
On 1/29/21 10:40 AM, the...@sys-concept.com wrote: > On 1/29/21 10:12 AM, Matt Connell (Gmail) wrote: >> On Fri, 2021-01-29 at 17:06 +, Michael wrote: >>> what XFCE offers for mounting removable block devices and if >>> something is amiss with that. >> >> Thelma, >> >> I use XFCE as well. I think (its been years since I set it up) what >> you want is xfce-extra/thunar-volman to provide a "GUI file manager" >> type of click-to-mount-a-device interface. > > Thank you for correcting me. I reverse the setting in sudoers. > > I had the sys-fs/udisks and xfce-extra/thunar-volman installed so I enable in > XFCE under: > - Removable Drivers and Media: --> Mount removable drives when hot-plugged. > > It solved the problem. I'll revive this topic. I have it working on one of my system but on my other (new system as well) auto-mounting in XFCE4 is not working, I have in n XFCE under: - Removable Drivers and Media: --> Mount removable drives when hot-plugged (checked) user is in "wheel, usb" group. When I plug the usb device the XFCE is trying to auto-mount the usb as the message is popping up but it keeps telling me: Authentication is required for mounting external /dev/sda1 Why it worked on one system but not on another? What is missing?
Re: [gentoo-user] mounting USB without root password
On Sat, 30 Jan 2021 09:46:39 +0100, Róbert Čerňanský wrote: > man pmount... > pmount - mount arbitrary hotpluggable devices as normal user > > So for example: > $ pmount /dev/sdc1 > > Mounts removable drive to /media/sdc1. Or, as I discovered by accident, if you are really lazy: $ pmount sdc1 -- Neil Bothwick If the cops arrest a mime, do they tell her she has the right to remain silent? pgpGsgbgfxLYM.pgp Description: OpenPGP digital signature
Re: [gentoo-user] mounting USB without root password
On Fri, 29 Jan 2021 12:23:19 -0600 "Matt Connell \(Gmail\)" wrote: > On Fri, 2021-01-29 at 10:40 -0700, the...@sys-concept.com wrote: > > I reverse the setting in sudoers. > > > - Removable Drivers and Media: --> Mount removable drives when > > hot-plugged. > > Nice. Glad you found the fix. And for completeness, if you want some command line goodness, there is sys-apps/pmount. man pmount... pmount - mount arbitrary hotpluggable devices as normal user So for example: $ pmount /dev/sdc1 Mounts removable drive to /media/sdc1. Then: $ pumount /media/sdc1 Unmounts it. -- Róbert Čerňanský E-mail: ope...@tightmail.com Jabber: h...@jabber.sk
Re: [gentoo-user] mounting USB without root password
On Fri, 2021-01-29 at 10:40 -0700, the...@sys-concept.com wrote: > I reverse the setting in sudoers. > - Removable Drivers and Media: --> Mount removable drives when hot-plugged. Nice. Glad you found the fix.
Re: [gentoo-user] mounting USB without root password
On 1/29/21 10:12 AM, Matt Connell (Gmail) wrote: > On Fri, 2021-01-29 at 17:06 +, Michael wrote: >> what XFCE offers for mounting removable block devices and if >> something is amiss with that. > > Thelma, > > I use XFCE as well. I think (its been years since I set it up) what > you want is xfce-extra/thunar-volman to provide a "GUI file manager" > type of click-to-mount-a-device interface. Thank you for correcting me. I reverse the setting in sudoers. I had the sys-fs/udisks and xfce-extra/thunar-volman installed so I enable in XFCE under: - Removable Drivers and Media: --> Mount removable drives when hot-plugged. It solved the problem.
Re: [gentoo-user] mounting USB without root password
On Fri, 2021-01-29 at 17:06 +, Michael wrote: > what XFCE offers for mounting removable block devices and if > something is amiss with that. Thelma, I use XFCE as well. I think (its been years since I set it up) what you want is xfce-extra/thunar-volman to provide a "GUI file manager" type of click-to-mount-a-device interface.
Re: [gentoo-user] mounting USB without root password
On Friday, 29 January 2021 16:47:51 GMT Matt Connell (Gmail) wrote: > On Fri, 2021-01-29 at 09:34 -0700, the...@sys-concept.com wrote: > > I uncommented in: sudoers (it works) > > %wheel ALL=(ALL) ALL > > > > %wheel ALL=(ALL) NOPASSWD: ALL > > This feels like fixing a loose screw with a sledgehammer. > > This change allows any wheel group users to execute any command (via > sudo) without authenticating. That is to say, the change is far more > broad than the originally stated issue you're trying to fix. Do you > implicitly trust all wheel group users that much? > > sysfs/udisks, as stated previously, is probably the correct tool for > the job. What Matt said. You have effectively elevated to root level all of your wheel users, without the need to use a root passwd. There is a reason group wheel exists and this is not to duplicate root in terms of privileges. Your issue/question is why does your DE, in this case XFCE, stopped mounting removable block devices. The userspace application used by DEs is sys-fs/udisks. You can use this on a terminal yourself: udisksctl mount --block-device /dev/sdbX There is also the sys-apps/pmount command. However, in the first instance you should look into what XFCE offers for mounting removable block devices and if something is amiss with that. signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] mounting USB without root password
On Fri, 2021-01-29 at 10:47 -0600, Matt Connell (Gmail) wrote: > sysfs/udisks Typo on my part. This should be sys-fs/udisks
Re: [gentoo-user] mounting USB without root password
On Fri, 2021-01-29 at 09:34 -0700, the...@sys-concept.com wrote: > I uncommented in: sudoers (it works) > %wheel ALL=(ALL) ALL > %wheel ALL=(ALL) NOPASSWD: ALL This feels like fixing a loose screw with a sledgehammer. This change allows any wheel group users to execute any command (via sudo) without authenticating. That is to say, the change is far more broad than the originally stated issue you're trying to fix. Do you implicitly trust all wheel group users that much? sysfs/udisks, as stated previously, is probably the correct tool for the job.
Re: [gentoo-user] mounting USB without root password
On 1/29/21 9:01 AM, bobwxc wrote: > 在 2021/1/29 下午11:21, the...@sys-concept.com 写道: >> Can someone refresh my memory how to mount USB as user without entering root >> password. >> >> I was about to mount it normally user (without root password) but after I >> reboot the PC (I did not upgrade) it keep asking me for root password. >> Nothing was changed. >> So why all of a sudden system is asking me for root password when mounting >> USB? >> I'm using xfce. >> > Try *udisks2*, it can auto mount USB disks. > > But the wiki seems out-of-date, may not helpfull > https://wiki.gentoo.org/wiki/Udisks > I uncommented in: sudoers (it works) %wheel ALL=(ALL) ALL %wheel ALL=(ALL) NOPASSWD: ALL
Re: [gentoo-user] mounting USB without root password
在 2021/1/29 下午11:21, the...@sys-concept.com 写道: Can someone refresh my memory how to mount USB as user without entering root password. I was about to mount it normally user (without root password) but after I reboot the PC (I did not upgrade) it keep asking me for root password. Nothing was changed. So why all of a sudden system is asking me for root password when mounting USB? I'm using xfce. Try *udisks2*, it can auto mount USB disks. But the wiki seems out-of-date, may not helpfull https://wiki.gentoo.org/wiki/Udisks -- bobwxc F645 5C7A 08E8 A637 24C6 D59E 36E9 4EAB B53E 516B OpenPGP_signature Description: OpenPGP digital signature
[gentoo-user] mounting USB without root password
Can someone refresh my memory how to mount USB as user without entering root password. I was about to mount it normally user (without root password) but after I reboot the PC (I did not upgrade) it keep asking me for root password. Nothing was changed. So why all of a sudden system is asking me for root password when mounting USB? I'm using xfce.