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!!!!![]()
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.
umask is set to 022 by default, causing created files to have permissions 644 and directories to have permissions 755.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!!!!![]()
I'm not sure if you can treat directories different from files though.
Last edited by jamesbond; 05-05-2003 at 06:27 AM.
Thanks for the reply.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)
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.
Now that I think of it,Originally posted by vishal
like i'll specify the umask in the proftpd.conf
<Directory ~main777>
umask 000
</directory>
![]()
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.
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.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![]()
Regards,
rh_linuxion
It is very simple to be Happy but it is very difficult to be Simple.