Thank you for your donation!


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


[SOLVED] Permission problems with 8.xx
#1
Big Grin 
Running ver.8.2 and generally everything works just fine except I am unable to access the USB mounted sd card that holds my audio files to edit them. I normally access them via the network manager of my Linux Mint 22 PC.
Error messageis:  
"Unable to mount location.  Failed to retrieve share list: Invalid argument"

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)

If  I revert back to ver. 7.6 everything is fine.

I also have another Pi running OMV 5 as my NAS.  Again, no problems accessing this to edit media files.

I have tried different sd cards and numerous fresh installs of both 7.6 and 8.20 and consistently  ver.7.6 has no permission problem and ver.8.xx does.

I have SMB enabled and I've compared the samba config files of both versions and they are exactly the same.

I even disabled the firewall temporarily and still the same problem.

I can only think it is something to do with the different OS that ver.8.xx uses but other than that I am stumped.
Help please. Big Grin
Reply
#2
What format is the SDCard?
Where is the firewall running?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(10-05-2022, 09:37 AM)Tim Curtis Wrote: What format is the SDCard?
Where is the firewall running?
I have tried various formats from fat 32 to ext4, no apparent difference.  Currently gparted is showing boot at fat32 and rootfs at ext4.

I access the firewall through Linux Mint, not sure if that's right but my other pi projects run OK with it.

Thanks for the prompt response Big Grin
Reply
#4
SSH to the Pi with the USB/uSD drive

Can you write /edit files on that drive locally?
If yes then try manually mounting the share to that drive from your Mint host instead of using its network manager.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
(10-05-2022, 10:16 AM)Tim Curtis Wrote: SSH to the Pi with the USB/uSD drive

Can you write /edit files on that drive locally?
If yes then try manually mounting the share to that drive from your Mint host instead of using its network manager.

I can ssh to the drive and read the media folder contents but am unable to write to that folder.

I can do that with ver.7.6x and my NAS drive but sadly not with ver.8.xx
Reply
#6
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
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
(10-05-2022, 10:24 AM)Phosphoric Wrote:
(10-05-2022, 10:16 AM)Tim Curtis Wrote: SSH to the Pi with the USB/uSD drive

Can you write /edit files on that drive locally?
If yes then try manually mounting the share to that drive from your Mint host instead of using its network manager.

I can ssh to the drive and read the media folder contents but am unable to write to that folder.

I can do that with ver.7.6x and my NAS drive but sadly not with ver.8.xx

Hello all,

I think I had a similar problem (missing permissions), but it was for an external USB SSD.
I just changed permissions to the share with

sudo chmod 0755 /media/Spare\ 4

where, of course, "Spare 4" was the offending SSD mount.

It's not clear to me how that happened, but the fix is permanent to this day.


Cheers, Al.
Reply
#8
@Phosphoric

When the Linux Mint File Manager tells you a password is required for your SMB share, tell it to connect as registered user pi and whatever password you gave user pi on your moOde player.

ETA: Sorry, this reply assumes you got a share list back. I should have gone back to read your original post. Where in the mounting sequence, exactly, do you encounter the "unable to..." message?

Regards,
Kent
Reply
#9
(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.
Reply
#10
[quote pid='43057' dateline='1664968926']

Hello all,

I think I had a similar problem (missing permissions), but it was for an external USB SSD.
I just changed permissions to the share with

sudo chmod 0755 /media/Spare\ 4

where, of course, "Spare 4" was the offending SSD mount.

It's not clear to me how that happened, but the fix is permanent to this day.


Cheers, Al.
[/quote]

Thanks Al, I've already tried that.  I do not appear to have permission to operate chmod even with sudo.  I type it in , reboot and the permissions are the same.
Reply


Forum Jump: