Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi there, I have a 7 port USB hub that is connected to my Dell GX260 that was working perfectly until the other day. I have Maverick running on the pc and before that Lucid. I had no problems read/writing to USB Flash drives that were plugged into the hub. Now I can only write to them through Nautilus (root), otherwise it tells me 'permission denied'. Any help would be appreciated. I have 4 other ports on the pc and they have the same outcome.
I have had USB devices (usually my podplayer) go to read only for no good reason that I could figure out.
Usually, unmounting the device, removing it, and then reconnecting it has given control back to user.
While the problem exists, you might try opening a terminal and running "sudo dmesg," then capturing the relevant output to a text file, then doing the same while the problem does not exist, and comparing the two.
Back in the olden days, when Linux plug and play was not so far advanced, I used to put USB devices in my fstab with "noauto,user,rw" variables.
Hi frankbell, thanks for responding.The problem is an ongoing one so until I sort it I won't be able to see the difference. Although it may be no harm to see what dmesg outputs at the moment, I also might mention that I have a wireless keyboard and a usb mouse attached and they work fine. The thing is that I usually have 3 or 4 usb flash cards plugged in and none of them now let me write to them unless I do so using Nautilus. Thanks, Michael.
Try coping a file to them using cp from a command line and note what error message you get.
Also, assuming they mount in /media, cd to /media (or wherever they exist) and run ls -l and see what it tells you about the permissions and ownership.
Hi again frankbell, I tried out what you suggested there and on my laptop with maverick it gives me -
'drwx------ 18 michael michael 8192 1970-01-01 01:00 PS3 USB' and on my desktop it gives me -
'drwxr-xr-x 12 root root 8192 1970-01-01 01:00 USB1'
That is with the same USB Flash drive.
The other part using cp to copy gave me this -
"Error opening file '/media/usb1/autorun.conf':Permission denied"
This is a bit above my ubuntu experience level! Anymore ideas would be very welcome. Thanks, Michael.
Hi all, I may have stumbled across a solution for my problem, via synaptic packet manager I uninstalled PMOUNT and USBMOUNT (which also took ubuntu-rescue-remix with it) and voila - all my usb flash drives have returned to read/write with user permissions. I have shutdown and restarted a few times to make sure it wasn't a once off. I also checked permissions as was suggested by frankbell and all are ok.
Thank you frankbell for your input and time, you put me on the right track!
In my limited experience, you can get this if the device is mounted under root authority. Root mounted it, therefore it is root's.
If the devices are in your /etc/fstab file (good explanation here), edit the fstab so that ownership belongs to user:
For example (this is for my external USB connected SATA drive on this Debian box):
Code:
/dev/sdb1 /media/sdb1 ext3 auto,user,rw 0 0
instead of this:
Code:
/dev/sdb1 /media/sdb1 ext3 auto,root,rw 0 0
If it's not in your fstab, try unmounting it or ejecting it as root, the remounting it as user and run the ls commands to see whether anything has changed.
I have had this happen two or three times to the external harddrive I use with my Ubuntu computer. Usually, ejecting it, disconnecting it, and then reconnecting it clears up the problem, but it's been too random for me to figure out what causes it.
Hi frankbell, i'm learning alot about ubuntu since I first installed 10.04 last june but what I would say is I have alot more to learn! Its good to know that help is always a few clicks away and thanks to yourself and others its far more enjoyable to learn to use ubuntu and have that rush when you solve a problem!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.