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.

Proftpd!!!

Discussion in 'General Discussion' started by vishal, May 5, 2003.

  1. vishal

    vishal Well-Known Member

    Joined:
    Jan 28, 2003
    Messages:
    340
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hello,

    Can i configure Proftpd to chmod a Directory to 777 when it is created.

    By default it chmods to 755 whenever i create it . I want to chmod it to 777.

    Is it Possible??

    Any help!!!!:rolleyes:
     
  2. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18
    umask is set to 022 by default, causing created files to have permissions 644 and directories to have permissions 755.

    I'm not sure if you can treat directories different from files though.
     
    #2 jamesbond, May 5, 2003
    Last edited: May 5, 2003
  3. vishal

    vishal Well-Known Member

    Joined:
    Jan 28, 2003
    Messages:
    340
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Re: Re: Proftpd!!!

    Thanks for the reply.

    Can't I umask 000 to a subdirectory only. like

    /home/user/www/main002 --> umask 002
    |
    |
    |
    \------------> main777 --> umask 000

    like i'll specify the umask in the proftpd.conf

    <Directory ~main777>
    umask 000
    </directory>

    just an e.g.

    Regards,

    :D
     
  4. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18
    Re: Re: Re: Proftpd!!!

    Now that I think of it,
    umask 022 sets all directories to be 755 and all files 644

    I'm not sure your example would work, my guess would be that the files you ipload in ~main777 will have permissions 666.
     
  5. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18
  6. vishal

    vishal Well-Known Member

    Joined:
    Jan 28, 2003
    Messages:
    340
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
Loading...

Share This Page