Results 1 to 3 of 3
  1. #1

    Pureftp, linux help - default httpdocs directory

    Hi all.

    i have just bought a dedicated linux server, but its all very new to me and im not to sure about everything yet.

    i have moved over my domains to my new server. all fine.

    however when i loging to one of the FTP accounts i can see alot of folders and files i dont want the user to see when they login.

    they have to goto HTTPDOCS to upload there website.. however there are alot of files in here already, im not wanting these.

    my question is... when they login to there FTP all they see is a blank directory/folder - so that they upload there website files there, without confusion?

    on my last server (managed server) i was able to just create a folder, then change the domain destination to this location on my server...., i am hoping to get the same setup.

    i also have plesk 8.6.0.

    thanks all

  2. #2
    I think you have to edit /etc/pure-ftpd.conf to say:


    ChrootEveryone=YES

  3. #3
    Join Date
    Nov 2006
    Location
    Melbourne, Australia
    Posts
    310
    however when i loging to one of the FTP accounts i can see alot of folders and files i dont want the user to see when they login.

    they have to goto HTTPDOCS to upload there website.. however there are alot of files in here already, im not wanting these.
    You can delete all the default files from httpdocs, except for plesk-stat (which is used for statistics). "test", "img", "css", and whatever other Plesk junk it puts in there can be deleted. If you don't want these files to come up on newly-created accounts, then delete them from the "Skeleton" directory, which I think is an option in Plesk for administrators (Unfortunately I no longer have a Plesk server set up, so can't check it out for you).

    As for the FTP directory root, that's how Plesk sets up FTP. Users might want to upload stuff into their home, instead of their httpdocs folder (for security reasons, PHP includes that are not accessed directly are often uploaded outside the web root. Other things that are not public, like access logs, are also outside the web root. Users might want to download this), and being set up like that allows this. If you still want to change this so the root is the httpdocs directory, you'd need to change how Plesk generates the FTP config. Again, I don't have a Plesk box, but maybe someone else can help with this . Note that the file browser will still show their root (and not the httpdocs directory), so the users might get confused why Plesk shows something different to FTP.

    You might want to upgrade to Plesk 9, too

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •