Forum
[SOLVED] Samba Network Share Read Only - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: [SOLVED] Samba Network Share Read Only (/thread-2736.html)



Samba Network Share Read Only - toblerone - 14th Feb, 2015 04:33 AM

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??


RE: Samba Network Share Read Only - toblerone - 14th Feb, 2015 07:07 AM

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!



RE: Samba Network Share Read Only - f1vefour - 14th Feb, 2015 05:13 PM

Thanks for finding and posting the resolution, also for marking it solved.


RE: Samba Network Share Read Only - calhaus - 19th Feb, 2015 08:55 AM

Thanks for this! It worked for me also Wink


RE: Samba Network Share Read Only - CurlyMo - 19th Feb, 2015 09:05 AM

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



RE: Samba Network Share Read Only - calhaus - 19th Feb, 2015 09:08 AM

(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


RE: Samba Network Share Read Only - koswix - 23rd Feb, 2015 08:43 PM

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.


RE: Samba Network Share Read Only - madmikelol - 6th Mar, 2015 06:00 PM

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?


RE: Samba Network Share Read Only - f1vefour - 7th Mar, 2015 12:17 AM

Use sudo before the command.
Terminal

sudo net conf drop