10-05-2022, 04:49 PM
(This post was last modified: 10-05-2022, 04:56 PM by Phosphoric.)
(10-05-2022, 04:38 PM)Tim Curtis Wrote:Thanks Tim,(10-05-2022, 04:20 PM)Phosphoric Wrote:(10-05-2022, 03:35 PM)Tim Curtis Wrote:(10-05-2022, 03:05 PM)Phosphoric Wrote:(10-05-2022, 10:55 AM)Tim Curtis Wrote: Even with sudo you can't write to the drive?
Try the mount manually with rw and userid=Guest
Samba shares are specified in the file /etc/samba/smb.conf.
Default access control for each share is:
read only = No
guest ok = Yes
And the SMB server proxies as root to access whats behind a share
guest account = root
Code:pi@moode:~ $ cat /etc/samba/smb.conf
[global]
server string = Moode SMB Server
multicast dns register = no
security = User
map to guest = Bad User
guest account = root
log level = 0
load printers = No
printcap name = /dev/null
disable spoolss = Yes
printing = bsd
preferred master = No
local master = No
domain master = No
dns proxy = No
create mask = 0775
directory mask = 0775
browseable = Yes
veto files = /._*/.DS_Store/
delete veto files = yes
[NAS]
comment = NAS Shares
path = /mnt/NAS
read only = No
guest ok = Yes
[Playlists]
comment = Playlist Directory
path = /var/lib/mpd/playlists
read only = No
guest ok = Yes
[SDCard]
comment = SDCARD Storage
path = /mnt/SDCARD
read only = No
guest ok = Yes
[VFAT128]
comment = USB Storage
path = /media/VFAT128
read only = No
guest ok = Yes
Thanks Tim, but as my first post, the smb.conf files are exactly the same in ver.7.6x and ver. 8.xx 7.6x works perfectly 8xx won't.
Right but the debug needs to happen using your 8 system.
Try mounting the share manually from your Mint box. Below is what a mount string looks like when creating an SMB Music Source config in moOde. Note that the default is to mount using "ro" (read-only). You would need to change to "rw".
Example:
Code:
Code:mount -t cifs "//TRX/VFAT128/FLAC" -o username="Guest",password="",rsize=61440,wsize=65536,iocharset=utf8,vers=3.1.1,ro,noserverino,dir_mode=0777,file_mode=0777 "/mnt/NAS/TRX-SMB-FLAC"
I ran a quick test on using "rw" and no issues writing to "/mnt/NAS/TRX-SMB-FLAC" in the above example.
Also, in a previous post do I understand correctly that you tried sudo on your moOde 8 system and it did not work?
Thanks again Tim,
sadly I can't quite understand what you are trying to get me to do. I can't reconcile that code with what I have on my PC.
How does "//TRX/VFAT128/FLAC" become "/mnt/NAS/TRX-SMB-FLAC"?
I think my mount point is MOODE/media/'Moode playe'
I'm also not sure to which command you are asking if I used sudo?
From your OP
"I can connect to the moode server via ssh pi@192.168.xxx.xxx and see all the files on the sd card but I am unable to write to the media file (you do not have permission)"
# Test to see if USB drive allows writes
1. ssh pi@192.168.xxx.xxx
2. ls /media
Your USB/uSD drive should be listed here. The name will be its drive label
3. cd /media/DRIVE_LABLE
4. sudo touch ./test.txt
If no errors
5. sudo rm ./test.txt
What are the results of this test?
That installed a file test.txt in to my 'Moode playe' directory with no errors
That ssh pi@192.168.xxx.xxx was from my Linux PC on the network discovery section which is a GUI. What I have just done is ssh in from the terminal in my Linux pc, I don't know if there is a difference?