Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


[SOLVED] Permission problems with 8.xx
#18
(10-05-2022, 04:38 PM)Tim Curtis Wrote:
(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?
Thanks Tim,

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


Messages In This Thread
RE: Permission problems with 8.xx - by Tim Curtis - 10-05-2022, 09:37 AM
RE: Permission problems with 8.xx - by Phosphoric - 10-05-2022, 09:46 AM
RE: Permission problems with 8.xx - by Tim Curtis - 10-05-2022, 10:16 AM
RE: Permission problems with 8.xx - by Phosphoric - 10-05-2022, 10:24 AM
RE: Permission problems with 8.xx - by Nutul - 10-05-2022, 11:22 AM
RE: Permission problems with 8.xx - by Phosphoric - 10-05-2022, 03:19 PM
RE: Permission problems with 8.xx - by Tim Curtis - 10-05-2022, 10:55 AM
RE: Permission problems with 8.xx - by Phosphoric - 10-05-2022, 03:05 PM
RE: Permission problems with 8.xx - by Tim Curtis - 10-05-2022, 03:35 PM
RE: Permission problems with 8.xx - by Phosphoric - 10-05-2022, 04:20 PM
RE: Permission problems with 8.xx - by Tim Curtis - 10-05-2022, 04:38 PM
RE: Permission problems with 8.xx - by Phosphoric - 10-05-2022, 04:49 PM
RE: Permission problems with 8.xx - by Phosphoric - 10-05-2022, 03:31 PM
RE: Permission problems with 8.xx - by Phosphoric - 10-05-2022, 04:41 PM
RE: Permission problems with 8.xx - by Phosphoric - 10-05-2022, 05:24 PM
RE: Permission problems with 8.xx - by Phosphoric - 10-05-2022, 04:26 PM
RE: Permission problems with 8.xx - by Tim Curtis - 10-05-2022, 04:53 PM
RE: Permission problems with 8.xx - by Phosphoric - 10-05-2022, 05:05 PM
RE: Permission problems with 8.xx - by Tim Curtis - 10-05-2022, 05:35 PM
RE: Permission problems with 8.xx - by Phosphoric - 10-05-2022, 05:53 PM
RE: Permission problems with 8.xx - by Tim Curtis - 10-05-2022, 06:00 PM
RE: Permission problems with 8.xx - by Phosphoric - 10-05-2022, 06:13 PM
RE: Permission problems with 8.xx - by Phosphoric - 10-06-2022, 04:18 PM
RE: Permission problems with 8.xx - by Tim Curtis - 10-06-2022, 06:03 PM
RE: Permission problems with 8.xx - by Nutul - 10-06-2022, 06:54 PM
RE: Permission problems with 8.xx - by Phosphoric - 10-07-2022, 07:43 AM
RE: Permission problems with 8.xx - by Phosphoric - 10-07-2022, 08:10 AM
RE: Permission problems with 8.xx - by Phosphoric - 10-07-2022, 07:53 PM
RE: Permission problems with 8.xx - by Phosphoric - 10-08-2022, 04:46 PM

Forum Jump: