LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2014, 06:05 AM   #1
gael33
Member
 
Registered: Feb 2009
Location: Scotland
Distribution: Linux Mint 20.1 Cinnamon 64 bit
Posts: 343

Rep: Reputation: 22
Question How do I un-protect my USB?


How do I un-protect my USB?


Since I upgraded to LM16 Cinnamon I appear not to have ownership of my USB drives. I cannot copy or paste files to any of my USB drives.
How do I un-protect my USB drives (the drives tell me I am not the owner)?
I tried going into properties and change the settings without success. Going through the Terminal and typing Nemo is successful but rather long-winded and inconvenient.
I guess that some kind person will give me the answer
 
Old 01-12-2014, 06:35 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Hi

I use Debian but see if this helps?

udev is the daemon used for mounting of removeable disks including usb stick/drives

but it needs a rule and my rule set comes from a package called udisks (and udisks2)

have a look and see if you have /lib/udev/rules.d/80-udisks*.rules

2) it also helps to have a file manager that will allow "auto mounting" disks to appear in your FM

I have used SpaceFM, PCVManFM Thunar and they are similar in that you need to go into the file manager's settings and find settings like

--mount removeable disks on insertion


etc

3) but I also have kernel polling enabled but lets leave that to a LM expert to comment on later

4) since you mention a terminal you should be able to get root powers and do something about the folder?

Code:
sudo su
chown -R slainte:slainte /media/*
might work

YMMV
 
Old 01-12-2014, 06:57 AM   #3
gael33
Member
 
Registered: Feb 2009
Location: Scotland
Distribution: Linux Mint 20.1 Cinnamon 64 bit
Posts: 343

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by aus9 View Post
Hi

I use Debian but see if this helps?

udev is the daemon used for mounting of removeable disks including usb stick/drives

but it needs a rule and my rule set comes from a package called udisks (and udisks2)

have a look and see if you have /lib/udev/rules.d/80-udisks*.rules

2) it also helps to have a file manager that will allow "auto mounting" disks to appear in your FM

I have used SpaceFM, PCVManFM Thunar and they are similar in that you need to go into the file manager's settings and find settings like

--mount removeable disks on insertion


etc

3) but I also have kernel polling enabled but lets leave that to a LM expert to comment on later

4) since you mention a terminal you should be able to get root powers and do something about the folder?

Code:
sudo su
chown -R slainte:slainte /media/*
might work

YMMV
Thanks for your help, much appreciated.
How does this look compared to yours?

gael33@gael33 ~ $ sudo ls -lh /media /media/gael33
[sudo] password for gael33:
/media:
total 36K
drwxr-x---+ 2 gael33 gael33 4.0K Jan 3 12:27 gael33
lrwxrwxrwx 1 gael33 gael33 4 Dec 16 16:17 usb -> usb0
drwxrwxrwx 2 gael33 gael33 4.0K Dec 16 16:17 usb0
drwxr-xr-x 2 gael33 gael33 4.0K Dec 16 16:17 usb1
drwxr-xr-x 2 gael33 gael33 4.0K Dec 16 16:17 usb2
drwxr-xr-x 2 gael33 gael33 4.0K Dec 16 16:17 usb3
drwxr-xr-x 2 gael33 gael33 4.0K Dec 16 16:17 usb4
drwxr-xr-x 2 gael33 gael33 4.0K Dec 16 16:17 usb5
drwxr-xr-x 2 gael33 gael33 4.0K Dec 16 16:17 usb6
drwxr-xr-x 2 gael33 gael33 4.0K Dec 16 16:17 usb7

/media/gael33:

gael
 
Old 01-12-2014, 07:07 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
A relevant post at forums.LinuxMint.com has some "history"
 
Old 01-12-2014, 07:08 AM   #5
gael33
Member
 
Registered: Feb 2009
Location: Scotland
Distribution: Linux Mint 20.1 Cinnamon 64 bit
Posts: 343

Original Poster
Rep: Reputation: 22
I'm totally baffled by this. Although it looks like I have access to my usb drive(s) it still needs root permissions through the editor to paste files etc to my usb stick ... even when I wish to remove the stick, it still requires my password to remove it safely.
Any ideas anyone?

gael
 
Old 01-12-2014, 03:22 PM   #6
dandev
LQ Newbie
 
Registered: Apr 2006
Posts: 5

Rep: Reputation: 0
Did you try the chown command? What about just doing chmod 777
 
Old 01-12-2014, 04:33 PM   #7
gael33
Member
 
Registered: Feb 2009
Location: Scotland
Distribution: Linux Mint 20.1 Cinnamon 64 bit
Posts: 343

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by dandev View Post
Did you try the chown command? What about just doing chmod 777
If you look at earlier posts you will see that I used the chown command.
I tried typing just sudo chmod 777 but unfortunately it did nothing

gael33@gael33 ~ $ sudo chmod 777
[sudo] password for gael33:
chmod: missing operand after ‘777’
Try 'chmod --help' for more information.
gael33@gael33 ~ $

The question is ... did I miss out something from the command line?

gael

Last edited by gael33; 01-12-2014 at 04:38 PM.
 
Old 01-12-2014, 05:06 PM   #8
andy78
Member
 
Registered: Oct 2005
Location: Stockholm, Sweden
Distribution: Ubuntu
Posts: 78

Rep: Reputation: 18
Linux mint with any windows manager is an easy to use desktop no matter of any window manager.
In the lates relase the added users & groups panel.

Most likely its enoug to use that to and add to to the "removable media" or "usb" group to hav full access every time you attache your usbstick.
Check the avaible groups and you will figure it out, i can't rememebr the full name.
 
Old 01-12-2014, 05:35 PM   #9
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
try

Code:
sudo su
chown -R gael33:gael33 /media
chmod 775 -R /media
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Flash Drive, write protect, and flash file system questions storkus Linux - Hardware 4 12-01-2008 04:32 AM
Protect my USB flash drive svennand Linux - Security 2 03-25-2007 10:04 AM
Retrieve write protect state of USB device in user space GeertPh Linux - Software 0 10-03-2006 01:25 AM
write protect freezes my usb stick db391 Linux - Hardware 3 09-25-2004 04:43 AM
How Do You Protect Yourself? nuka_t Linux - Security 5 08-18-2004 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration