LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-29-2015, 01:07 AM   #1
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Rep: Reputation: 0
Can't see folders as root


Debian version 7 64 bit
CPU type GenuineIntel Intel(R) Xeon(R) CPU L5420 @ 2.50GHz [Family 6 Model 23 Stepping 10]
Number of processors 8 Coprocessors ---
Operating System Linux 3.2.0-4-amd64

I have a web page http://dingo-den.com which has a bunch photo albums on it. I just created a new server and transferred everything over from the old server and after a few problems it is working.

My problem is this. The folder that holds all the photos can't be seen by root ??

I know that it is working because if I right click on an image and click "Inspect Element" it shows the path to the image.
<img style="-webkit-user-select: none; cursor: zoom-in;" src="http://dingo-den.com/gallery3/var/albums/Ride-around-Mesa/988893_10205285398568243_3960245791219480616_n.jpg?m=1426124579" width="292" height="520">

If I log in to the server via putty and go to the folder /gallery3/var/ and do "ls -l"
as root I do not see the folder albums from the link ??

root@dingo1:/var/www/gallery3/var# ls -l
total 12
-rwxrwxrwx 1 root root 1577 Aug 23 2013 database.php
drwxr-xr-x 2 root root 4096 Aug 22 2013 modules
drwxr-xr-x 4 root root 4096 Mar 25 02:43 resizes


So if I do rsync I am guessing that it will not backup the folders that root can't see ?

If I go to http://dingo-den.com/gallery3/var/ I can see the folders ?


I could see them on the old server but that is now gone.........

Any help would be appreciated.

Last edited by dingo-den; 03-29-2015 at 01:20 AM. Reason: added more info
 
Old 03-29-2015, 02:21 AM   #2
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Original Poster
Rep: Reputation: 0
OK I found the answer and it was all my fault. I had the gallery3 folder in folder /var/www/ and also the folder it was supposed to be in.

This can be closed...
 
  


Reply

Tags
debian7, root



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] the usage of each folders in root chinho Linux - Server 2 12-23-2010 07:46 PM
KDE - copying to root folders. stf92 Linux - Newbie 6 07-19-2010 11:00 AM
How do I open folders as root...Plz help braveerudite Debian 11 02-14-2009 04:36 AM
Files and folders that are in root directory sathish80 Linux - Newbie 1 03-17-2006 08:28 AM
Making Volume Root Folders. DdTComp Fedora 1 08-10-2004 11:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:29 PM.

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