Setting umask for a user with no shell?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












How can I set the umask for the Apache user to have files default to -rwxrwx--- ?



I have an application that wants one directory to have either 0750 or 0770 permissions, which is great if it’s local, but if I try mount the directory on a CIFS share, chmod has no effect on the directory mount point permissions.



I’ve read that if the umask is set differently, it will mount properly - just am unsure how to do that.







share|improve this question
















  • 1




    You will need to set the umask for whatever software is running as the apache user (presumably Apache httpd, or something running thereunder?). Adding Windows sharing protocols compounds the troubles.
    – thrig
    Oct 23 '17 at 2:10










  • @thrig - the share I have available is presented as CIFS (by a *nix box somewhere) - NFS is not an option here
    – warren
    Oct 23 '17 at 12:09














up vote
0
down vote

favorite












How can I set the umask for the Apache user to have files default to -rwxrwx--- ?



I have an application that wants one directory to have either 0750 or 0770 permissions, which is great if it’s local, but if I try mount the directory on a CIFS share, chmod has no effect on the directory mount point permissions.



I’ve read that if the umask is set differently, it will mount properly - just am unsure how to do that.







share|improve this question
















  • 1




    You will need to set the umask for whatever software is running as the apache user (presumably Apache httpd, or something running thereunder?). Adding Windows sharing protocols compounds the troubles.
    – thrig
    Oct 23 '17 at 2:10










  • @thrig - the share I have available is presented as CIFS (by a *nix box somewhere) - NFS is not an option here
    – warren
    Oct 23 '17 at 12:09












up vote
0
down vote

favorite









up vote
0
down vote

favorite











How can I set the umask for the Apache user to have files default to -rwxrwx--- ?



I have an application that wants one directory to have either 0750 or 0770 permissions, which is great if it’s local, but if I try mount the directory on a CIFS share, chmod has no effect on the directory mount point permissions.



I’ve read that if the umask is set differently, it will mount properly - just am unsure how to do that.







share|improve this question












How can I set the umask for the Apache user to have files default to -rwxrwx--- ?



I have an application that wants one directory to have either 0750 or 0770 permissions, which is great if it’s local, but if I try mount the directory on a CIFS share, chmod has no effect on the directory mount point permissions.



I’ve read that if the umask is set differently, it will mount properly - just am unsure how to do that.









share|improve this question











share|improve this question




share|improve this question










asked Oct 22 '17 at 23:05









warren

6641723




6641723







  • 1




    You will need to set the umask for whatever software is running as the apache user (presumably Apache httpd, or something running thereunder?). Adding Windows sharing protocols compounds the troubles.
    – thrig
    Oct 23 '17 at 2:10










  • @thrig - the share I have available is presented as CIFS (by a *nix box somewhere) - NFS is not an option here
    – warren
    Oct 23 '17 at 12:09












  • 1




    You will need to set the umask for whatever software is running as the apache user (presumably Apache httpd, or something running thereunder?). Adding Windows sharing protocols compounds the troubles.
    – thrig
    Oct 23 '17 at 2:10










  • @thrig - the share I have available is presented as CIFS (by a *nix box somewhere) - NFS is not an option here
    – warren
    Oct 23 '17 at 12:09







1




1




You will need to set the umask for whatever software is running as the apache user (presumably Apache httpd, or something running thereunder?). Adding Windows sharing protocols compounds the troubles.
– thrig
Oct 23 '17 at 2:10




You will need to set the umask for whatever software is running as the apache user (presumably Apache httpd, or something running thereunder?). Adding Windows sharing protocols compounds the troubles.
– thrig
Oct 23 '17 at 2:10












@thrig - the share I have available is presented as CIFS (by a *nix box somewhere) - NFS is not an option here
– warren
Oct 23 '17 at 12:09




@thrig - the share I have available is presented as CIFS (by a *nix box somewhere) - NFS is not an option here
– warren
Oct 23 '17 at 12:09















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f399796%2fsetting-umask-for-a-user-with-no-shell%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f399796%2fsetting-umask-for-a-user-with-no-shell%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)