Samba file share permissions issue
I have a quick question in regards to Samba share. I have recently built an Ubuntu server and moved all my previous Windows NTFS HDD into the server. My goal is to share all 4 HDD to utilize on my other Windows machines and to share through Plex media server. I have shared the HDD through Ubuntu but I can't change permissions and even when trying to manually configure through smb.conf I can't get the permissions to successfully change. I have attached what I have configured in the smb.conf. Any help would be greatly appreciated. Here is the rest of the smb.conf for reference.
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
wins support = yes
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
pam password change = yes
map to guest = bad user
#======================= Share Definitions =======================
realm = localdomain
server role = domain controller
server services = +smb -s3fs
dcerpc endpoint servers = -winreg -srvsvc
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
# Ross's Shares
[share]
comment = home
path = /home/roce/Downloads
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDB - Data
path = /home/roce/Data
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDC - Movies
path = /home/roce/Movies
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDD - TV Shows
path = /home/roce/TV Shows
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDE
path = /home/roce/Data
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[sysvol]
path = /var/lib/samba/sysvol
read only = no
[netlogon]
path = /var/lib/samba/sysvol/localdomain/scripts
read only = no
permissions samba file-sharing
add a comment |
I have a quick question in regards to Samba share. I have recently built an Ubuntu server and moved all my previous Windows NTFS HDD into the server. My goal is to share all 4 HDD to utilize on my other Windows machines and to share through Plex media server. I have shared the HDD through Ubuntu but I can't change permissions and even when trying to manually configure through smb.conf I can't get the permissions to successfully change. I have attached what I have configured in the smb.conf. Any help would be greatly appreciated. Here is the rest of the smb.conf for reference.
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
wins support = yes
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
pam password change = yes
map to guest = bad user
#======================= Share Definitions =======================
realm = localdomain
server role = domain controller
server services = +smb -s3fs
dcerpc endpoint servers = -winreg -srvsvc
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
# Ross's Shares
[share]
comment = home
path = /home/roce/Downloads
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDB - Data
path = /home/roce/Data
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDC - Movies
path = /home/roce/Movies
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDD - TV Shows
path = /home/roce/TV Shows
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDE
path = /home/roce/Data
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[sysvol]
path = /var/lib/samba/sysvol
read only = no
[netlogon]
path = /var/lib/samba/sysvol/localdomain/scripts
read only = no
permissions samba file-sharing
I don't know if this will solve your problems, but it looks like you have given most of your shares the same name "share" I also find after adding/changing SAMBA shares I have to restart the smbd service and the nmbd service before they will show up and work properly. Of course, a reboot will also restart smbd and nmbd, but that's the painful slow way.
– SunnyDaze
May 30 '18 at 20:35
add a comment |
I have a quick question in regards to Samba share. I have recently built an Ubuntu server and moved all my previous Windows NTFS HDD into the server. My goal is to share all 4 HDD to utilize on my other Windows machines and to share through Plex media server. I have shared the HDD through Ubuntu but I can't change permissions and even when trying to manually configure through smb.conf I can't get the permissions to successfully change. I have attached what I have configured in the smb.conf. Any help would be greatly appreciated. Here is the rest of the smb.conf for reference.
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
wins support = yes
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
pam password change = yes
map to guest = bad user
#======================= Share Definitions =======================
realm = localdomain
server role = domain controller
server services = +smb -s3fs
dcerpc endpoint servers = -winreg -srvsvc
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
# Ross's Shares
[share]
comment = home
path = /home/roce/Downloads
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDB - Data
path = /home/roce/Data
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDC - Movies
path = /home/roce/Movies
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDD - TV Shows
path = /home/roce/TV Shows
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDE
path = /home/roce/Data
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[sysvol]
path = /var/lib/samba/sysvol
read only = no
[netlogon]
path = /var/lib/samba/sysvol/localdomain/scripts
read only = no
permissions samba file-sharing
I have a quick question in regards to Samba share. I have recently built an Ubuntu server and moved all my previous Windows NTFS HDD into the server. My goal is to share all 4 HDD to utilize on my other Windows machines and to share through Plex media server. I have shared the HDD through Ubuntu but I can't change permissions and even when trying to manually configure through smb.conf I can't get the permissions to successfully change. I have attached what I have configured in the smb.conf. Any help would be greatly appreciated. Here is the rest of the smb.conf for reference.
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
wins support = yes
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
pam password change = yes
map to guest = bad user
#======================= Share Definitions =======================
realm = localdomain
server role = domain controller
server services = +smb -s3fs
dcerpc endpoint servers = -winreg -srvsvc
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
# Ross's Shares
[share]
comment = home
path = /home/roce/Downloads
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDB - Data
path = /home/roce/Data
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDC - Movies
path = /home/roce/Movies
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDD - TV Shows
path = /home/roce/TV Shows
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[share]
comment = SDE
path = /home/roce/Data
browsable = yes
guest ok = yes
read only = no
create mask = 0777
[sysvol]
path = /var/lib/samba/sysvol
read only = no
[netlogon]
path = /var/lib/samba/sysvol/localdomain/scripts
read only = no
permissions samba file-sharing
permissions samba file-sharing
edited Jan 10 '14 at 23:03
asked Jan 10 '14 at 3:44
Roce
1113
1113
I don't know if this will solve your problems, but it looks like you have given most of your shares the same name "share" I also find after adding/changing SAMBA shares I have to restart the smbd service and the nmbd service before they will show up and work properly. Of course, a reboot will also restart smbd and nmbd, but that's the painful slow way.
– SunnyDaze
May 30 '18 at 20:35
add a comment |
I don't know if this will solve your problems, but it looks like you have given most of your shares the same name "share" I also find after adding/changing SAMBA shares I have to restart the smbd service and the nmbd service before they will show up and work properly. Of course, a reboot will also restart smbd and nmbd, but that's the painful slow way.
– SunnyDaze
May 30 '18 at 20:35
I don't know if this will solve your problems, but it looks like you have given most of your shares the same name "share" I also find after adding/changing SAMBA shares I have to restart the smbd service and the nmbd service before they will show up and work properly. Of course, a reboot will also restart smbd and nmbd, but that's the painful slow way.
– SunnyDaze
May 30 '18 at 20:35
I don't know if this will solve your problems, but it looks like you have given most of your shares the same name "share" I also find after adding/changing SAMBA shares I have to restart the smbd service and the nmbd service before they will show up and work properly. Of course, a reboot will also restart smbd and nmbd, but that's the painful slow way.
– SunnyDaze
May 30 '18 at 20:35
add a comment |
1 Answer
1
active
oldest
votes
Your file system permissions need to allow access as well (system > samba). For NTFS, the permissions are determined by the way you mount it. Try:
sudo umount /desired/path
sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000,exec /dev/desired/path /mnt/desired/path
From the mount man page: "By default, the files are owned by root and not readable by somebody else." You could also try ntfs3g: http://manpages.ubuntu.com/manpages/oneiric/man8/ntfs-3g.8.html#contenttoc, but the best option might be to modify your fstab using the permissions option:
sudo umount /desired/path
sudo blkid
sudo gedit /etc/fstab
The blkid command is to find the partition UUID. Edit the entry in fstab like this:
# change the "UUID" to your partition UUID
UUID=12102C02102CEB83 /media/windows ntfs-3g auto,users,permissions 0 0
Lastly, make a mount point and mount the external hard drive:
sudo mkdir /media/windows
mount /media/windows
The "auto" option will automatically mount the partition when you boot, and the "users" option will allow users to mount and umount. If it were not an NTFS drive, you could try this from terminal:
sudo chmod -R 775 /desired/path
Credits: How do I use 'chmod' on an NTFS (or FAT32) partition?
but I was under the impression you can't use chmod for NTFS, no?
– Roce
Jan 12 '14 at 14:28
You are correct, and I've corrected my answer. I didn't notice you were using ntfs for the hard drives.
– conman253
Jan 13 '14 at 22:41
add a comment |
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/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%2faskubuntu.com%2fquestions%2f403252%2fsamba-file-share-permissions-issue%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
Your file system permissions need to allow access as well (system > samba). For NTFS, the permissions are determined by the way you mount it. Try:
sudo umount /desired/path
sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000,exec /dev/desired/path /mnt/desired/path
From the mount man page: "By default, the files are owned by root and not readable by somebody else." You could also try ntfs3g: http://manpages.ubuntu.com/manpages/oneiric/man8/ntfs-3g.8.html#contenttoc, but the best option might be to modify your fstab using the permissions option:
sudo umount /desired/path
sudo blkid
sudo gedit /etc/fstab
The blkid command is to find the partition UUID. Edit the entry in fstab like this:
# change the "UUID" to your partition UUID
UUID=12102C02102CEB83 /media/windows ntfs-3g auto,users,permissions 0 0
Lastly, make a mount point and mount the external hard drive:
sudo mkdir /media/windows
mount /media/windows
The "auto" option will automatically mount the partition when you boot, and the "users" option will allow users to mount and umount. If it were not an NTFS drive, you could try this from terminal:
sudo chmod -R 775 /desired/path
Credits: How do I use 'chmod' on an NTFS (or FAT32) partition?
but I was under the impression you can't use chmod for NTFS, no?
– Roce
Jan 12 '14 at 14:28
You are correct, and I've corrected my answer. I didn't notice you were using ntfs for the hard drives.
– conman253
Jan 13 '14 at 22:41
add a comment |
Your file system permissions need to allow access as well (system > samba). For NTFS, the permissions are determined by the way you mount it. Try:
sudo umount /desired/path
sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000,exec /dev/desired/path /mnt/desired/path
From the mount man page: "By default, the files are owned by root and not readable by somebody else." You could also try ntfs3g: http://manpages.ubuntu.com/manpages/oneiric/man8/ntfs-3g.8.html#contenttoc, but the best option might be to modify your fstab using the permissions option:
sudo umount /desired/path
sudo blkid
sudo gedit /etc/fstab
The blkid command is to find the partition UUID. Edit the entry in fstab like this:
# change the "UUID" to your partition UUID
UUID=12102C02102CEB83 /media/windows ntfs-3g auto,users,permissions 0 0
Lastly, make a mount point and mount the external hard drive:
sudo mkdir /media/windows
mount /media/windows
The "auto" option will automatically mount the partition when you boot, and the "users" option will allow users to mount and umount. If it were not an NTFS drive, you could try this from terminal:
sudo chmod -R 775 /desired/path
Credits: How do I use 'chmod' on an NTFS (or FAT32) partition?
but I was under the impression you can't use chmod for NTFS, no?
– Roce
Jan 12 '14 at 14:28
You are correct, and I've corrected my answer. I didn't notice you were using ntfs for the hard drives.
– conman253
Jan 13 '14 at 22:41
add a comment |
Your file system permissions need to allow access as well (system > samba). For NTFS, the permissions are determined by the way you mount it. Try:
sudo umount /desired/path
sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000,exec /dev/desired/path /mnt/desired/path
From the mount man page: "By default, the files are owned by root and not readable by somebody else." You could also try ntfs3g: http://manpages.ubuntu.com/manpages/oneiric/man8/ntfs-3g.8.html#contenttoc, but the best option might be to modify your fstab using the permissions option:
sudo umount /desired/path
sudo blkid
sudo gedit /etc/fstab
The blkid command is to find the partition UUID. Edit the entry in fstab like this:
# change the "UUID" to your partition UUID
UUID=12102C02102CEB83 /media/windows ntfs-3g auto,users,permissions 0 0
Lastly, make a mount point and mount the external hard drive:
sudo mkdir /media/windows
mount /media/windows
The "auto" option will automatically mount the partition when you boot, and the "users" option will allow users to mount and umount. If it were not an NTFS drive, you could try this from terminal:
sudo chmod -R 775 /desired/path
Credits: How do I use 'chmod' on an NTFS (or FAT32) partition?
Your file system permissions need to allow access as well (system > samba). For NTFS, the permissions are determined by the way you mount it. Try:
sudo umount /desired/path
sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000,exec /dev/desired/path /mnt/desired/path
From the mount man page: "By default, the files are owned by root and not readable by somebody else." You could also try ntfs3g: http://manpages.ubuntu.com/manpages/oneiric/man8/ntfs-3g.8.html#contenttoc, but the best option might be to modify your fstab using the permissions option:
sudo umount /desired/path
sudo blkid
sudo gedit /etc/fstab
The blkid command is to find the partition UUID. Edit the entry in fstab like this:
# change the "UUID" to your partition UUID
UUID=12102C02102CEB83 /media/windows ntfs-3g auto,users,permissions 0 0
Lastly, make a mount point and mount the external hard drive:
sudo mkdir /media/windows
mount /media/windows
The "auto" option will automatically mount the partition when you boot, and the "users" option will allow users to mount and umount. If it were not an NTFS drive, you could try this from terminal:
sudo chmod -R 775 /desired/path
Credits: How do I use 'chmod' on an NTFS (or FAT32) partition?
edited Apr 13 '17 at 12:24
Community♦
1
1
answered Jan 10 '14 at 23:29
conman253
916520
916520
but I was under the impression you can't use chmod for NTFS, no?
– Roce
Jan 12 '14 at 14:28
You are correct, and I've corrected my answer. I didn't notice you were using ntfs for the hard drives.
– conman253
Jan 13 '14 at 22:41
add a comment |
but I was under the impression you can't use chmod for NTFS, no?
– Roce
Jan 12 '14 at 14:28
You are correct, and I've corrected my answer. I didn't notice you were using ntfs for the hard drives.
– conman253
Jan 13 '14 at 22:41
but I was under the impression you can't use chmod for NTFS, no?
– Roce
Jan 12 '14 at 14:28
but I was under the impression you can't use chmod for NTFS, no?
– Roce
Jan 12 '14 at 14:28
You are correct, and I've corrected my answer. I didn't notice you were using ntfs for the hard drives.
– conman253
Jan 13 '14 at 22:41
You are correct, and I've corrected my answer. I didn't notice you were using ntfs for the hard drives.
– conman253
Jan 13 '14 at 22:41
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2faskubuntu.com%2fquestions%2f403252%2fsamba-file-share-permissions-issue%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
I don't know if this will solve your problems, but it looks like you have given most of your shares the same name "share" I also find after adding/changing SAMBA shares I have to restart the smbd service and the nmbd service before they will show up and work properly. Of course, a reboot will also restart smbd and nmbd, but that's the painful slow way.
– SunnyDaze
May 30 '18 at 20:35