OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: silencer51 on March 20, 2006, 08:35:43 pm
-
I have OZ 3.5.4 running on my Z with GPe 2.7. Everything works great, I installed x11vnc so I can control my Z from my PC etc.
However, I have a problem with samba.
I have succesfully downloaded and installed it, I have configured the smb.conf file, I've set the smbpasswd and I get no error messages whatsoever (testparm checks out ok).
However, on my Windows box, whenever I try to browse my Z's filesystem (I've shared the entire filesystem, i.e. "path = /", I see lots of folders (16) that are all empty, and I can't seem to be able to access any of them.
I have enable browsing, read/write etc...
The same settings work perfectly on my C31K.
What could be the problem?
-
Do the users (the ones you've specified in the samba.conf file) have the same permissions and do the directories have the same permissions on your two machines?
Just a thought,
Si
-
I use my collie as root and have specified root as the user in the smb.conf file...
-
BUG? I think It always send the 1st item "./"
However, on my Windows box, whenever I try to browse my Z's filesystem (I've shared the entire filesystem, i.e. "path = /", I see lots of folders (16) that are all empty, and I can't seem to be able to access any of them.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=119498\"][{POST_SNAPBACK}][/a][/div]
The same problem. I can write but cant read.
The test is the same in Win98, XP and Linux (and the Zaurus auto-sharing).
C:\>net use h: \\192.168.1.2\samba --------> OK
C:\>dir h:
Directorio de H:\
23/03/06 20:56
23/03/06 20:56
23/03/06 20:56
23/03/06 20:56 ----- all SAME date
23/03/06 20:56
23/03/06 20:56
0 archivos 0 bytes ----------> 0? 0?
6 directorios 116.219.904 bytes libres ------ Only 6
C:\>mkdir h:test1 ----------> OK
C:\>echo THIS IS A TEST>h:\TEST2 ----- > OK
C:\>dir h:
Directorio de H:\
24/03/06 17:35
24/03/06 17:35
24/03/06 17:35
24/03/06 17:35 ---- DATE changed!!!
24/03/06 17:35
24/03/06 17:35
24/03/06 17:35
24/03/06 17:35
0 archivos 0 bytes
8 directorios 116.219.904 bytes libres ------> And mode and more
Same Date, same dir, same all. I think It allwais send the 1st item "./"
While... In the zaurus
root@collie:/srv/samba# ls -a1s
1 .
1 ..
1 prb5
1 prb6
1 smb.conf
10 smb.conf.org
root@collie:/srv/samba# ls -1as
1 .
1 ..
1 prb5
1 prb6
1 smb.conf
10 smb.conf.org
1 test1
1 TEST2
root@collie:/srv/samba# cat TEST2
THIS IS A TEST
root@collie:/srv/samba#
My "secure" smb.conf
root@collie:/srv/samba# cat /etc/samba/smb.conf
# Global parameters
[global]
workgroup = WORKGROUP
netbios name = COLLIE
security = SHARE
passdb backend = guest
wins server = 192.168.1.2
[samba]
comment = Data
path = /srv/samba/
guest only = Yes
writable = Yes
browseable = Yes
OWNER:
drwxr-xr-x 0 root root UP--DIR ..
dr-xr-xr-x 5 ftp root 1024 Mar 23 12:12 ftp
drwxr-xr-x 2 root root 1024 Mar 24 17:33 http
drwxrwxrwx 4 root root 1024 Mar 24 16:44 samba
OWNER:
drwxr-xr-x 0 root root UP--DIR ..
drwxr-xr-x 2 nobody nogroup 1024 Mar 23 19:56 prb6
drwxr-xr-x 2 nobody nogroup 1024 Mar 24 16:35 test1
-rwxr--r-- 1 nobody nogroup 16 Mar 24 16:44 TEST2
-rwxr--r-- 1 nobody nogroup 4 Mar 23 19:56 prb5
-rwxrwxrwx 1 nobody root 251 Mar 23 12:54 smb.conf
-rwxrwxrwx 1 nobody root 10021 Mar 23 11:59 smb.conf.org
This is the debug lvl 4 of smbd when "DIR H:"
Transaction 21 of length 75
switch message SMBsearch (pid 3082) conn 0x270f80
... CUT CUT
change_to_user: Skipping user change - already user
dskattr dfree=28373
Debug of ECHO THIS IS A TEST> H:test2
Transaction 18 of length 84
switch message SMBopenX (pid 3082) conn 0x270f80
...CUT CUT
close fd=24 fnum=5820 (numopen=1)
nobody closed file TEST2 (numopen=0)
Sorry for my english by the way
-
So I guess its a problem with Samba in the feed?
-
If you are reading this and you have sl-5500 with openzaurus 3.5.4 and samba server working, PLEASE comment it. I will know that the mistake is mine.
Thanks.
-
I have the same problem. I wonder if it's because the SD card i'm trying to share is an ext2 card. But it shouldn't matter, should it?
/me = too n00b for this problem
-
Bump...
-
I have OZ 3.5.4...
However, I have a problem with samba.
My Solution:
ipkg remove samba
ipkg install http://familiar.handhelds.org/releases/v0.5.2/packages/armv4l/sambaserver_2.0.7-1_arm.ipk
#
# Add 'collie' to /etc/hosts (example: echo 192.168.2.222 collie)
#
/etc/init.d/samba start
#
adduser 'unknown user' <--- My W98 user.
# pwd never used.
/usr/local/samba/bin/smbpasswd -a 'unknown user'
#pwd enter and enter (no pass)
# It works for me!
C:\WINDOWS>dir \\collie\all\mnt
Directorio de \\collie\all\mnt
. 13/03/06 2:47 .
.. 13/03/06 1:31 ..
card 14/03/06 12:49 card
cf 12/03/06 18:39 cf
net 12/03/06 18:39 net
ram 12/03/06 18:39 ram
0 arch. 0 bytes
6 direct.
C:\WINDOWS>copy \autoexec.bat "\\collie\home\unknown user"
1 file ok
C:\WINDOWS>dir "\\collie\home\unknown user"
Directorio de \\collie\home\unknown user
. 14/03/06 18:17 .
.. 14/03/06 17:34 ..
AUTOEXEC BAT 99 30/01/06 10:57 AUTOEXEC.BAT
1 arch. 99 bytes
2 direct.
-
Thanks paganoll, I'll try it and post the results... :-)
-
I just upgraded my samba to the latest version in the feeds on my 5600 and it now Works with windows (Tested on XP/Pro SP2)
Thanks a lot, CoreDump and Hrw