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 User\root 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
  • 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
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.