PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, March 15, 2022

[FIXED] Default permission when creating a folder

 March 15, 2022     apache, lamp, permissions, webserver     No comments   

Issue

I am trying to use umask to create default permission to directories that I create but it does not work. I want files created in FTP have automatically permission 777 (my server is running LAMP on CENTOS).

I tried umask 000 but always I create a folder it has permission 666 not 777.

How can I fix this?


Solution

If it is vsftpd, see if you have file_open_mode setting in vsftpd.conf. man vsftpd.conf says

file_open_mode
The permissions with which uploaded files are created. Umasks are applied on top of 
this value. You may wish to change to 0777 if you want uploaded files to be executable.
Default: 0666

(Ref: https://security.appspot.com/vsftpd/vsftpd_conf.html)



Answered By - nohup
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing