Cannot Modify / Delete files over samba shareVirtualbox: Find Windows host DNS name on Debian guestUnable to...
Why does Linux list NVMe drives as /dev/nvme0 instead of /dev/sda?
Count All Possible Unique Combinations of Letters in a Word
Has there been any indication at all that further negotiation between the UK and EU is possible?
Greeting with "Ho"
Is a single radon-daughter atom in air a solid?
How to model a twisted cylinder like this
How would modern naval warfare have to have developed differently for battleships to still be relevant in the 21st century?
How many people are necessary to maintain modern civilisation?
Can there be an UN resolution to remove a country from the UNSC?
How does a blind passenger not die, if driver becomes unconscious
Output of "${OSTYPE:6}" on old releases of Mac OS X
Is this proposal by U.S. presidential candidate Pete Buttigieg to change the composition of the Supreme Court constitutional?
How to make clear to people I don't want to answer their "Where are you from?" question?
Can Ogre clerics use Purify Food and Drink on humanoid characters?
Are all Ringwraiths called Nazgûl in LotR?
Why don't countries like Japan just print more money?
Trainee keeps missing deadlines for independent learning
How do I turn off a repeating trade?
Cut the gold chain
Why do some professors with PhDs leave their professorships to teach high school?
Why is it recommended to mix yogurt starter with a small amount of milk before adding to the entire batch?
Inaccessible base class despite friendship
Should developer taking test phones home or put in office?
Who are the remaining King/Queenslayers?
Cannot Modify / Delete files over samba share
Virtualbox: Find Windows host DNS name on Debian guestUnable to access SAMBA Share From Windowssamba share subdirectory prevent rename/delete operationWhy can't root delete a file?Files created on a Samba share cannot be modified by the same userDo I format the zfs file-system, or just mount and share?Permissions of subdirectories on Samba“Read-only file system error” on Samba share, alternative share with identical options working (Linux client)Modify files between different owners/users; Sambasamba print$ share won't allow driver upload from Windows machine
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
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
bumped to the homepage by Community♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
|
show 2 more comments
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
bumped to the homepage by Community♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
How about showing usls -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
Doessetsebool -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
|
show 2 more comments
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
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
linux permissions samba
edited Jan 20 '17 at 22:39
Richard
asked Jan 20 '17 at 22:16
RichardRichard
113
113
bumped to the homepage by Community♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
How about showing usls -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
Doessetsebool -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
|
show 2 more comments
1
How about showing usls -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
Doessetsebool -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
|
show 2 more comments
1 Answer
1
active
oldest
votes
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
edited Aug 2 '17 at 12:22
Archemar
21k93975
21k93975
answered Aug 2 '17 at 9:39
RickyRicky
1
1
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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