Having to chmod my samba shares to 0777 feels wrong just to get them to be writeable. Is this really necessary?Samba needs additional restart on reboot?I managed to set up a samba file server, but have to use gksudo to add or remove files!Samba shares not accessible from Windows 8.1 with Ubuntu 14.04 LTSWindows7 machine cannot access Linux share folders via Samba, help pleaseIssues with Samba Connection“Access denied” writing to samba share on Lubuntu (not all folders)Samba share quit on me today

Can airpod with wrong spelling on the case be original?

How can a software developer best volunteer to help childhood cancer research?

If thermodynamics says entropy always increases, how can the universe end in heat death?

What is the meaning of "wiped my face with a planet"?

What was this pickled vegetable which I was served at a middle eastern restaurant?

Configuring iPad's to not require passwords routinely

Germany's Ladenschlussgesetz in comparison to a debatable law in Israel

How to add new line between `ls -l` output

Harmonic sums and elementary number theory

Why are the Londoners so excited in the hunt without feeling the horror of war?

Huygens Lander: Why The Short Battery Life?

Is it acceptable to have a fraction in an eigenvector?

How do pilots avoid thunderstorms at night over the pacific en route to Australia where there is no radar? And what if a large front develops?

What are pros and cons around banning castling?

A new way of approaching the pole of the Riemann zeta function - and a new conjectured formula

Purpose of the languages selector in the Python Console

Is there a difference between downloading / installing a list of packages and downloading each packge by its own?

Why aren't there attempts to evolve classical musical instruments so that they're easier to play?

How to add RSS feed from feedburner.com to Thunderbird

Does saddle height needs to be changed when crank length changes?

How to dynamically select a country on a map using the cursor

What is the purpose of the Dash 8’s “TOUCHED RUNWAY” warning light?

How to verify if router firmware is legitimate

What can blockchain do that normal databases systems won't?



Having to chmod my samba shares to 0777 feels wrong just to get them to be writeable. Is this really necessary?


Samba needs additional restart on reboot?I managed to set up a samba file server, but have to use gksudo to add or remove files!Samba shares not accessible from Windows 8.1 with Ubuntu 14.04 LTSWindows7 machine cannot access Linux share folders via Samba, help pleaseIssues with Samba Connection“Access denied” writing to samba share on Lubuntu (not all folders)Samba share quit on me today






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









3


















Since setting up my samba shares I have been unable to write to either of them. My config:



[minecraft]
path = /opt/minecraft
writeable = yes
browseable = yes
read only = no
guest ok = yes
create mask = 0777

[www]
path = /var/www
writeable = yes
read only = no
browseable = yes
guest ok = yes
create mask = 0777


I am unable however to write to either of these shares from a Windows machine. I have the folders themselves (and all subfolders) at 755, but still nothing.



The only thing that has allowed me to get the shares to be writeable is making them and their subfolders 777 and that just feels wrong.



Am I missing something?










share|improve this question

























  • Have you tried forcing the user to be the one that owns the directory? force user = [owner]? Probably not elegant but it seems to work. You might be able to do it via a group as well, but I quit experimenting once I got it to work.

    – Organic Marble
    Sep 24 at 21:05












  • I'll test that out. I should have kept track of this, but what should the permissions of files/folders be. I just changed both folders recursively to 777 because I needed it to work...

    – S16
    Sep 25 at 0:34











  • Looks like mine are 750. I have force user = the owner and force group = the owner's group. I also have a valid users = [] [] listing the people allowed to access it. This seems to let the people in the valid users line access the directory but everything they do is as if they were the owner.

    – Organic Marble
    Sep 25 at 1:32












  • Perhaps my pathlld tool might help. github.com/waltinator/pathlld.git - Bash script to answer "Why can't I read/write that file?".

    – waltinator
    Sep 25 at 5:32











  • Your force user and force group parameters did the trick. Make it an actual answer and I'll select it. Cheers.

    – S16
    Sep 25 at 5:54

















