Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3567

General Questions • Disk Permissions- can't change them

$
0
0
Be aware, if a partition is mounted, chown doesn't change ownership of the mount point. Easily confirmed. Create a sub-folder in /mnt or /media. Attach a flash drive. Run chown both ways, mounted and unmounted. While you're at it, test whether changing ownership of the mount point has any effect on access to the files. Spoiler: it doesn't. When finished testing, remove the sub-folder, of course.

As for the scenario you describe, presumably the other user has his or her own folder. So all it would take is a second run of chown on that folder. In complex cases, might need more than two runs or find for finer granularity. Another tidbit. A partition mounted with udisks (e.g., File Manager) is accessible only to the mounting user. To be available to multiple users, must be mounted outside /media/$USER. Nothing one does with permissions will change this.

Statistics: Posted by pbear — 2024-12-17 14:43 — Replies 9 — Views 146



Viewing all articles
Browse latest Browse all 3567

Trending Articles