Fedora Linux Support Community & Resources Center
  #1  
Old 3rd June 2012, 01:31 AM
glmarsh Offline
Registered User
 
Join Date: Apr 2008
Posts: 36
linuxfirefox
Access Denied to USB Memory Stick

I just upgraded from F14 to F17 and before doing so I backed up my home directory on a usb memory stick. Now that I have completed the installation I want to re-create my home directory from the usb memory stick but I can not due to a permission/ownership conflict which exists between me as I had been defined under F14 verses F17. When I try to access the memory stick it says the owner is "500 - user #500" where as if I check my properties in a file directory under F17 I am recognized as owner "gary - Gary Marsh". So my question is pretty simple.... Has anyone else experienced this problem and how do I change the permissions on the memory stick such that I can access the data?

Thanks in advance,
Reply With Quote
  #2  
Old 3rd June 2012, 01:42 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,662
linuxfirefox
Re: Access Denied to USB Memory Stick

restore the files as root (depending on how you backed them up).

If all you did was something like a "cp -r", then root can copy them back. You might consider using --preserve=mode,timestamps to change the owner. If it is a simple ownership, it may be simpler to just do a "chown -R owner.group ..." in your home directory as root.

This is because F17 changed the default starting UID for user accounts from 500 to 1000. So when you created your login on F17 it was assigned the UID of 1000, where you had 500 before.
Reply With Quote
  #3  
Old 3rd June 2012, 04:17 AM
glmarsh Offline
Registered User
 
Join Date: Apr 2008
Posts: 36
linuxfirefox
Re: Access Denied to USB Memory Stick

Thanks JPollard for your reply. So walk me through this quickly... Previously I used the Desktop file application to copy from my hard drive to the usb scan drive so I didn't have to address mounting and all of the low levels stuff. The other odd thing is I am unable to log on as root but if I start a terminal I can su - to root and it accepts my root password. Is this another anomaly of F17? So lets stick with the terminal for a moment... So I did a fdisk -l and determined that /dev/sdf1 is my usb scandisk. I did a "mount /dev/sdf1 /mnt" to mount the device and I performed a "chown -hRc gary:gary /mnt" to change the ownership and group of all the files on the scandisk. BTW it takes quite a while to do this on a 16Gig scandisk but yahoooo it works.

Thanks again.

glmarsh
Reply With Quote
  #4  
Old 3rd June 2012, 10:32 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,076
linuxfirefox
Re: Access Denied to USB Memory Stick

Root should not be able to login directly. This is a security feature so people who are trying to get root access have to guess gary's password and username first ;-)
Reply With Quote
  #5  
Old 3rd June 2012, 12:58 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,662
linuxfirefox
Re: Access Denied to USB Memory Stick

A disabled GUI root login isn't new to F17, but has been there since at least F14, unless the configuration was changed and forgotten about. IF it was changed then it would have been carried through the preupgrade path, as the original UID configurations were carried.

Root usage of the GUI is not recommended as it is MUCH too easy to destroy the system accidentally.
Reply With Quote
Reply

Tags
access, denied, memory, stick, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB memory stick prmissions denied problem gaz1965xx Hardware & Laptops 2 4th December 2007 03:13 PM
Lost Memory Stick Access in FC4 jladd Using Fedora 1 18th September 2005 01:38 AM
Can't get write access to work on USB memory stick ltam Installation, Upgrades and Live Media 14 8th January 2005 06:09 PM


Current GMT-time: 12:09 (Monday, 21-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat