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.

How can i create an Ftp account that only allows to view filenames and folders!

Discussion in 'General Discussion' started by hypnoticpimp, Jun 7, 2006.

  1. hypnoticpimp

    hypnoticpimp Registered

    Joined:
    Jun 7, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Is there anyway possible where i can setup a ftp account that can only allow users to view filenames and folders of a directory i specify, but they cant download or upload any files? if so please tell me how, reason is below


    i have a script, called amember from amember.com where
    if someone, enter's this url,
    http://www.worldstarhiphop.com/MembersOnly/ they will have to login,
    or register. So thats why it has to be that they login through a ftp
    manager, just to be able to vieww the filenames and sub folders of
    that directory MembersOnly. I tried it on Cpanel, but cpanel allows
    allows to create ftp accounts, that will let people download and
    upload files, i dont want them to upload or download.
     
  2. bmcgrail

    bmcgrail Well-Known Member

    Joined:
    Dec 8, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6

    create ftp account

    chown root directory
    chown root files

    chmod 755 directory
    chmod 600 files

    They can list files in dir but can't download, upload, or read files.

    However your reasoning for trying to do this is unclear. The aweber script should manage the access to content within a website. It really has nothing to do with FTP.
     
  3. hypnoticpimp

    hypnoticpimp Registered

    Joined:
    Jun 7, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    what do u mean by
    chown root directory
    chown root files?

    Im on a shared hosting, does that matter

    The thing is i have alot of files and directories. in that MembersOnly Folder

    The amember script, allows for paid members, to download files on MembersOnly folder via internet browser. So all they do is login when they go to www.Worldstarhiphop.com/membersonly

    They dont have a feature where i can create an account for users, to only view filenames and folders.

    Thats why the only way is through FTP
    Now once i create an ftp account trhough cpanel, couldnt they change the chmod on files and folders as well? so whats the use?

    do u have aim or msn. my aim is hypnotic2pimp
    i will pay you , to get this fixed for me
     
  4. bmcgrail

    bmcgrail Well-Known Member

    Joined:
    Dec 8, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Ahh, now I see what you are trying to accomplish. Sorry, I don't have an easy solution for you.

    With a user account you can't change ownership to root. And even if you could, my previous post would make it so that paid members couldn't download either.

    FTP is not the right solution. Maybe you can have someone customize your member script.

    Otherwise you could download a script that will list the directory contents (can only be run as a member) run it yourself and save the output to a public web page that you update on a regular basis.
     
  5. hypnoticpimp

    hypnoticpimp Registered

    Joined:
    Jun 7, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    do u know where i can get that script
     
Loading...

Share This Page