Results 1 to 3 of 3
A friend and I recently put together our first server. I've noticed that when I create a new PHP file, I have to manually change the file permissions from 600 ...
- 05-11-2010 #1Just Joined!
- Join Date
- Mar 2010
- Posts
- 9
Ubuntu server default new file permissions
A friend and I recently put together our first server. I've noticed that when I create a new PHP file, I have to manually change the file permissions from 600 to 775 for it to be publicly viewed.
How can I change it so that 775 is the default permission setting?
PS- I'm not an expert on permissions, but understand the concept. If it is set at 600 for a good reason, then I can leave it like that. Right now, it just seems to add an unnecessary set to my development.
Thanks!
- 05-11-2010 #2
check Setting the default file creation permissions : umask at
File Permissions Linux article
"When a file is created, its permissions are set by default depending on the umask setting. This value is usually set for all users in /etc/profile"
If that solves your question, read also about the sticky bit
Setting the SGID attribute on a directory : chmod g+s
"If the SGID (Set Group Identification) attribute is set on a directory, files created in that directory inherit its group ownership. If the SGID is not set the file's group ownership corresponds to the user's default group."
Hope it helps
Luis
- 06-30-2010 #3Just Joined!
- Join Date
- Mar 2010
- Posts
- 9
Found the umask setting, but he said that is only applies to file created on the server.
The problem that I am having is that when I upload new files via FTP, they are set at 600. Any idea?


Reply With Quote