Cannot Modify / Delete files over samba share

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












1















I have a directory on my Linux machine that I want to share to my Windows machine. I want to be able to modify / delete these files from the Windows PC. I've installed and am using Samba to share the directory. I am able view the directory from windows, however I am unable to rename a file (modify) or delete a file. When I attempt to do so, I get an error saying: "You require permission from Unix Userroot to make changes to this file".



Here is my smb file (it's grown a bit messy):



[global]
unix charset = UTF-8
dos charset = CP932
workgroup = WORKGROUP
server string = Samba Server Version %v
security = SHARE
passdb backend = tdbsam
username map = /etc/samba/smbusers
hosts allow = 127., 10., 192.168., 172.
cups options = raw

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes

[VRL]
path = /opt/vmpro/VRL
writable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share modes = yes
readonly = no


smbusers



nobody=*


stat /opt/vmpro/VRL returns this:



 File: `/opt/vmpro/VRL'
Size: 819200 Blocks: 1608 IO Block: 4096 directory
Device: 803h/2051d Inode: 4989348 Links: 3
Access: (0777/drwxrwxrwx) Uid: ( 495/ vmpro) Gid: ( 490/ vmpro)
Access: 2017-01-20 17:13:52.000000000 -0500
Modify: 2017-01-20 17:14:00.000000000 -0500
Change: 2017-01-20 17:14:00.000000000 -0500


What am I doing wrong?



Edit: per request, here is the result of an ls of a file. Notice that I changed it's permissions as well, the result still not changing.



[root@000C290909A5 VRL]# ls -l /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
-rw-rw-r--. 1 vmpro vmpro 52122 Jan 19 10:13 /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
[root@000C290909A5 VRL]# chmod 0777 MSG366229159120586_192.168.80.29.wav
[root@000C290909A5 VRL]# ls -l /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
-rwxrwxrwx. 1 vmpro vmpro 52122 Jan 19 10:13 /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav









share|improve this question



















  • 1





    How about showing us ls -l /opt/vmpro/VRL/fileNotUpdatable? It would also be good to know if you can create new files in the share's root.

    – Julie Pelletier
    Jan 20 '17 at 22:30












  • @JuliePelletier I updated the question with the ls results. Also, I attempted to create a new text file via windows and that failed with, "You need permission to perform this action".

    – Richard
    Jan 20 '17 at 22:41











  • Does setsebool -P allow_smbd_anon_write=1 solve it?

    – Julie Pelletier
    Jan 20 '17 at 23:56











  • I've disabled selinux entirely, still no dice.

    – Richard
    Jan 21 '17 at 0:25











  • Can you create new files from Windows?

    – Julie Pelletier
    Jan 21 '17 at 0:29















1















I have a directory on my Linux machine that I want to share to my Windows machine. I want to be able to modify / delete these files from the Windows PC. I've installed and am using Samba to share the directory. I am able view the directory from windows, however I am unable to rename a file (modify) or delete a file. When I attempt to do so, I get an error saying: "You require permission from Unix Userroot to make changes to this file".



Here is my smb file (it's grown a bit messy):



[global]
unix charset = UTF-8
dos charset = CP932
workgroup = WORKGROUP
server string = Samba Server Version %v
security = SHARE
passdb backend = tdbsam
username map = /etc/samba/smbusers
hosts allow = 127., 10., 192.168., 172.
cups options = raw

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes

[VRL]
path = /opt/vmpro/VRL
writable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share modes = yes
readonly = no


smbusers



nobody=*


stat /opt/vmpro/VRL returns this:



 File: `/opt/vmpro/VRL'
Size: 819200 Blocks: 1608 IO Block: 4096 directory
Device: 803h/2051d Inode: 4989348 Links: 3
Access: (0777/drwxrwxrwx) Uid: ( 495/ vmpro) Gid: ( 490/ vmpro)
Access: 2017-01-20 17:13:52.000000000 -0500
Modify: 2017-01-20 17:14:00.000000000 -0500
Change: 2017-01-20 17:14:00.000000000 -0500


What am I doing wrong?



Edit: per request, here is the result of an ls of a file. Notice that I changed it's permissions as well, the result still not changing.



[root@000C290909A5 VRL]# ls -l /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
-rw-rw-r--. 1 vmpro vmpro 52122 Jan 19 10:13 /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
[root@000C290909A5 VRL]# chmod 0777 MSG366229159120586_192.168.80.29.wav
[root@000C290909A5 VRL]# ls -l /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
-rwxrwxrwx. 1 vmpro vmpro 52122 Jan 19 10:13 /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav









share|improve this question



















  • 1





    How about showing us ls -l /opt/vmpro/VRL/fileNotUpdatable? It would also be good to know if you can create new files in the share's root.

    – Julie Pelletier
    Jan 20 '17 at 22:30












  • @JuliePelletier I updated the question with the ls results. Also, I attempted to create a new text file via windows and that failed with, "You need permission to perform this action".

    – Richard
    Jan 20 '17 at 22:41











  • Does setsebool -P allow_smbd_anon_write=1 solve it?

    – Julie Pelletier
    Jan 20 '17 at 23:56











  • I've disabled selinux entirely, still no dice.

    – Richard
    Jan 21 '17 at 0:25











  • Can you create new files from Windows?

    – Julie Pelletier
    Jan 21 '17 at 0:29













1












1








1








I have a directory on my Linux machine that I want to share to my Windows machine. I want to be able to modify / delete these files from the Windows PC. I've installed and am using Samba to share the directory. I am able view the directory from windows, however I am unable to rename a file (modify) or delete a file. When I attempt to do so, I get an error saying: "You require permission from Unix Userroot to make changes to this file".



Here is my smb file (it's grown a bit messy):



[global]
unix charset = UTF-8
dos charset = CP932
workgroup = WORKGROUP
server string = Samba Server Version %v
security = SHARE
passdb backend = tdbsam
username map = /etc/samba/smbusers
hosts allow = 127., 10., 192.168., 172.
cups options = raw

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes

[VRL]
path = /opt/vmpro/VRL
writable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share modes = yes
readonly = no


smbusers



nobody=*


stat /opt/vmpro/VRL returns this:



 File: `/opt/vmpro/VRL'
Size: 819200 Blocks: 1608 IO Block: 4096 directory
Device: 803h/2051d Inode: 4989348 Links: 3
Access: (0777/drwxrwxrwx) Uid: ( 495/ vmpro) Gid: ( 490/ vmpro)
Access: 2017-01-20 17:13:52.000000000 -0500
Modify: 2017-01-20 17:14:00.000000000 -0500
Change: 2017-01-20 17:14:00.000000000 -0500


What am I doing wrong?



Edit: per request, here is the result of an ls of a file. Notice that I changed it's permissions as well, the result still not changing.



[root@000C290909A5 VRL]# ls -l /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
-rw-rw-r--. 1 vmpro vmpro 52122 Jan 19 10:13 /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
[root@000C290909A5 VRL]# chmod 0777 MSG366229159120586_192.168.80.29.wav
[root@000C290909A5 VRL]# ls -l /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
-rwxrwxrwx. 1 vmpro vmpro 52122 Jan 19 10:13 /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav









share|improve this question
















I have a directory on my Linux machine that I want to share to my Windows machine. I want to be able to modify / delete these files from the Windows PC. I've installed and am using Samba to share the directory. I am able view the directory from windows, however I am unable to rename a file (modify) or delete a file. When I attempt to do so, I get an error saying: "You require permission from Unix Userroot to make changes to this file".



Here is my smb file (it's grown a bit messy):



[global]
unix charset = UTF-8
dos charset = CP932
workgroup = WORKGROUP
server string = Samba Server Version %v
security = SHARE
passdb backend = tdbsam
username map = /etc/samba/smbusers
hosts allow = 127., 10., 192.168., 172.
cups options = raw

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes

[VRL]
path = /opt/vmpro/VRL
writable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share modes = yes
readonly = no


smbusers



nobody=*


stat /opt/vmpro/VRL returns this:



 File: `/opt/vmpro/VRL'
Size: 819200 Blocks: 1608 IO Block: 4096 directory
Device: 803h/2051d Inode: 4989348 Links: 3
Access: (0777/drwxrwxrwx) Uid: ( 495/ vmpro) Gid: ( 490/ vmpro)
Access: 2017-01-20 17:13:52.000000000 -0500
Modify: 2017-01-20 17:14:00.000000000 -0500
Change: 2017-01-20 17:14:00.000000000 -0500


What am I doing wrong?



Edit: per request, here is the result of an ls of a file. Notice that I changed it's permissions as well, the result still not changing.



[root@000C290909A5 VRL]# ls -l /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
-rw-rw-r--. 1 vmpro vmpro 52122 Jan 19 10:13 /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
[root@000C290909A5 VRL]# chmod 0777 MSG366229159120586_192.168.80.29.wav
[root@000C290909A5 VRL]# ls -l /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
-rwxrwxrwx. 1 vmpro vmpro 52122 Jan 19 10:13 /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav






linux permissions samba






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 20 '17 at 22:39







Richard

















asked Jan 20 '17 at 22:16









RichardRichard

113




113







  • 1





    How about showing us ls -l /opt/vmpro/VRL/fileNotUpdatable? It would also be good to know if you can create new files in the share's root.

    – Julie Pelletier
    Jan 20 '17 at 22:30












  • @JuliePelletier I updated the question with the ls results. Also, I attempted to create a new text file via windows and that failed with, "You need permission to perform this action".

    – Richard
    Jan 20 '17 at 22:41











  • Does setsebool -P allow_smbd_anon_write=1 solve it?

    – Julie Pelletier
    Jan 20 '17 at 23:56











  • I've disabled selinux entirely, still no dice.

    – Richard
    Jan 21 '17 at 0:25











  • Can you create new files from Windows?

    – Julie Pelletier
    Jan 21 '17 at 0:29












  • 1





    How about showing us ls -l /opt/vmpro/VRL/fileNotUpdatable? It would also be good to know if you can create new files in the share's root.

    – Julie Pelletier
    Jan 20 '17 at 22:30












  • @JuliePelletier I updated the question with the ls results. Also, I attempted to create a new text file via windows and that failed with, "You need permission to perform this action".

    – Richard
    Jan 20 '17 at 22:41











  • Does setsebool -P allow_smbd_anon_write=1 solve it?

    – Julie Pelletier
    Jan 20 '17 at 23:56











  • I've disabled selinux entirely, still no dice.

    – Richard
    Jan 21 '17 at 0:25











  • Can you create new files from Windows?

    – Julie Pelletier
    Jan 21 '17 at 0:29







1




1





How about showing us ls -l /opt/vmpro/VRL/fileNotUpdatable? It would also be good to know if you can create new files in the share's root.

– Julie Pelletier
Jan 20 '17 at 22:30






How about showing us ls -l /opt/vmpro/VRL/fileNotUpdatable? It would also be good to know if you can create new files in the share's root.

– Julie Pelletier
Jan 20 '17 at 22:30














@JuliePelletier I updated the question with the ls results. Also, I attempted to create a new text file via windows and that failed with, "You need permission to perform this action".

– Richard
Jan 20 '17 at 22:41





@JuliePelletier I updated the question with the ls results. Also, I attempted to create a new text file via windows and that failed with, "You need permission to perform this action".

– Richard
Jan 20 '17 at 22:41













Does setsebool -P allow_smbd_anon_write=1 solve it?

– Julie Pelletier
Jan 20 '17 at 23:56





Does setsebool -P allow_smbd_anon_write=1 solve it?

– Julie Pelletier
Jan 20 '17 at 23:56













I've disabled selinux entirely, still no dice.

– Richard
Jan 21 '17 at 0:25





I've disabled selinux entirely, still no dice.

– Richard
Jan 21 '17 at 0:25













Can you create new files from Windows?

– Julie Pelletier
Jan 21 '17 at 0:29





Can you create new files from Windows?

– Julie Pelletier
Jan 21 '17 at 0:29










1 Answer
1






active

oldest

votes


















0














See my smb.conf User can copy data/files but cant delete data/files... Any help...



[Software]
path = /home/samba/Software
valid users = @smbgrp
browsable =yes
writable = yes
guest ok = no
create mask = 0664
directory mask = 0775
hosts deny = ALL EXCEPT
-------------------------------------------------------
[Hardware]
path = /home/samba/Hardware
valid users = @smbgrp
browsable =yes
writable = yes
guest ok = no
create mask = 0644
directory mask = 0755
hosts deny = ALL EXCEPT
-------------------------------------------------------
[Application]
path = /home/samba/Application
valid users = @smbgrp
browsable =yes
writable = yes
guest ok = no
create mask = 0664
directory mask = 0775
hosts deny = ALL EXCEPT





share|improve this answer
























    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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/3.0/"u003ecc by-sa 3.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%2funix.stackexchange.com%2fquestions%2f338996%2fcannot-modify-delete-files-over-samba-share%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









    0














    See my smb.conf User can copy data/files but cant delete data/files... Any help...



    [Software]
    path = /home/samba/Software
    valid users = @smbgrp
    browsable =yes
    writable = yes
    guest ok = no
    create mask = 0664
    directory mask = 0775
    hosts deny = ALL EXCEPT
    -------------------------------------------------------
    [Hardware]
    path = /home/samba/Hardware
    valid users = @smbgrp
    browsable =yes
    writable = yes
    guest ok = no
    create mask = 0644
    directory mask = 0755
    hosts deny = ALL EXCEPT
    -------------------------------------------------------
    [Application]
    path = /home/samba/Application
    valid users = @smbgrp
    browsable =yes
    writable = yes
    guest ok = no
    create mask = 0664
    directory mask = 0775
    hosts deny = ALL EXCEPT





    share|improve this answer





























      0














      See my smb.conf User can copy data/files but cant delete data/files... Any help...



      [Software]
      path = /home/samba/Software
      valid users = @smbgrp
      browsable =yes
      writable = yes
      guest ok = no
      create mask = 0664
      directory mask = 0775
      hosts deny = ALL EXCEPT
      -------------------------------------------------------
      [Hardware]
      path = /home/samba/Hardware
      valid users = @smbgrp
      browsable =yes
      writable = yes
      guest ok = no
      create mask = 0644
      directory mask = 0755
      hosts deny = ALL EXCEPT
      -------------------------------------------------------
      [Application]
      path = /home/samba/Application
      valid users = @smbgrp
      browsable =yes
      writable = yes
      guest ok = no
      create mask = 0664
      directory mask = 0775
      hosts deny = ALL EXCEPT





      share|improve this answer



























        0












        0








        0







        See my smb.conf User can copy data/files but cant delete data/files... Any help...



        [Software]
        path = /home/samba/Software
        valid users = @smbgrp
        browsable =yes
        writable = yes
        guest ok = no
        create mask = 0664
        directory mask = 0775
        hosts deny = ALL EXCEPT
        -------------------------------------------------------
        [Hardware]
        path = /home/samba/Hardware
        valid users = @smbgrp
        browsable =yes
        writable = yes
        guest ok = no
        create mask = 0644
        directory mask = 0755
        hosts deny = ALL EXCEPT
        -------------------------------------------------------
        [Application]
        path = /home/samba/Application
        valid users = @smbgrp
        browsable =yes
        writable = yes
        guest ok = no
        create mask = 0664
        directory mask = 0775
        hosts deny = ALL EXCEPT





        share|improve this answer















        See my smb.conf User can copy data/files but cant delete data/files... Any help...



        [Software]
        path = /home/samba/Software
        valid users = @smbgrp
        browsable =yes
        writable = yes
        guest ok = no
        create mask = 0664
        directory mask = 0775
        hosts deny = ALL EXCEPT
        -------------------------------------------------------
        [Hardware]
        path = /home/samba/Hardware
        valid users = @smbgrp
        browsable =yes
        writable = yes
        guest ok = no
        create mask = 0644
        directory mask = 0755
        hosts deny = ALL EXCEPT
        -------------------------------------------------------
        [Application]
        path = /home/samba/Application
        valid users = @smbgrp
        browsable =yes
        writable = yes
        guest ok = no
        create mask = 0664
        directory mask = 0775
        hosts deny = ALL EXCEPT






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Aug 2 '17 at 12:22









        Archemar

        20.2k93772




        20.2k93772










        answered Aug 2 '17 at 9:39









        RickyRicky

        1




        1



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f338996%2fcannot-modify-delete-files-over-samba-share%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

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay