homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

Change default chmod permissions
Need to change default chmod permissions assigned on upload

 8:58 pm on Sep 22, 2005 (gmt 0)

Hi, all. Our network center just installed a new Linux/SuSE server running Apache/2.0.49. When I upload files to the new server, they are chmod 600 by default, and I have to change it to 644 in order for the files to be viewable by site visitors. This is becoming a hassle :-) Does anyone know how to change the default chmod to 644? Our server admin doesn't know how.




 11:57 pm on Sep 22, 2005 (gmt 0)

Hi and welcome to the Webmaster World!

Most FTP clients allow you to send a CHMOD command to change the permissions of a file.


 2:49 pm on Sep 23, 2005 (gmt 0)

Hi, txbakers. Thanks :-)

I know I can change it with my FTP client, and I do that. But it's becoming a hassle to have to remember to change it every time I upload a file, or group of files, sometimes into subfolders on the server. It's especially irritating since our old Solaris/Apache server didn't work this way :-) So I was hoping to find out how to change the permissions that are set by default when I upload new files.



 3:50 pm on Sep 23, 2005 (gmt 0)

It's a setting called umask, which should be in the configuration for the FTP server. This is from ProFTPD:

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

The umask 022 corresponds to a default chmod of 644 or 755.


 7:13 pm on Sep 23, 2005 (gmt 0)

mcavic, Thanks very much. I appreciate the help.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved