![]() |
CIFS = "Could I Find Someone" to help me before I lose my mind!
OK, this is driving me bonkers so if anyone has any insight I'd really appreciate it.
I have an uNSLUng NSLU NAS (it wasn't unslung when I started this project!). The shares are accessible from my XP & Ubuntu clients. I've followed the HowTo on accessing Windows shares on the N800 using CIFS. I can see my directories (sweet!) yet File Manager reports "Unable to open files" when I try to display the contents of those folders. It'll list the files, but they're all grey and unclickable. The account I've specified in fstab works from the other network clients. SMBBrowser refuses to mount the shares even though it creates the mount point directory. I used the same user\pass as the XP clients. I think the last thing I'll try is Twonky but I just don't understand why the current setup doesn't do it. Anyone got any stunningly bright ideas? Thanks NM |
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
for me i have to click on file| scan host after i enter the username, even if it is already showing up. if you do a search i have writen the exact sequence of events,to connenect.
|
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
Quote:
this is an example of how I mounted things after loading cifs.ko |
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
what is the SMBbrowser you speak of?
|
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
Hey Brendan
It's the SMBbrowser from the garage; https://garage.maemo.org/projects/smbbrowser/ You have to get smbfs as well - https://garage.maemo.org/frs/shownot...release_id=132 has instructions |
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
Quote:
|
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
hmmm... i have the cifs.ko for the n800 and i have had very little luck mounting a smb share on my linux machine.
|
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
hmm, maybe that's why I've had no luck with smbbrowser - I too am using a N800 :) For some reason I thought it was OK to use on the N800. Oh well.
|
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
i know that the smbclient and smbserver packages were never ported for the n800, and the cifs.ko work around was put in to cover the functionality.
i did get the cifs.ko method to work *once*, and since then, i have had no luck. i will have to hack a little more to see if i am using the wrong parameters or what. |
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
I have updated my N800 to the new OS2007. I have fetched the cifs kernel module from http://handhelds.org/~fanoush/maemo/...06.51-6.tar.gz. This is not up to date with the new kernel. Still I could insmod without a problem. Both lsmod and cat /proc/filesystems show the module cifs "alive". Then I used the command
mount -t cifs -o user=*,password=* //ip-addr/share /mount-point This gives me access to a Linux-samba share and a Win-XPSP2 share. I do not need the samba packages. The cifs.ko is enough. There is some confusion wrt. smb and cifs :-( |
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
i have the same exact cifs.ko as you specify in your post. i had a small script put together. it ran something like this.
/sbin/insmod /media/mmc2/cifs.ko /bin/mount -t cifs //server/share /mount/point -o user=me,password=secret /bin/mount -t cifs //server/share1 /mount/point1 -o domain=domain,user=me,password=secret i took the domain out of the first line to see if that was buggering things up, as i really dont have a "domain", although the samba server has a name there. i actually did have the domain= parameter match what the samba server is set to. this file was owned by root chmod'd 700 and put on the mmc2 (internal) card. of course names were changed to protect the innocent, but it worked once and never again. now, i see that you have some of the parameters in a different order than i do. is that really an issue? |
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
i went and changed my script to use the parameters in the proper order and i get an error message saying that the mount fails, which is an improvement since i tried it last. before i was getting some other failed message.
now to check to see if cifs uses different ports than smb, as my firewall is pretty well locked down... edit: cifs uses the some of the same ports (139 and 445) as samba, so that wasnt it. giving up for the day on this one... |
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
One thing I note is that sometimes the mount command is written with '...user=blah,...' and sometimes with '...username=blah,...'. Does it matter?
|
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
I just tried using different orders of the parameters in the mount command and also the parameter "user=" and "username=" . Neither makes a difference on my N800 OS4-2007.26.8, it works here.
I think the smbmount requires "username=". Also using smbmount - in case it is available - gives more verbose output than mount. BUT: smbmount mounts smbfs-type shares. This is basically equal to cifs, but a kernel using only the cifs.ko knows only about cifs-type filesystem and smbmount will fail. The filesystems known to the kernel may be listed using cat /proc/filesystems I am mounting "local" shares, ie. no firewall in the way, the same network segment. I would also try mounting using the IP-address not the Windows server name.: mount .... //192.168.1.3/share /mount-point not mount ... //server-name/share /mount-point This removes one tricky point: windows name resolution. In case you are using a linux samba server, you may check the messages on the server (not the N800 client) while trying to mount: either tail -f /var/log/messages or tail -f /var/log/samba/log.smbd. These filenames are valid on my debian, but these are quite standard. The second source is more verbose. Good luck. |
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
Thanks for the analysis Huang - appreciate your time and insight.
For the record (I mean if anyone else cares about this other than me :) I think I've worked out how to solve this but it leaves me a bit puzzled. Since I unslung my NSLU I can get CLI root access to it. Looking at the permissions of the files within the share I see that they're all; -rwxrw---- As you'd expect, right? The account I've used on all my LAN clients is in the right group so, in theory, the G permissions should apply. However, if I chmod o+r the files are then accessible on the N800. That's right - problem solved! BUT it leaves me wondering why the NSLU isn't authenticating the account properly when used on the N800? Puzzling to be sure. Since I don't have any of my LAN open to the big bad world I don't feel too uncomfortable allowing Others read access to the share. Now, does anyone know how to get chmod to apply permissions recursively through an entire directory tree ? :D |
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
On a real linux: chmod --help gives the solution: chmod -R.
But your device does not have a fullblown chmod, it uses busybox really. So --help does not work, but the -R switch works on my N800 -- not sure about NSLU. |
Re: CIFS = "Could I Find Someone" to help me before I lose my mind!
yeah, I discovered yesterday that chmod -R o+r * did the trick. Thanks!
|
All times are GMT. The time now is 22:13. |
vBulletin® Version 3.8.8