Community Forums
Connect with us on LinkedIn
  
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member vishal's Avatar
    Join Date
    Jan 2003
    Location
    India
    Posts
    343

    Talking Proftpd!!!

    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!!!!
    rh_linuxion

    It is very simple to be Happy but it is very difficult to be Simple.

  2. #2
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default Re: Proftpd!!!

    Originally posted by vishal
    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!!!!
    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.
    Last edited by jamesbond; 05-05-2003 at 06:27 AM.

  3. #3
    Member vishal's Avatar
    Join Date
    Jan 2003
    Location
    India
    Posts
    343

    Default Re: Re: Proftpd!!!

    Originally posted by jamesbond
    umask is set to 022 by default, causing created files/directories to have permissions 755.

    I'm not sure if you can treat directories different from files though.

    Never set umask to 000, because that would create files with permissions 777 (world writable)
    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,

    rh_linuxion

    It is very simple to be Happy but it is very difficult to be Simple.

  4. #4
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default Re: Re: Re: Proftpd!!!

    Originally posted by vishal
    like i'll specify the umask in the proftpd.conf

    <Directory ~main777>
    umask 000
    </directory>

    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. #5
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default

    http://www.castaglia.org/proftpd/doc...WTO-Umask.html

    From what I read here you could set a second parameter for umask. The second parameter would determine the permissions of directories.

    Hope this helps a little

  6. #6
    Member vishal's Avatar
    Join Date
    Jan 2003
    Location
    India
    Posts
    343

    Default

    Originally posted by jamesbond
    http://www.castaglia.org/proftpd/doc...WTO-Umask.html

    From what I read here you could set a second parameter for umask. The second parameter would determine the permissions of directories.

    Hope this helps a little
    Thanks for the link.

    Regards,
    rh_linuxion

    It is very simple to be Happy but it is very difficult to be Simple.

Similar Threads & Tags
Similar threads

  1. proftpd
    By cmdickey in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-20-2006, 03:57 PM
  2. proftpd
    By fusion in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 09-10-2004, 09:58 PM
  3. Replies: 0
    Last Post: 04-15-2004, 01:29 AM
  4. proftpd.conf (/etc/proftpd.conf) [0] is corrupt. Please have
    By big in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 10-29-2002, 01:32 PM
  5. ProFTPD
    By Stephen in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-07-2001, 11:55 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube