Nothing I can find
Announcement
Collapse
No announcement yet.
USB screw ups
Collapse
This topic is closed.
X
X
-
Interesting. So, instead of looking for a BIOS setting, the question remains: what "setting" in Kubuntu controls this stuff?An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
-
I'm leaving tomorrow to go fetch the last load of household stuff (from WA) in our big move to NM.
So I won't be on the computer for the next week or so, after today.
Maybe the computer gnomes will come buy and fix it while I'm gone.Greg
W9WD
- Top
- Bottom
Comment
-
Originally posted by GregM View PostI'm about ready to reformat and start over.
This is crazy
It is locked because you (you the empirical user, not specifically you Greg) are not supposed to be mucking about in the media folder. It's done that way to keep other users from accessing your removable devices. When you insert a device root (via UDEV) mounts the device in your /media/greg folder with permission that you can access.
Here's what my /media folder looks like with nothing mounted:
Code:[FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ ll /media[/COLOR] total 0 drwxr-xr-x 1 root root 12 Nov 9 08:26 [COLOR=#5454FF][B].[/B][/COLOR][COLOR=#000000]/[/COLOR] drwxr-xr-x 1 root root 268 Nov 23 08:50 [COLOR=#5454FF][B]..[/B][/COLOR][COLOR=#000000]/[/COLOR] drwxr-x---+ 1 root root 0 Dec 2 19:45 [COLOR=#5454FF][B]stuart[/B][/COLOR][COLOR=#000000]/[/COLOR][/FONT]
Clearly, root owns the stuart folder and the zero after "root root" shows us nothing is in the stuart folder. Now with a device inserted and mounted, we see:
Code:[FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ ll /media/[/COLOR] total 0 drwxr-xr-x 1 root root 12 Nov 9 08:26 [COLOR=#5454FF][B].[/B][/COLOR][COLOR=#000000]/[/COLOR] drwxr-xr-x 1 root root 268 Nov 23 08:50 [COLOR=#5454FF][B]..[/B][/COLOR][COLOR=#000000]/[/COLOR] drwxr-x---+ 1 root root 22 Dec 14 15:59 [COLOR=#5454FF][B]stuart[/B][/COLOR][COLOR=#000000]/[/COLOR][/FONT]
Code:[FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ ll /media/stuart/[/COLOR] total 4 drwxr-x---+ 1 root root 22 Dec 14 15:59 [COLOR=#5454FF][B].[/B][/COLOR][COLOR=#000000]/[/COLOR] drwxr-xr-x 1 root root 12 Nov 9 08:26 [COLOR=#5454FF][B]..[/B][/COLOR][COLOR=#000000]/[/COLOR] drwxrwxrwx 1 stuart stuart 4096 Dec 13 11:42 [COLOR=#1818b2]'Samsung USB'[/COLOR][COLOR=#000000]/[/COLOR][/FONT]
...the short answer as to why you can't change the folder the way you're trying is an "Access Control List" (ACL) is being used. The hint is the plus sign trailing the normal permissions list. Look at mine and see (I enlarged the plus sign):
Code:[FONT=monospace][COLOR=#000000]drwxr-x---[SIZE=4][B]+[/B][/SIZE] 1 root root 22 Dec 14 15:59 [/COLOR][COLOR=#5454FF][B]stuart[/B][/COLOR][COLOR=#000000]/[/COLOR][/FONT]
Code:[FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ getfacl /media/stuart [/COLOR] getfacl: Removing leading '/' from absolute path names # file: media/stuart # owner: root # group: root [B]user::rwx user:stuart:r-x[/B] group::--- mask::r-x other::---[/FONT]
So you can see that although root "owns" the folder, I have been given access through the ACL.
To further general ACL knowledge and possibly to give you a better understanding of what you're encountering: https://linuxconfig.org/how-to-manage-acls-on-linux
If you really, really, REALLY want to continue mucking about, go right ahead - it's your system. However, at least generally, changing things in your linux install basically just because you don't like the way it looks is a bad idea IMO. I know because I've done numerous re-installs over the last 20 years that I've used linux for blindly taking the same sort of actions.
My advice, if you want it, is ask yourself why you're doing something before finding out how to do it, and then only act when your understanding is clear and your reasons justified.Last edited by oshunluvr; Dec 14, 2018, 03:27 PM.
- Top
- Bottom
Comment
-
Originally posted by GregM View PostSo
sudo chown $USER:$USER /media/<username>/<mountpoint>
would be
sudo chown $greg:$greg /media/greg/8gb
?Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Originally posted by SpecialEd View PostUse command lsblk to show your path/mount point.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 83.9G 0 disk
└─sda1 8:1 0 83.9G 0 part /
sdb 8:16 1 7.3G 0 disk
└─sdb1 8:17 1 7.3G 0 part /media/greg/8GB
sr0 11:0 1 1024M 0 rom
greg@greg-OptiPlex-990:~$Greg
W9WD
- Top
- Bottom
Comment
Comment