The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

View accounts from ssh.

Discussion in 'General Discussion' started by leftie, Apr 25, 2007.

  1. leftie

    leftie Well-Known Member

    Joined:
    Jan 20, 2007
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Hello. I have finally found the confidence to have a go at ssh. I have installed putty and logged in as root and er thats it lol.
    What do i need to type to view what accounts are listed (something simple first).
     
  2. larryl

    larryl Active Member

    Joined:
    Feb 19, 2007
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Well, that's a good start.

    Code:
    cd /home
    ls
    Those are all your user's home directories. They hold all of the web content and email for each site.

    Code:
    cat /etc/userdomains
    Those are all the domains and their associated owners.

    Code:
    ls /etc/valiases
    Those files contain all the forwarders for each site and the default email action (fail or the catch-all email account).

    You'll want to be fairly careful poking around. It's easy to break things. You can't get into too much trouble if you stick to cd, ls, and cat until you figure some things out.
     
  3. leftie

    leftie Well-Known Member

    Joined:
    Jan 20, 2007
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Wow, that was fantastic, thanks larryl. So it's a bit like following (or changing) the path with some commands thrown in. I look forward to finding more tips from you great guys.
    Going to try /home2 now. :)

    Thanks so much.
     
Loading...

Share This Page