D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Hate computers. Hate systemd. [Was Re: Hate computers. Hate HP. Hate USB.

 

On 07/11/2021 11:33, Julian Hall wrote:
>
> julian@Cerce:~$ ls -alh /media/julian/DEMETER
> ls: cannot open directory '/media/julian/DEMETER': Permission denied
> julian@Cerce:~$ sudo ls -alh /media/julian/DEMETER
> [sudo] password for julian:
> total 232M
> drwxrwxrwx 44 root   root   4.0K Sep  3 19:56  .
> drwxr-xr-x  5 root   root   4.0K Oct 25 16:49  ..
<snip>

I'm suspicious why it cannot read the 'umounted' mount point /media/julian/DEMETER
and is throwing a 'permission denied' here (although this could easily be the
automount whining...).

What happens if you comment that damn share from fstab and re-run "ls -alh
/media/julian/DEMETER" (as julian) (or quite frankly as root would do too)...
>> I like logs:
>>
>> journalctl -b | grep -i mount
> julian@Cerce:~$ journalctl -b | grep -i /media/julian/DEMETER
> Nov 07 09:51:02 Cerce systemd[1]: Mounting /media/julian/DEMETER...
> Nov 07 09:51:02 Cerce systemd[1]: Failed to mount /media/julian/DEMETER.
> Nov 07 09:51:10 Cerce systemd[1]: media-julian-DEMETER.automount: Got automount
> request for /media/julian/DEMETER, triggered by 1418 (pool)
> Nov 07 09:51:10 Cerce systemd[1]: Mounting /media/julian/DEMETER...
> Nov 07 09:51:10 Cerce systemd[1]: Mounted /media/julian/DEMETER.
> Nov 07 09:52:32 Cerce systemd[1]: Unmounting /media/julian/DEMETER...
> Nov 07 09:52:32 Cerce systemd[1]: Unmounted /media/julian/DEMETER.
> Nov 07 11:18:51 Cerce systemd[1]: media-julian-DEMETER.automount: Got automount
> request for /media/julian/DEMETER, triggered by 4856 (ls)
> Nov 07 11:18:51 Cerce systemd[1]: Mounting /media/julian/DEMETER...
> Nov 07 11:18:51 Cerce systemd[1]: Mounted /media/julian/DEMETER.
> Nov 07 11:19:11 Cerce sudo[4882]:   julian : TTY=pts/0 ; PWD=/home/julian ;
> USER=root ; COMMAND=/usr/bin/ls -alh /media/julian/DEMETER
> Nov 07 11:20:12 Cerce systemd[1]: Unmounting /media/julian/DEMETER...
> Nov 07 11:20:12 Cerce systemd[1]: Unmounted /media/julian/DEMETER.
Hmm, so your 'julian' user doesn't have the right to perform the necessary
'automount'. Using 'sudo' above badly masks the underlying issue... but is telling in
other ways..

What do you get from simply "mount -vvv /media/julian/DEMETER" as 'julian' (which
shouldn't throw a hissy if the 'users' parameter is being correctly parsed)??

Michael / veremitz.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

-- 
The Mailing List for the Devon & Cornwall LUG
https://mailman.dcglug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq