Welcome to the Linux Foundation Forum!

Directories Empty?

When I’m at work at my Windows 7 desktop. I use PuTTY to access the Web Server. The server is running Linux Ubuntu VER 8.10. I logon as root and I see the directories and I am able to maneuver up and down the directories. But there are NO files in the directories when I type ls. I am almost positive there are files in them because the Web site is working.

What can be the problem?

What is the difference logging on as super user or root?

THANKS

Comments

  • mfillpot
    mfillpot Posts: 2,177
    There should be no difference between using su and being root, the files should exist in both cases. Have you attempted to use tree or find to test the directories to see if maybe ls is just not giving the full output?
  • chekkizhar
    chekkizhar Posts: 182
    $sudo ifconfig
    and
    #ifconfig

    are different. When trying sudo, your PATH variable will not be set as root PATH dir.

    logging in as super user is , infact, root isn't it?
    Not clear about your question.
  • r4i3ds
    r4i3ds Posts: 1
    ? what it means
  • skorzen
    skorzen Posts: 1
    r4i3ds wrote:
    ? what it means

    It means the following:
    [skorzen@hive ~]$ sudo echo $PATH
    
    [sudo] password for skorzen:
    
    /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/skorzen/.local/bin:/home/skorzen/bin
    
    [skorzen@hive ~]$ echo $PATH
    
    /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/skorzen/.local/bin:/home/skorzen/bin
    
    [root@hive skorzen]# echo $PATH
    
    /sbin:/bin:/usr/sbin:/usr/bin
    

    Do you note the difference?

Categories

Upcoming Training