Forum

Full Version: Samba Network Share Read Only
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there;

Software
XBian version: 1.0 (2015.02.07)
XBMC/Kodi version: 14.1
Overclock settings: N/A

Hardware
Device type and model: Raspberry Pi Model B+
Power supply rating: 1.5A
SD card size and make/type: Sandisk 8GB
Network (Ethernet or wireless): Ethernet 100M
Connected devices (TV, USB, network storage, ...): HDMI, USB HDD

Log files
Link to logfile(s): http://xbmclogs.com/show.php?id=425580

Problem description:
I cannot write to the USB 'Media' share on Windows. I can read it fine and write to other shares, just not the USB drive 'Media' share. How can I do something about this? I have read on Googled pages about changing the smb.conf file but whatever I did nothing changed, so I reverted all my changes. The Unix file perms are 777. I'm unsure about what to do next, so I'm here! Smile

How to reproduce:
Ummm, try to write to the share??
I found this here. It works!!!
Quote:RE: SAMBA with USB mountet Device under RC3
Hey,
I got the same issue. However, thanks to you @mk01 I know what was going on and how to fix it. There was no problem with the package (it was the newest one).

Here comes the output of net conf list:
Code:

Code:
[XBMC]
        path = /media/XBMC
        guest ok = yes
        read only = yes
        browseable = yes
        read list = xbian
        write list = xbian
        force user = xbian

[Backup]
        path = /media/Backup
        guest ok = yes
        read only = yes
        browseable = yes
        read list = xbian
        write list = xbian
        force user = xbian

[xbmc-backup]
        path = /xbmc-backup
        read only = no
        guest ok = yes
        force user = root
        browseable = yes

XBMC and Backup are labels of my partition, xbmc-backup share is made by xbian I guess.

So here is what I've done (as a superuser but net conf list required it earlier):
1. Copied all what's above to clipboard.
2. nano anyname.conf
3. Pasted.
4. Changed every read only = yes to read only = no and saved changes.
5. net conf drop (not sure if it is necessary but did it to clear earlier version)
6. net conf import anyname.conf
7. Reboot!

And now it works!
Thanks again @mk01 and hope it will help you, @Cre@tsheR, as well!
Thanks for finding and posting the resolution, also for marking it solved.
Thanks for this! It worked for me also Wink
I've added an additional share by default that shares the /media folder:
Code:
[media]
path = /media
guest ok = yes
read only = no
force user = xbian
browseable = yes
(19th Feb, 2015 09:05 AM)CurlyMo Wrote: [ -> ]I've added an additional share by default that shares the /media folder:
Code:
[media]
path = /media
guest ok = yes
read only = no
force user = xbian
browseable = yes

I was adding this issue to github, i will not add it now. Smile
This issue also appeared for me in the last week (was fine previously, using the new raspberry pi).

Your fix worked, not sure why the XBIAN-CONFIG app wasn't able to write out the correct setting (or what caused it to change to read only).
Cheers.
Tried this, but if I try "net conf drop" or "net conf import anyname.conf" I get the error WERR_ACCESS_DENIED. Any help to a complete noobie?
Use sudo before the command.
Terminal

sudo net conf drop
Reference URL's