3


















Since setting up my samba shares I have been unable to write to either of them. My config:



[minecraft]
path = /opt/minecraft
writeable = yes
browseable = yes
read only = no
guest ok = yes
create mask = 0777

[www]
path = /var/www
writeable = yes
read only = no
browseable = yes
guest ok = yes
create mask = 0777


I am unable however to write to either of these shares from a Windows machine. I have the folders themselves (and all subfolders) at 755, but still nothing.



The only thing that has allowed me to get the shares to be writeable is making them and their subfolders 777 and that just feels wrong.



Am I missing something?










share|improve this question

























  • Have you tried forcing the user to be the one that owns the directory? force user = [owner]? Probably not elegant but it seems to work. You might be able to do it via a group as well, but I quit experimenting once I got it to work.

    – Organic Marble
    Sep 24 at 21:05












  • I'll test that out. I should have kept track of this, but what should the permissions of files/folders be. I just changed both folders recursively to 777 because I needed it to work...

    – S16
    Sep 25 at 0:34











  • Looks like mine are 750. I have force user = the owner and force group = the owner's group. I also have a valid users = [] [] listing the people allowed to access it. This seems to let the people in the valid users line access the directory but everything they do is as if they were the owner.

    – Organic Marble
    Sep 25 at 1:32












  • Perhaps my pathlld tool might help. github.com/waltinator/pathlld.git - Bash script to answer "Why can't I read/write that file?".

    – waltinator
    Sep 25 at 5:32











  • Your force user and force group parameters did the trick. Make it an actual answer and I'll select it. Cheers.

    – S16
    Sep 25 at 5:54













3













3









3


0






Since setting up my samba shares I have been unable to write to either of them. My config:



[minecraft]
path = /opt/minecraft
writeable = yes
browseable = yes
read only = no
guest ok = yes
create mask = 0777

[www]
path = /var/www
writeable = yes
read only = no
browseable = yes
guest ok = yes
create mask = 0777


I am unable however to write to either of these shares from a Windows machine. I have the folders themselves (and all subfolders) at 755, but still nothing.



The only thing that has allowed me to get the shares to be writeable is making them and their subfolders 777 and that just feels wrong.



Am I missing something?










share|improve this question














Since setting up my samba shares I have been unable to write to either of them. My config:



[minecraft]
path = /opt/minecraft
writeable = yes
browseable = yes
read only = no
guest ok = yes
create mask = 0777

[www]
path = /var/www
writeable = yes
read only = no
browseable = yes
guest ok = yes
create mask = 0777


I am unable however to write to either of these shares from a Windows machine. I have the folders themselves (and all subfolders) at 755, but still nothing.



The only thing that has allowed me to get the shares to be writeable is making them and their subfolders 777 and that just feels wrong.



Am I missing something?







samba






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 24 at 19:21









S16S16

1434 bronze badges




