ubuntu server and samba
I am trying to set up a Ubuntu server 12.04 nas using samba file sharing. I first tried to set it up with webmin and when that didn't work, I tried to set it up manually using the vi editor modifing the /etc/samba/smb.conf. Both times the results were the same.
Over the network all users can open the share (empty) but cannot write to the share (permission denied). This is the same for both Linux and windows machines.
My smb.conf in part looks like:
[John]
writable = yes
invalid users = kid1 kid2 kid3
path = /SharedMedia/John
comment = John
valid users = john wife
browsable = yes
create mode = 777
directory mode = 777
[Public]
writable = yes
path = /SharedMedia/Public
comment = Public
valid users = john wife kid1 kid2 kid3 virtualbox
browsable = yes
create mode = 777
directory mode = 777
(users on the system include: john, wife, kid1 kid2 kid3 and virtualbox for virtual machine - names hidden for privacy)
All users exist as linux users and samba users and have the same password for both.
note: I never did set up samba groups as it did not appear to apply to my use. For example: all users have have their own share on the server but other users should not be allowed to access it. Therefore I did not set up groups because there were few shares that all users access.
I honestly cannot figure out what is holding me back. Thanks for your help.
server permissions samba users
add a comment |
I am trying to set up a Ubuntu server 12.04 nas using samba file sharing. I first tried to set it up with webmin and when that didn't work, I tried to set it up manually using the vi editor modifing the /etc/samba/smb.conf. Both times the results were the same.
Over the network all users can open the share (empty) but cannot write to the share (permission denied). This is the same for both Linux and windows machines.
My smb.conf in part looks like:
[John]
writable = yes
invalid users = kid1 kid2 kid3
path = /SharedMedia/John
comment = John
valid users = john wife
browsable = yes
create mode = 777
directory mode = 777
[Public]
writable = yes
path = /SharedMedia/Public
comment = Public
valid users = john wife kid1 kid2 kid3 virtualbox
browsable = yes
create mode = 777
directory mode = 777
(users on the system include: john, wife, kid1 kid2 kid3 and virtualbox for virtual machine - names hidden for privacy)
All users exist as linux users and samba users and have the same password for both.
note: I never did set up samba groups as it did not appear to apply to my use. For example: all users have have their own share on the server but other users should not be allowed to access it. Therefore I did not set up groups because there were few shares that all users access.
I honestly cannot figure out what is holding me back. Thanks for your help.
server permissions samba users
add a comment |
I am trying to set up a Ubuntu server 12.04 nas using samba file sharing. I first tried to set it up with webmin and when that didn't work, I tried to set it up manually using the vi editor modifing the /etc/samba/smb.conf. Both times the results were the same.
Over the network all users can open the share (empty) but cannot write to the share (permission denied). This is the same for both Linux and windows machines.
My smb.conf in part looks like:
[John]
writable = yes
invalid users = kid1 kid2 kid3
path = /SharedMedia/John
comment = John
valid users = john wife
browsable = yes
create mode = 777
directory mode = 777
[Public]
writable = yes
path = /SharedMedia/Public
comment = Public
valid users = john wife kid1 kid2 kid3 virtualbox
browsable = yes
create mode = 777
directory mode = 777
(users on the system include: john, wife, kid1 kid2 kid3 and virtualbox for virtual machine - names hidden for privacy)
All users exist as linux users and samba users and have the same password for both.
note: I never did set up samba groups as it did not appear to apply to my use. For example: all users have have their own share on the server but other users should not be allowed to access it. Therefore I did not set up groups because there were few shares that all users access.
I honestly cannot figure out what is holding me back. Thanks for your help.
server permissions samba users
I am trying to set up a Ubuntu server 12.04 nas using samba file sharing. I first tried to set it up with webmin and when that didn't work, I tried to set it up manually using the vi editor modifing the /etc/samba/smb.conf. Both times the results were the same.
Over the network all users can open the share (empty) but cannot write to the share (permission denied). This is the same for both Linux and windows machines.
My smb.conf in part looks like:
[John]
writable = yes
invalid users = kid1 kid2 kid3
path = /SharedMedia/John
comment = John
valid users = john wife
browsable = yes
create mode = 777
directory mode = 777
[Public]
writable = yes
path = /SharedMedia/Public
comment = Public
valid users = john wife kid1 kid2 kid3 virtualbox
browsable = yes
create mode = 777
directory mode = 777
(users on the system include: john, wife, kid1 kid2 kid3 and virtualbox for virtual machine - names hidden for privacy)
All users exist as linux users and samba users and have the same password for both.
note: I never did set up samba groups as it did not appear to apply to my use. For example: all users have have their own share on the server but other users should not be allowed to access it. Therefore I did not set up groups because there were few shares that all users access.
I honestly cannot figure out what is holding me back. Thanks for your help.
server permissions samba users
server permissions samba users
edited Mar 6 '14 at 0:36
Loopo
11316
11316
asked Mar 5 '14 at 23:55
user255190user255190
1116
1116
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
This may be due to the permissions/owner on the shared folder(s) themselves.
Try to log into the server as one of the users and write to the same directory.
Are the client machines asking for a password when you connect? If not, this could indicate that you are being connected as 'guest'.
This guide might help
I tried to login just now with two different accounts on two different computers, and there is still no happiness here. The windows machine did ask for user name and password (tried two different accounts) while the linux machine did not. Both computers said that I didn’t have permission to write to the share.
– user255190
Mar 6 '14 at 1:55
i meant use the server machine, either directly by using e.g.su john
in a terminal (Ctrl+alt+t) on the server machine, or using ssh from one of the client machines. Then go to john's shared directory and dotouch test
, or check the owner/permissions on the directory. On a public folder, the permissions will need to be read write for everyone.
– Loopo
Mar 6 '14 at 7:33
Yep. You are on to something. "cannot touch 'file1': Permission Denied". I will look into changing permissions on the linux side and then see what happens.
– user255190
Mar 6 '14 at 16:18
Thank you Loopo. That did the trick. I did "chown -R john /SharedMedia/John/" and now I can write to the folder over the network. I still have to figure out how to set ownership and permissions on other shared folders such as /SharedMedia/Photos/ where mom and dad can read and write but kids can only read. I guess samba can control that since everyone connects through the network. But would the linux machines follow samba permissions?
– user255190
Mar 6 '14 at 18:54
That's where groups come in, you could have a group adults that would have read/write access, make those users members of the group, usechgrp
on the directory to set the group, andchmod u+rw, g+rw, o-w
to allow others only read access. You should probably sync your linux/samba users once you're done
– Loopo
Mar 7 '14 at 2:49
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%2f430084%2fubuntu-server-and-samba%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
This may be due to the permissions/owner on the shared folder(s) themselves.
Try to log into the server as one of the users and write to the same directory.
Are the client machines asking for a password when you connect? If not, this could indicate that you are being connected as 'guest'.
This guide might help
I tried to login just now with two different accounts on two different computers, and there is still no happiness here. The windows machine did ask for user name and password (tried two different accounts) while the linux machine did not. Both computers said that I didn’t have permission to write to the share.
– user255190
Mar 6 '14 at 1:55
i meant use the server machine, either directly by using e.g.su john
in a terminal (Ctrl+alt+t) on the server machine, or using ssh from one of the client machines. Then go to john's shared directory and dotouch test
, or check the owner/permissions on the directory. On a public folder, the permissions will need to be read write for everyone.
– Loopo
Mar 6 '14 at 7:33
Yep. You are on to something. "cannot touch 'file1': Permission Denied". I will look into changing permissions on the linux side and then see what happens.
– user255190
Mar 6 '14 at 16:18
Thank you Loopo. That did the trick. I did "chown -R john /SharedMedia/John/" and now I can write to the folder over the network. I still have to figure out how to set ownership and permissions on other shared folders such as /SharedMedia/Photos/ where mom and dad can read and write but kids can only read. I guess samba can control that since everyone connects through the network. But would the linux machines follow samba permissions?
– user255190
Mar 6 '14 at 18:54
That's where groups come in, you could have a group adults that would have read/write access, make those users members of the group, usechgrp
on the directory to set the group, andchmod u+rw, g+rw, o-w
to allow others only read access. You should probably sync your linux/samba users once you're done
– Loopo
Mar 7 '14 at 2:49
add a comment |
This may be due to the permissions/owner on the shared folder(s) themselves.
Try to log into the server as one of the users and write to the same directory.
Are the client machines asking for a password when you connect? If not, this could indicate that you are being connected as 'guest'.
This guide might help
I tried to login just now with two different accounts on two different computers, and there is still no happiness here. The windows machine did ask for user name and password (tried two different accounts) while the linux machine did not. Both computers said that I didn’t have permission to write to the share.
– user255190
Mar 6 '14 at 1:55
i meant use the server machine, either directly by using e.g.su john
in a terminal (Ctrl+alt+t) on the server machine, or using ssh from one of the client machines. Then go to john's shared directory and dotouch test
, or check the owner/permissions on the directory. On a public folder, the permissions will need to be read write for everyone.
– Loopo
Mar 6 '14 at 7:33
Yep. You are on to something. "cannot touch 'file1': Permission Denied". I will look into changing permissions on the linux side and then see what happens.
– user255190
Mar 6 '14 at 16:18
Thank you Loopo. That did the trick. I did "chown -R john /SharedMedia/John/" and now I can write to the folder over the network. I still have to figure out how to set ownership and permissions on other shared folders such as /SharedMedia/Photos/ where mom and dad can read and write but kids can only read. I guess samba can control that since everyone connects through the network. But would the linux machines follow samba permissions?
– user255190
Mar 6 '14 at 18:54
That's where groups come in, you could have a group adults that would have read/write access, make those users members of the group, usechgrp
on the directory to set the group, andchmod u+rw, g+rw, o-w
to allow others only read access. You should probably sync your linux/samba users once you're done
– Loopo
Mar 7 '14 at 2:49
add a comment |
This may be due to the permissions/owner on the shared folder(s) themselves.
Try to log into the server as one of the users and write to the same directory.
Are the client machines asking for a password when you connect? If not, this could indicate that you are being connected as 'guest'.
This guide might help
This may be due to the permissions/owner on the shared folder(s) themselves.
Try to log into the server as one of the users and write to the same directory.
Are the client machines asking for a password when you connect? If not, this could indicate that you are being connected as 'guest'.
This guide might help
answered Mar 6 '14 at 0:34
LoopoLoopo
11316
11316
I tried to login just now with two different accounts on two different computers, and there is still no happiness here. The windows machine did ask for user name and password (tried two different accounts) while the linux machine did not. Both computers said that I didn’t have permission to write to the share.
– user255190
Mar 6 '14 at 1:55
i meant use the server machine, either directly by using e.g.su john
in a terminal (Ctrl+alt+t) on the server machine, or using ssh from one of the client machines. Then go to john's shared directory and dotouch test
, or check the owner/permissions on the directory. On a public folder, the permissions will need to be read write for everyone.
– Loopo
Mar 6 '14 at 7:33
Yep. You are on to something. "cannot touch 'file1': Permission Denied". I will look into changing permissions on the linux side and then see what happens.
– user255190
Mar 6 '14 at 16:18
Thank you Loopo. That did the trick. I did "chown -R john /SharedMedia/John/" and now I can write to the folder over the network. I still have to figure out how to set ownership and permissions on other shared folders such as /SharedMedia/Photos/ where mom and dad can read and write but kids can only read. I guess samba can control that since everyone connects through the network. But would the linux machines follow samba permissions?
– user255190
Mar 6 '14 at 18:54
That's where groups come in, you could have a group adults that would have read/write access, make those users members of the group, usechgrp
on the directory to set the group, andchmod u+rw, g+rw, o-w
to allow others only read access. You should probably sync your linux/samba users once you're done
– Loopo
Mar 7 '14 at 2:49
add a comment |
I tried to login just now with two different accounts on two different computers, and there is still no happiness here. The windows machine did ask for user name and password (tried two different accounts) while the linux machine did not. Both computers said that I didn’t have permission to write to the share.
– user255190
Mar 6 '14 at 1:55
i meant use the server machine, either directly by using e.g.su john
in a terminal (Ctrl+alt+t) on the server machine, or using ssh from one of the client machines. Then go to john's shared directory and dotouch test
, or check the owner/permissions on the directory. On a public folder, the permissions will need to be read write for everyone.
– Loopo
Mar 6 '14 at 7:33
Yep. You are on to something. "cannot touch 'file1': Permission Denied". I will look into changing permissions on the linux side and then see what happens.
– user255190
Mar 6 '14 at 16:18
Thank you Loopo. That did the trick. I did "chown -R john /SharedMedia/John/" and now I can write to the folder over the network. I still have to figure out how to set ownership and permissions on other shared folders such as /SharedMedia/Photos/ where mom and dad can read and write but kids can only read. I guess samba can control that since everyone connects through the network. But would the linux machines follow samba permissions?
– user255190
Mar 6 '14 at 18:54
That's where groups come in, you could have a group adults that would have read/write access, make those users members of the group, usechgrp
on the directory to set the group, andchmod u+rw, g+rw, o-w
to allow others only read access. You should probably sync your linux/samba users once you're done
– Loopo
Mar 7 '14 at 2:49
I tried to login just now with two different accounts on two different computers, and there is still no happiness here. The windows machine did ask for user name and password (tried two different accounts) while the linux machine did not. Both computers said that I didn’t have permission to write to the share.
– user255190
Mar 6 '14 at 1:55
I tried to login just now with two different accounts on two different computers, and there is still no happiness here. The windows machine did ask for user name and password (tried two different accounts) while the linux machine did not. Both computers said that I didn’t have permission to write to the share.
– user255190
Mar 6 '14 at 1:55
i meant use the server machine, either directly by using e.g.
su john
in a terminal (Ctrl+alt+t) on the server machine, or using ssh from one of the client machines. Then go to john's shared directory and do touch test
, or check the owner/permissions on the directory. On a public folder, the permissions will need to be read write for everyone.– Loopo
Mar 6 '14 at 7:33
i meant use the server machine, either directly by using e.g.
su john
in a terminal (Ctrl+alt+t) on the server machine, or using ssh from one of the client machines. Then go to john's shared directory and do touch test
, or check the owner/permissions on the directory. On a public folder, the permissions will need to be read write for everyone.– Loopo
Mar 6 '14 at 7:33
Yep. You are on to something. "cannot touch 'file1': Permission Denied". I will look into changing permissions on the linux side and then see what happens.
– user255190
Mar 6 '14 at 16:18
Yep. You are on to something. "cannot touch 'file1': Permission Denied". I will look into changing permissions on the linux side and then see what happens.
– user255190
Mar 6 '14 at 16:18
Thank you Loopo. That did the trick. I did "chown -R john /SharedMedia/John/" and now I can write to the folder over the network. I still have to figure out how to set ownership and permissions on other shared folders such as /SharedMedia/Photos/ where mom and dad can read and write but kids can only read. I guess samba can control that since everyone connects through the network. But would the linux machines follow samba permissions?
– user255190
Mar 6 '14 at 18:54
Thank you Loopo. That did the trick. I did "chown -R john /SharedMedia/John/" and now I can write to the folder over the network. I still have to figure out how to set ownership and permissions on other shared folders such as /SharedMedia/Photos/ where mom and dad can read and write but kids can only read. I guess samba can control that since everyone connects through the network. But would the linux machines follow samba permissions?
– user255190
Mar 6 '14 at 18:54
That's where groups come in, you could have a group adults that would have read/write access, make those users members of the group, use
chgrp
on the directory to set the group, and chmod u+rw, g+rw, o-w
to allow others only read access. You should probably sync your linux/samba users once you're done– Loopo
Mar 7 '14 at 2:49
That's where groups come in, you could have a group adults that would have read/write access, make those users members of the group, use
chgrp
on the directory to set the group, and chmod u+rw, g+rw, o-w
to allow others only read access. You should probably sync your linux/samba users once you're done– Loopo
Mar 7 '14 at 2:49
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.
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%2f430084%2fubuntu-server-and-samba%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