Roland0 wrote:
> Have you checked accessing the files from a different computer (one
> running Windows) with the same NAS user?
currently the NAS is set not to "public" on that folder, and I can
access, read, write, whatever I want from my android cellphone (I can
stream the MP3 files stored there) - connecting on it trough windows is
more temperamental; windows doesn't seem to like to see network drive
change rights.
here is my current entry in FSTAB - I have tried many, many things.
There is a user squeezeboxserver on the NAS that has 'none' for a
password
Code:
--------------------
//192.168.0.104/media /media/NAS cifs
vers=1.0,username=squeezeboxserver,password=none,uid=108,gid=1004,file_mode=0777,dir_mode=0777
0 0
--------------------
here is the ls -l for the /media/NAS folder right after mounting
Code:
--------------------
drwxrwx---+ 48 squeezeboxserver squeezeboxserver 0 Oct 14 14:05 NAS
--------------------
Here is one of the MP3 file down a path
Code:
--------------------
-rwxrwx--- 1 squeezeboxserver squeezeboxserver 3194880 Jan 30 2018
filename.mp3
--------------------
>From debian the file cannot be accessed.
Code:
--------------------
root@orangepione:~# cp file.mp3 test.mp3
cp: error reading 'file.mp3': Permission denied
--------------------
trying to copy leads to similar results:
Code:
--------------------
root@orangepione:~# sudo -u squeezeboxserver -g squeezeboxserver cp -iv
/media/NAS/subfolder/file.mp3 /tmp
'file.mp3' -> '/tmp/file.mp3'
cp: error reading 'file.mp3': Permission denied
--------------------
trying to do it with a folder:
Code:
--------------------
root@orangepione:~# sudo -u squeezeboxserver -g squeezeboxserver cp -riv
/media/NAS/subfolder /tmp
'subfolder' -> '/tmp/subfolder'
'subfolder/file.mp3' -> '/tmp/subfolder/file.mp3'
cp: error reading 'subfolder/file.mp3': Permission denied
'subfolder/test.mp3' -> '/tmp/subfolder/test.mp3'
cp: error reading 'subfolder/test.mp3': Permission denied
--------------------
to confirm, I ran ls -l on the folder
Code:
--------------------
-rwxrwx---+ 1 squeezeboxserver squeezeboxserver 3194880 Oct 14 14:47 file.mp3
-rwxrwx---+ 1 squeezeboxserver squeezeboxserver 0 Oct 14 14:48 test.mp3
--------------------
I also experienced having the NAS folder to public, mounting with guest
instead of username/password, I tried many uid/gid (even root) and in no
combination I managed to get to read files. But it does read properly on
windows and android (particularly when set to public)
Is Debian accessing SMB differently than other platforms? Should I try
to mount the SMB drive differently than what I have been doing? I am not
actually "mounting" it on either windows or android, but accessing it
and browsing, perhaps it is the mount operation that isn't working
nice?
Maybe my fstab is not correct?
------------------------------------------------------------------------
Marsupial's Profile: http://forums.slimdevices.com/member.php?userid=59182
View this thread: http://forums.slimdevices.com/showthread.php?t=111080
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix