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.

Second FTP for Primary Domain

Discussion in 'General Discussion' started by greg, Apr 3, 2002.

  1. greg

    greg Active Member

    Joined:
    Sep 4, 2001
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Hi, I have a customer who would like to have a secondary ftp account to access a domain name (ie. not a sub-directory but the actual domain it self, so the second user can access public_html).

    Does anyone know if this is possible and if so, how?

    Thanks for any help in advance.

    Greg
     
  2. parag

    parag Well-Known Member

    Joined:
    Aug 16, 2001
    Messages:
    115
    Likes Received:
    0
    Trophy Points:
    16
    [quote:7583b2b069][i:7583b2b069]Originally posted by greg[/i:7583b2b069]

    Hi, I have a customer who would like to have a secondary ftp account to access a domain name (ie. not a sub-directory but the actual domain it self, so the second user can access public_html).

    Does anyone know if this is possible and if so, how?

    Thanks for any help in advance.

    Greg[/quote:7583b2b069]


    add another ftp user from the control panel

    login to your server as a root

    go to /etc/proftpd/ - edit domain's main user file
    (e.g. if you have the main accounts userid = greg then edit the file greg using pico)
    find the userid which you want to have access for public_html or the root of the website.

    edit the path from /home/domain/public_html/greg to /home/domain/public_html or whatever u like.

    close the file .. save the changes...

    now edit the passwd.vhosts file.
    find the userid and edit the path in that file as well

    save the file.. quit

    restart proftpd server

    thats it.

    regards
    Parag
     
  3. bdraco

    bdraco Guest

    [quote:dc94e4e7d1][i:dc94e4e7d1]Originally posted by greg[/i:dc94e4e7d1]

    Hi, I have a customer who would like to have a secondary ftp account to access a domain name (ie. not a sub-directory but the actual domain it self, so the second user can access public_html).

    Does anyone know if this is possible and if so, how?

    Thanks for any help in advance.

    Greg[/quote:dc94e4e7d1]

    Why can't they just use the same account ?
     
  4. greg

    greg Active Member

    Joined:
    Sep 4, 2001
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Parag: thanks for your help! I'll be sure to put it to use.

    bdraco: an excellent point that I've run through my head a few times today.. I think the simple answer is 'thats customers for you'...
     
  5. greg

    greg Active Member

    Joined:
    Sep 4, 2001
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    [quote:ec184783a9][i:ec184783a9]Originally posted by parag[/i:ec184783a9]
    now edit the passwd.vhosts file.
    find the userid and edit the path in that file as well
    [/quote:ec184783a9]

    Hi, sorry to bother you again, but I'm not entirely sure where this file is (I'm still a tad new to Linux).. any chance of a heads-up please?

    Thanks again,

    Greg
     
  6. billmicke

    billmicke Member

    Joined:
    Mar 28, 2002
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    [quote:89dc6bc3bf][i:89dc6bc3bf]Originally posted by greg[/i:89dc6bc3bf]

    [quote:89dc6bc3bf][i:89dc6bc3bf]Originally posted by parag[/i:89dc6bc3bf]
    now edit the passwd.vhosts file.
    find the userid and edit the path in that file as well
    [/quote:89dc6bc3bf]

    Hi, sorry to bother you again, but I'm not entirely sure where this file is (I'm still a tad new to Linux).. any chance of a heads-up please?

    Thanks again,

    Greg[/quote:89dc6bc3bf]
    At shell, run the following command

    locate passwd.vhosts
     
Loading...

Share This Page