Cannot modify files hosted on raspi on other computers in the network
I'm having a weird issue with my pi. Pi is set up as SMB host, hosting music files for access around the house. I can't modify the files from any of the other computers though, except with sudo.
I have set all permissions recursively on the whole music collection to 0777.
My smb.conf share is set up thus:
[share]
Comment = pi shared folder
Path =/mnt/share
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0777
directory mask = 0777
public = yes
Guest ok = yes
create mask = 0777
If I need to edit a tag, or rename a file, I navigate either in puddletag or nautilus to the file in question, and when I try to edit I get a permission error. If I do either of these things with sudo, however, I can edit freely.
Doing my music maintenance as elevated user is obviously an ok workaround, but a bit annoying. Does anyone know what I've done wrong?
P.S. I'm no pro at this stuff, if I've missed any key info please let me know and I will supply it.
P.P.S The drive I'm sharing is formatted as ext4.
networking raspberry-pi samba
New contributor
add a comment |
I'm having a weird issue with my pi. Pi is set up as SMB host, hosting music files for access around the house. I can't modify the files from any of the other computers though, except with sudo.
I have set all permissions recursively on the whole music collection to 0777.
My smb.conf share is set up thus:
[share]
Comment = pi shared folder
Path =/mnt/share
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0777
directory mask = 0777
public = yes
Guest ok = yes
create mask = 0777
If I need to edit a tag, or rename a file, I navigate either in puddletag or nautilus to the file in question, and when I try to edit I get a permission error. If I do either of these things with sudo, however, I can edit freely.
Doing my music maintenance as elevated user is obviously an ok workaround, but a bit annoying. Does anyone know what I've done wrong?
P.S. I'm no pro at this stuff, if I've missed any key info please let me know and I will supply it.
P.P.S The drive I'm sharing is formatted as ext4.
networking raspberry-pi samba
New contributor
1
Did you restart samba after this configuration was saved?
– Tomasz
1 hour ago
You've not moved the question only reposted. You should delete one of them.
– Tomasz
1 hour ago
It's been configured like this for quite some time, so it's been through numerous shutdown/restart cycles. Also, noted, thanks. I'll delete the other one.
– Frazbro
1 hour ago
add a comment |
I'm having a weird issue with my pi. Pi is set up as SMB host, hosting music files for access around the house. I can't modify the files from any of the other computers though, except with sudo.
I have set all permissions recursively on the whole music collection to 0777.
My smb.conf share is set up thus:
[share]
Comment = pi shared folder
Path =/mnt/share
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0777
directory mask = 0777
public = yes
Guest ok = yes
create mask = 0777
If I need to edit a tag, or rename a file, I navigate either in puddletag or nautilus to the file in question, and when I try to edit I get a permission error. If I do either of these things with sudo, however, I can edit freely.
Doing my music maintenance as elevated user is obviously an ok workaround, but a bit annoying. Does anyone know what I've done wrong?
P.S. I'm no pro at this stuff, if I've missed any key info please let me know and I will supply it.
P.P.S The drive I'm sharing is formatted as ext4.
networking raspberry-pi samba
New contributor
I'm having a weird issue with my pi. Pi is set up as SMB host, hosting music files for access around the house. I can't modify the files from any of the other computers though, except with sudo.
I have set all permissions recursively on the whole music collection to 0777.
My smb.conf share is set up thus:
[share]
Comment = pi shared folder
Path =/mnt/share
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0777
directory mask = 0777
public = yes
Guest ok = yes
create mask = 0777
If I need to edit a tag, or rename a file, I navigate either in puddletag or nautilus to the file in question, and when I try to edit I get a permission error. If I do either of these things with sudo, however, I can edit freely.
Doing my music maintenance as elevated user is obviously an ok workaround, but a bit annoying. Does anyone know what I've done wrong?
P.S. I'm no pro at this stuff, if I've missed any key info please let me know and I will supply it.
P.P.S The drive I'm sharing is formatted as ext4.
networking raspberry-pi samba
networking raspberry-pi samba
New contributor
New contributor
edited 1 hour ago
Frazbro
New contributor
asked 2 hours ago
Frazbro Frazbro
1011
1011
New contributor
New contributor
1
Did you restart samba after this configuration was saved?
– Tomasz
1 hour ago
You've not moved the question only reposted. You should delete one of them.
– Tomasz
1 hour ago
It's been configured like this for quite some time, so it's been through numerous shutdown/restart cycles. Also, noted, thanks. I'll delete the other one.
– Frazbro
1 hour ago
add a comment |
1
Did you restart samba after this configuration was saved?
– Tomasz
1 hour ago
You've not moved the question only reposted. You should delete one of them.
– Tomasz
1 hour ago
It's been configured like this for quite some time, so it's been through numerous shutdown/restart cycles. Also, noted, thanks. I'll delete the other one.
– Frazbro
1 hour ago
1
1
Did you restart samba after this configuration was saved?
– Tomasz
1 hour ago
Did you restart samba after this configuration was saved?
– Tomasz
1 hour ago
You've not moved the question only reposted. You should delete one of them.
– Tomasz
1 hour ago
You've not moved the question only reposted. You should delete one of them.
– Tomasz
1 hour ago
It's been configured like this for quite some time, so it's been through numerous shutdown/restart cycles. Also, noted, thanks. I'll delete the other one.
– Frazbro
1 hour ago
It's been configured like this for quite some time, so it's been through numerous shutdown/restart cycles. Also, noted, thanks. I'll delete the other one.
– Frazbro
1 hour ago
add a comment |
1 Answer
1
active
oldest
votes
Your configuration states only that
Guest ok = yes
This only allows guest to access the service without password and operate within powers of the guest account. But what are they? By default it's nobody
. Does he have access to your music collection? Remember that if the collection is inside your /home/you
directory, then even if you set wide open permissions on the collection folder, nobody
or another user might not even get that far getting stopped by some more restrictive permissions down the way.
Possibly then you just need to overrule the default nobody
with someone more privileged:
Default: guest account = nobody # default can be changed at compile-time
Example: guest account = ftp
Or you might move the collection to a more accessible place.
Remember to reload or restart your Samba service after the configuration's been saved.
Thanks for the lead, I'll look into that. The collection is mounted at /mnt/share, should I move it elsewhere, or was the /home/you comment a caveat rather than a suggestion?
– Frazbro
1 hour ago
@Frazbro/mnt/share
is alright. I'd first check its permissions and then find or create a suitable user.guest account = that_user
, smb reload and that's it.
– Tomasz
35 mins ago
@Frazbro/home/you
directories are usually private.
– Tomasz
34 mins ago
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
});
}
});
Frazbro is a new contributor. Be nice, and check out our Code of Conduct.
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%2f504180%2fcannot-modify-files-hosted-on-raspi-on-other-computers-in-the-network%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 configuration states only that
Guest ok = yes
This only allows guest to access the service without password and operate within powers of the guest account. But what are they? By default it's nobody
. Does he have access to your music collection? Remember that if the collection is inside your /home/you
directory, then even if you set wide open permissions on the collection folder, nobody
or another user might not even get that far getting stopped by some more restrictive permissions down the way.
Possibly then you just need to overrule the default nobody
with someone more privileged:
Default: guest account = nobody # default can be changed at compile-time
Example: guest account = ftp
Or you might move the collection to a more accessible place.
Remember to reload or restart your Samba service after the configuration's been saved.
Thanks for the lead, I'll look into that. The collection is mounted at /mnt/share, should I move it elsewhere, or was the /home/you comment a caveat rather than a suggestion?
– Frazbro
1 hour ago
@Frazbro/mnt/share
is alright. I'd first check its permissions and then find or create a suitable user.guest account = that_user
, smb reload and that's it.
– Tomasz
35 mins ago
@Frazbro/home/you
directories are usually private.
– Tomasz
34 mins ago
add a comment |
Your configuration states only that
Guest ok = yes
This only allows guest to access the service without password and operate within powers of the guest account. But what are they? By default it's nobody
. Does he have access to your music collection? Remember that if the collection is inside your /home/you
directory, then even if you set wide open permissions on the collection folder, nobody
or another user might not even get that far getting stopped by some more restrictive permissions down the way.
Possibly then you just need to overrule the default nobody
with someone more privileged:
Default: guest account = nobody # default can be changed at compile-time
Example: guest account = ftp
Or you might move the collection to a more accessible place.
Remember to reload or restart your Samba service after the configuration's been saved.
Thanks for the lead, I'll look into that. The collection is mounted at /mnt/share, should I move it elsewhere, or was the /home/you comment a caveat rather than a suggestion?
– Frazbro
1 hour ago
@Frazbro/mnt/share
is alright. I'd first check its permissions and then find or create a suitable user.guest account = that_user
, smb reload and that's it.
– Tomasz
35 mins ago
@Frazbro/home/you
directories are usually private.
– Tomasz
34 mins ago
add a comment |
Your configuration states only that
Guest ok = yes
This only allows guest to access the service without password and operate within powers of the guest account. But what are they? By default it's nobody
. Does he have access to your music collection? Remember that if the collection is inside your /home/you
directory, then even if you set wide open permissions on the collection folder, nobody
or another user might not even get that far getting stopped by some more restrictive permissions down the way.
Possibly then you just need to overrule the default nobody
with someone more privileged:
Default: guest account = nobody # default can be changed at compile-time
Example: guest account = ftp
Or you might move the collection to a more accessible place.
Remember to reload or restart your Samba service after the configuration's been saved.
Your configuration states only that
Guest ok = yes
This only allows guest to access the service without password and operate within powers of the guest account. But what are they? By default it's nobody
. Does he have access to your music collection? Remember that if the collection is inside your /home/you
directory, then even if you set wide open permissions on the collection folder, nobody
or another user might not even get that far getting stopped by some more restrictive permissions down the way.
Possibly then you just need to overrule the default nobody
with someone more privileged:
Default: guest account = nobody # default can be changed at compile-time
Example: guest account = ftp
Or you might move the collection to a more accessible place.
Remember to reload or restart your Samba service after the configuration's been saved.
answered 1 hour ago
TomaszTomasz
9,96452966
9,96452966
Thanks for the lead, I'll look into that. The collection is mounted at /mnt/share, should I move it elsewhere, or was the /home/you comment a caveat rather than a suggestion?
– Frazbro
1 hour ago
@Frazbro/mnt/share
is alright. I'd first check its permissions and then find or create a suitable user.guest account = that_user
, smb reload and that's it.
– Tomasz
35 mins ago
@Frazbro/home/you
directories are usually private.
– Tomasz
34 mins ago
add a comment |
Thanks for the lead, I'll look into that. The collection is mounted at /mnt/share, should I move it elsewhere, or was the /home/you comment a caveat rather than a suggestion?
– Frazbro
1 hour ago
@Frazbro/mnt/share
is alright. I'd first check its permissions and then find or create a suitable user.guest account = that_user
, smb reload and that's it.
– Tomasz
35 mins ago
@Frazbro/home/you
directories are usually private.
– Tomasz
34 mins ago
Thanks for the lead, I'll look into that. The collection is mounted at /mnt/share, should I move it elsewhere, or was the /home/you comment a caveat rather than a suggestion?
– Frazbro
1 hour ago
Thanks for the lead, I'll look into that. The collection is mounted at /mnt/share, should I move it elsewhere, or was the /home/you comment a caveat rather than a suggestion?
– Frazbro
1 hour ago
@Frazbro
/mnt/share
is alright. I'd first check its permissions and then find or create a suitable user. guest account = that_user
, smb reload and that's it.– Tomasz
35 mins ago
@Frazbro
/mnt/share
is alright. I'd first check its permissions and then find or create a suitable user. guest account = that_user
, smb reload and that's it.– Tomasz
35 mins ago
@Frazbro
/home/you
directories are usually private.– Tomasz
34 mins ago
@Frazbro
/home/you
directories are usually private.– Tomasz
34 mins ago
add a comment |
Frazbro is a new contributor. Be nice, and check out our Code of Conduct.
Frazbro is a new contributor. Be nice, and check out our Code of Conduct.
Frazbro is a new contributor. Be nice, and check out our Code of Conduct.
Frazbro is a new contributor. Be nice, and check out our Code of Conduct.
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%2f504180%2fcannot-modify-files-hosted-on-raspi-on-other-computers-in-the-network%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
Did you restart samba after this configuration was saved?
– Tomasz
1 hour ago
You've not moved the question only reposted. You should delete one of them.
– Tomasz
1 hour ago
It's been configured like this for quite some time, so it's been through numerous shutdown/restart cycles. Also, noted, thanks. I'll delete the other one.
– Frazbro
1 hour ago