1434 bronze badges















  • Have you tried forcing the user to be the one that owns the directory? force user = [owner]? Probably not elegant but it seems to work. You might be able to do it via a group as well, but I quit experimenting once I got it to work.

    – Organic Marble
    Sep 24 at 21:05












  • I'll test that out. I should have kept track of this, but what should the permissions of files/folders be. I just changed both folders recursively to 777 because I needed it to work...

    – S16
    Sep 25 at 0:34











  • Looks like mine are 750. I have force user = the owner and force group = the owner's group. I also have a valid users = [] [] listing the people allowed to access it. This seems to let the people in the valid users line access the directory but everything they do is as if they were the owner.

    – Organic Marble
    Sep 25 at 1:32












  • Perhaps my pathlld tool might help. github.com/waltinator/pathlld.git - Bash script to answer "Why can't I read/write that file?".

    – waltinator
    Sep 25 at 5:32











  • Your force user and force group parameters did the trick. Make it an actual answer and I'll select it. Cheers.

    – S16
    Sep 25 at 5:54

















  • Have you tried forcing the user to be the one that owns the directory? force user = [owner]? Probably not elegant but it seems to work. You might be able to do it via a group as well, but I quit experimenting once I got it to work.

    – Organic Marble
    Sep 24 at 21:05












  • I'll test that out. I should have kept track of this, but what should the permissions of files/folders be. I just changed both folders recursively to 777 because I needed it to work...

    – S16
    Sep 25 at 0:34











  • Looks like mine are 750. I have force user = the owner and force group = the owner's group. I also have a valid users = [] [] listing the people allowed to access it. This seems to let the people in the valid users line access the directory but everything they do is as if they were the owner.

    – Organic Marble
    Sep 25 at 1:32












  • Perhaps my pathlld tool might help. github.com/waltinator/pathlld.git - Bash script to answer "Why can't I read/write that file?".

    – waltinator
    Sep 25 at 5:32











  • Your force user and force group parameters did the trick. Make it an actual answer and I'll select it. Cheers.

    – S16
    Sep 25 at 5:54
















Have you tried forcing the user to be the one that owns the directory? force user = [owner]? Probably not elegant but it seems to work. You might be able to do it via a group as well, but I quit experimenting once I got it to work.

– Organic Marble
Sep 24 at 21:05






Have you tried forcing the user to be the one that owns the directory? force user = [owner]? Probably not elegant but it seems to work. You might be able to do it via a group as well, but I quit experimenting once I got it to work.

– Organic Marble
Sep 24 at 21:05














I'll test that out. I should have kept track of this, but what should the permissions of files/folders be. I just changed both folders recursively to 777 because I needed it to work...

– S16
Sep 25 at 0:34





I'll test that out. I should have kept track of this, but what should the permissions of files/folders be. I just changed both folders recursively to 777 because I needed it to work...

– S16
Sep 25 at 0:34













Looks like mine are 750. I have force user = the owner and force group = the owner's group. I also have a valid users = [] [] listing the people allowed to access it. This seems to let the people in the valid users line access the directory but everything they do is as if they were the owner.

– Organic Marble
Sep 25 at 1:32






Looks like mine are 750. I have force user = the owner and force group = the owner's group. I also have a valid users = [] [] listing the people allowed to access it. This seems to let the people in the valid users line access the directory but everything they do is as if they were the owner.

– Organic Marble
Sep 25 at 1:32














Perhaps my pathlld tool might help. github.com/waltinator/pathlld.git - Bash script to answer "Why can't I read/write that file?".

– waltinator
Sep 25 at 5:32





Perhaps my pathlld tool might help. github.com/waltinator/pathlld.git - Bash script to answer "Why can't I read/write that file?".

– waltinator
Sep 25 at 5:32













Your force user and force group parameters did the trick. Make it an actual answer and I'll select it. Cheers.

– S16
Sep 25 at 5:54





Your force user and force group parameters did the trick. Make it an actual answer and I'll select it. Cheers.

– S16
Sep 25 at 5:54










1 Answer
1






active

oldest

votes


















1



















The solution ended up being to add force user = www-data






share|improve this answer


























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1176411%2fhaving-to-chmod-my-samba-shares-to-0777-feels-wrong-just-to-get-them-to-be-write%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown


























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1



















    The solution ended up being to add force user = www-data






    share|improve this answer





























      1



















      The solution ended up being to add force user = www-data






      share|improve this answer



























        1















        1











        1









        The solution ended up being to add force user = www-data






        share|improve this answer














        The solution ended up being to add force user = www-data







        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered Sep 26 at 0:34









        S16S16

        1434 bronze badges




        1434 bronze badges































            draft saved

            draft discarded















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1176411%2fhaving-to-chmod-my-samba-shares-to-0777-feels-wrong-just-to-get-them-to-be-write%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown









            Popular posts from this blog

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?