Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th August 2010, 12:29 AM
pampero Offline
Registered User
 
Join Date: Aug 2010
Posts: 12
linuxfedorafirefox
Fedora has changed permissions on a folder I copied hours ago!

I can't see how this happened, but here's the story:

Just this afternoon I successfully copied my backed-up data (130gb) from an external HD to my fedora13 laptop.

That folder and all subfolders had been given read/write permission for all users via the nautilus advanced permissions tab in LinuxMint. (The HD is actually an internal in an external exclosure).

Now I check the folder and see it is marked with an X, and only the owner can access it.

Is there any alternative to re-copying all that data, and if not, how do I now delete the X'ed folder?

Many thanks
Reply With Quote
  #2  
Old 11th August 2010, 01:31 PM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,108
linuxfedorafirefox
Re: Fedora has changed permissions on a folder I copied hours ago!

If you were root when you copied the files, then the ownership would be changed to root on the copies. To keep ownership the same you need to use the -p argument to cp, or --preserve.
Reply With Quote
  #3  
Old 11th August 2010, 02:45 PM
Dan's Avatar
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309
linuxfedorafirefox
Re: Fedora has changed permissions on a folder I copied hours ago!

I think there are several ways to fix this. It all depends on what you want to see, and if you are completely comfortable in the terminal. Rather than worry about changing ownership, I'll just cover changing permissions. (Although the other way is actually faster.)

Fast and dirty permissions method:

Mount the drive graphically.
Then, in a terminal ...
Code:
su -
(provide the root password) 
cd /media
ls -a 
(Note the name of your mounted drive)
chmod 777 -R (here give the name of your mounted drive)
(If you really want to watch all the bloodshed, add -v after the -R.)

To do this graphically:

(You'll still need the terminal here to get a root browser.)

Code:
su -
(give the root password)
nautilus --no-desktop
use that browser window to surf to the /media directory, and then right click the mounted drive and use the GUI tools to change permissions recursively to read & write for all users.



I hope I haven't forgotten anything here, but if I did, I'm very sure someone will be all too happy to call me down on it. (Normally, I just grope around until I accidentally land on the correct syntax.) <....>
__________________
Signature Links | New Posts | Who's on the forums (right now) |

© ® ™ № ¿
Reply With Quote
  #4  
Old 11th August 2010, 07:44 PM
assen Offline
Registered User
 
Join Date: Oct 2008
Posts: 492
linuxfedorafirefox
Re: Fedora has changed permissions on a folder I copied hours ago!

Hi,

Still interesting is the question who (if anybody) changed (if it indeed changed) folder permissions.

Whenever you copy (copy, not move) a file, the new file is created with a default permissions obtained from an account (strictly, a shell) property know as umask. By default, its value is 022, which means new directories are created with permissions of 755 and new files - with 644. Again, by default, files are created with you as an owner and your default group as group. Some programmes allow this behaviour to be influenced, like the "-p" command line option of "cp". So, there is a good chance that Fedora did not do anything unexpected - just that you did not expect what Fedora will do :-)

As a side note, there is a Gnome applet which runs in background and "fixes" names of some directories in your home directory to make them match your locale. However, I wouldn't blame this on it.

WWell,
Reply With Quote
  #5  
Old 11th August 2010, 08:47 PM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,108
linuxfirefox
Re: Fedora has changed permissions on a folder I copied hours ago!

A drawback of hiding things behind GUIs is that one isn't motivated to read man cp or man umask, or the Shell Execution Environment, so operations become mysterious and have unexpected results.
Reply With Quote
Reply

Tags
ago, changed, copied, fedora, folder, hours, permissions

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
Apache permission denial, even after changed permissions xXtripsXx Servers & Networking 16 21st June 2010 02:00 PM
Changed permissions bobobo1618 Servers & Networking 9 10th September 2008 04:26 AM
K3B copied file folder not the same size pamount Using Fedora 2 9th July 2006 11:13 AM
Help! Changed permissions of / agentblue Using Fedora 5 19th April 2005 09:25 AM
Folder copied from XP inaccessible in FC2 Psquared EOL (End Of Life) Versions 2 11th October 2004 02:17 PM


Current GMT-time: 14:25 (Thursday, 23-05-2013)

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