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 13th July 2006, 07:32 PM
wgh Offline
Registered User
 
Join Date: May 2006
Posts: 44
Copying files

Is there a special way to copy files from my flash drive to my Fedora webserver? When I copy files over, they are not viewable from my webserver. Why is this?
Reply With Quote
  #2  
Old 13th July 2006, 07:51 PM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,371
hello:
Dunno for sure, but do you have SeLinux enabled?
Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #3  
Old 13th July 2006, 08:13 PM
markjensen's Avatar
markjensen Offline
Registered User
 
Join Date: Feb 2004
Location: Middle Tennessee
Age: 46
Posts: 390
Into what directory were they copied?
__________________
Semi-Recent screenshot: here
Fluxbox user certified with a Linux Genuine Advantage provided by the GNU GPL
Reply With Quote
  #4  
Old 13th July 2006, 08:14 PM
wgh Offline
Registered User
 
Join Date: May 2006
Posts: 44
Yes, I have it enabled. Is that the problem?

Also, I have copied directly to the html folder.

Last edited by wgh; 13th July 2006 at 09:19 PM.
Reply With Quote
  #5  
Old 13th July 2006, 11:22 PM
wgh Offline
Registered User
 
Join Date: May 2006
Posts: 44
I also forgot to mention that once I edit the file and save it again, the file works correctly.
Reply With Quote
  #6  
Old 13th July 2006, 11:30 PM
BandC's Avatar
BandC Offline
Registered User
 
Join Date: Nov 2004
Posts: 1,105
Do this:

Go to the directory where you save the file. Issue: ls -lZa

It will show the files and their permissions and their SE Linux contexts. Try this before AND after you re-edit and re-save the file. You should see a difference between the outputs of the ls command which would explain why it works after you edit and save.

To change ownership you use the chown command.
To change SE Linux contexts you use the chcon command.
Read the man pages for these commands for more info.

You do all this on command line of course.
__________________
IMHO GNOME FTW! BTW KDE WAD? FWIW. HTH. AFAIK YMMV. OMG WTF BBQ! :rolleyes:

Do you like surfing forums but wish people would stop using obscure abbreviations and acronyms?
Then my Firefox/Chrome extension ABBREX is for you!
It automatically adds hover tooltips to abbreviations displaying their meanings on any web page you visit!

Check it out at: http://abbrex.com

Last edited by BandC; 13th July 2006 at 11:38 PM.
Reply With Quote
  #7  
Old 14th July 2006, 12:24 AM
Spoon! Offline
Registered User
 
Join Date: Aug 2005
Location: Hell
Posts: 758
Code:
restorecon -R directory
on the directory you are copying into; this will restore contexts

Last edited by Spoon!; 15th July 2006 at 01:16 AM.
Reply With Quote
  #8  
Old 14th July 2006, 09:00 PM
wgh Offline
Registered User
 
Join Date: May 2006
Posts: 44
Thanks Spoon!, that worked like a charm! What is the default context that is restored?
Reply With Quote
  #9  
Old 15th July 2006, 04:00 AM
enoxard Offline
Registered User
 
Join Date: May 2005
Posts: 13
Quote:
Originally Posted by wgh
Thanks Spoon!, that worked like a charm! What is the default context that is restored?

you can view selinux contexts with the ls -Z and ps -Z commands.

e.
Reply With Quote
Reply

Tags
copying, files

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
copying files ColonelPenguin Linux Chat 2 8th June 2007 10:13 AM
copying files ant1her0 Using Fedora 4 8th August 2006 08:05 AM
Copying of big files via ssh failed InKo Using Fedora 2 9th June 2006 09:26 AM
copying files mugs Servers & Networking 9 1st September 2004 11:14 AM


Current GMT-time: 15:56 (Wednesday, 19-06-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