New IT forum Follow us on Twitter
21 May 2012, 04:18:10 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: EFIKA MX now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Permissions error trying to access NanoNAS from Sheevaplug  (Read 612 times)
Raymonkey
Newbie
*
Posts: 2


« on: 06 May 2011, 10:42:09 am »

Hi there,

Recently taken delivery of a Sheevaplug and am generally very happy with it.

I've just set it up as a Squeezeplug by following the instructions on the Slimdevice Wiki

I originally mapped /music on the squeezeplug to my Music folder on my NanoNAS and can see it OK, but I don't seem to have the relevant permissions to make things work.

Two things happen:

-if I attempt to edit a file via webmin I get error pop-ups like:
"Failed to open /music/Ambient Moods/Ambient Moods/Folder.jpg : Permission denied"

- if I scan the database with Squeezebox server I get no music added and error messages in the logs like:

Code:
[11-05-03 02:28:32.3638] Audio::Scan::scan (37) Warning: Could not open /music/Zero 7/When It Falls/11_Morning Song.mp3 for reading: Permission denied
[11-05-03 02:28:32.3664] Slim::Utils::Scanner::Local::__ANON__ (655) ERROR SCANNING file:///music/Zero%207/When%20It%20Falls/11_Morning%20Song.mp3: Unable to read tags from file

If I map a Vista shared drive to the Plug I can see and edit the files within no problem. (Which is what I'm currently doing, having moved my music to another PC in the house).

The fstab entries I use to mount are identical (apart from the folder I'm mounting them to):
Code:
//192.168.x.xxx/Disk-0/Test /media cifs -o guest
//192.168.x.xxx/Public/Music /music -o cifs guest

But only the second one (the Vista share) works.

I've talked to Server Elements about the issue and showed them the output from smbtree:

Code:
\\\\NANONAS
cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe \\srvsvc failed with error ERRnosupport
                \\\\NANONAS\\IPC$                  IPC Service (NanoNAS SMB (IP: 192.168.2.3))
                \\\\NANONAS\\Status                Share Status (Read/Write)
                \\\\NANONAS\\Disk-3                Share Disk-3 (Read/Write)
                \\\\NANONAS\\Disk-2                Share Disk-2 (Read/Write)
                \\\\NANONAS\\Disk-1                Share Disk-1 (Read/Write)
                \\\\NANONAS\\Disk-0                Share Disk-0 (Read/Write)
                \\\\NANONAS\\Shares                All Shares (Read/Write)

Their feedback is as follows:
Quote
I'm not sure why the Sheevaplug will not mount the NanoNAS exports but my guess is that it's either attempting to mount as a domain member or as an authenticated user. In both cases it will fail since NanoNAS has no support for user authentication. The best place to pose that question will be to the Sheevaplug forums.

I can see and edit files on the NanoNAS quite happily from two other Vista machines and an XP Laptop, so I'm guessing it's something I've not set correctly on the Plug; any light you could shed on this would be great!

I'm a real Linux newbie, but not afraid to tinker, so any help would be greatly appreciated.

If there's any more information I can provide that would help resolve this let me know.

Many thanks,
-Raymonkey
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #1 on: 06 May 2011, 04:24:17 pm »

My /etc/fstab entries (to mount remote Windows shares) look like this:

Code:
//192.168.1.214/windows-share-name /mnt/local-mount-name cifs user,rw,username=windows-username,password=xxxmypasswordxxx,file_mode=0777,dir_mode=0777,uid=marcus 0 0

If I understand you correctly, the NanoNAS doesn't require any credentials. What happens if you use the form above, but simply removing the username & password entries?
Logged
Raymonkey
Newbie
*
Posts: 2


« Reply #2 on: 06 May 2011, 07:37:05 pm »

Thanks Marcus, unfortunately that didn't work and I get the same error trying to touch or edit a file.

for example
Code:
touch:cannot touch 'Test.txt' :Permission denied

Also, removing the username/password arguments made the mount ask for a password, which I believe it shouldn't do.

My understanding of the NanoNAS system from the ServerElements forums is that it allows all connections, forcing the user/group to be NAS-User, and therefore should ignore anything passed to it.

I've tried other variations in the fstab such as

Code:
//192.168.x.xxx/Disk-0/Test  /media  smbfs  username=admin,password=nas,uid=98,gid=98,fmask=0777  0  0
//192.168.x.xxx/Disk-0/Test  /media cifs noperm,umask=0777,fmask=0777 0 0

They all seem to mount the correct disk to /media but I can't touch anything.

Bizzarely I can use mkdir to create a directory in /media which shows up on the NanoNAS, but then I can't write a file into it.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!