Having recently installed buster, I plugged in my DSLR, to get a window pop with:
"...."no application is registered..."
There was a "little disc icon" of the desktop (representing) the camera. Clicking on it it got a new popup , to the effect of "choose an application to open this" (none worked) . If I had rapid photo downloader installed , it burst into activity but failed to download anything .
Using the GUI to visit /media/graeme/ ...got a permission error.
Looking at the directory in shell showed all /media/* files were owned an only RWX by root (for 3 different users)
looking in emacs warned of the presence of an ACL, so:
Code: Select all
# getfacl /media/*
getfacl: Removing leading '/' from absolute path names
# file: media/cdrom
# owner: root
# group: root
user::rwx
group::r-x
other::r-x
# file: media/cdrom0
# owner: root
# group: root
user::rwx
group::r-x
other::r-x
# file: media/graeme
# owner: root
# group: root
user::rwx
user:owner:r-x <-------------------------------- ****** NOTE *****
group::---
mask::r-x
other::---
# file: media/guest
# owner: root
# group: root
user::rwx
user:guest:r-x
group::---
mask::r-x
other::---
# file: media/user666
# owner: root
# group: root
user::rwx
user:user666:r-x
group::---
mask::r-x
other::---
I have no idea why anybody would want to use an ACL , rather than simple file mode bits . I guess it escapes update by things like usermod(8) and whatever I did to shoehorn my user id (graeme) back in following an install.
My solution was simply to delete the rogue directory and create simple ACL-free one owned by me:
Code: Select all
# cd /media
# rmdir graeme
# mkdir graeme
# chown graeme: graeme
Mind you I have trouble working out why random disks, plugged into a system end up being mounted and owned by whichever user happened to be on the/an xconsole? Two partitions on this machine , which are only used when it dual boots into fedora end up appearing on my desktop and mounted in /media .... they are really not there for any user on the Debian console ??