Community Forums
Connect with us on LinkedIn
  
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    5

    Default Lost Home

    Being new to both Linux and Cpanel I am need of a little help. The problem is when I log in as root via ssh I cannot see or access many folders including home, etc and probably others. When I try to cd home or etc I get "No such file or directory". All was well and everything seemed to work fine. The only things I really did wes edit my proftpd.conf file, restarted proftpd, and played around with the su command. The next time I loged in I could not see these folders. Hopefully someone can help shed some lite on this dark moment.
    Thanks
    Wrench

  2. #2
    Member
    Join Date
    Feb 2004
    Posts
    329

    Default

    login as another user and try su root. Also don't forget the / for the directory. ie shell# cd /home

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    5

    Default

    Thanks for your help. After a little sleep I got it under control.
    I was using cd home/ instead of cd /home
    One other quick question is when I log in as root I log into root@host [~], if I cd / I get to root@host [/]. What is ~ ? I dont understand where in the directory this is?

    Thanks again.

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    329

    Default

    I believe, but am not totally sure, that they're different shells. Commands should be the same and you shouldn't notice a difference. Do you have users jailed to their directory? If so and your logging is as a standard user, not root, I believe this is normal.

  5. #5
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    The ~ denotes your home directory....

    For example type cd by itself will put you back to your home directory, type cd ~ does the exact same.

    If your new to linux we have some good starting references on commands on our forum (see sig) to help you get familiar with these types of things.
    Regards,
    David
    Forum Moderator

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 03-17-2011, 07:13 PM
  2. Help With Home Server Home Page
    By WebDummie in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-14-2010, 04:21 PM
  3. Lost
    By ravenouszebra in forum New User Questions
    Replies: 1
    Last Post: 01-30-2008, 02:04 PM
  4. HELP!, I'm so Lost...
    By E f E d H h H in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-23-2005, 10:18 PM
  5. Lost Ip Help !
    By dalecpanel in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-10-2002, 06:59 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube