Author Topic: Problem With Oz 3.5.4 And Samba  (Read 2284 times)

silencer51

  • Full Member
  • ***
  • Posts: 172
    • View Profile
    • http://tchalikias.blogspot.com
Problem With Oz 3.5.4 And Samba
« 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?
Zaurus SL-5500 with:
128MB CF Card                                    
128MB SD Card
Symbol WiFi CF Card (working, sorta... overheats and shuts down!)
OZ 3.5.4 & GPE

Zaurus SL-C3100 with:
pdaXrom 1.1.0beta3 & XFCE4, /dev/hda1 256MB swap, /dev/hda2 512MB ext3, /dev/hda3 3328MB FAT32 for stuff
D-Link DCF-660 WiFi CF Card
1GB SD Card
128MB SD Card
128MB CF Card (for flashing)
USB Host Cable

& a Sony VAIO PCG-C1XD Picturebook with accessories...

[img]http://img58.imageshack.us/img58/7319/usbar21mw.gif\" border=\"0\" class=\"linked-sig-image\" /]

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Problem With Oz 3.5.4 And Samba
« Reply #1 on: March 21, 2006, 05:12:17 am »
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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

silencer51

  • Full Member
  • ***
  • Posts: 172
    • View Profile
    • http://tchalikias.blogspot.com
Problem With Oz 3.5.4 And Samba
« Reply #2 on: March 21, 2006, 11:31:25 am »
I use my collie as root and have specified root as the user in the smb.conf file...
Zaurus SL-5500 with:
128MB CF Card                                    
128MB SD Card
Symbol WiFi CF Card (working, sorta... overheats and shuts down!)
OZ 3.5.4 & GPE

Zaurus SL-C3100 with:
pdaXrom 1.1.0beta3 & XFCE4, /dev/hda1 256MB swap, /dev/hda2 512MB ext3, /dev/hda3 3328MB FAT32 for stuff
D-Link DCF-660 WiFi CF Card
1GB SD Card
128MB SD Card
128MB CF Card (for flashing)
USB Host Cable

& a Sony VAIO PCG-C1XD Picturebook with accessories...

[img]http://img58.imageshack.us/img58/7319/usbar21mw.gif\" border=\"0\" class=\"linked-sig-image\" /]

paganoll

  • Newbie
  • *
  • Posts: 44
    • View Profile
Problem With Oz 3.5.4 And Samba
« Reply #3 on: March 24, 2006, 12:01:10 pm »
BUG? I think It always send the 1st item "./"

Quote
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).

Code: [Select]
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 moreSame Date, same dir, same all. I think It allwais send the 1st item "./"
While... In the zaurus
Code: [Select]
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
Code: [Select]
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:"
Code: [Select]
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
Code: [Select]
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  
« Last Edit: March 25, 2006, 07:31:20 am by paganoll »

silencer51

  • Full Member
  • ***
  • Posts: 172
    • View Profile
    • http://tchalikias.blogspot.com
Problem With Oz 3.5.4 And Samba
« Reply #4 on: March 24, 2006, 12:05:29 pm »
So I guess its a problem with Samba in the feed?
Zaurus SL-5500 with:
128MB CF Card                                    
128MB SD Card
Symbol WiFi CF Card (working, sorta... overheats and shuts down!)
OZ 3.5.4 & GPE

Zaurus SL-C3100 with:
pdaXrom 1.1.0beta3 & XFCE4, /dev/hda1 256MB swap, /dev/hda2 512MB ext3, /dev/hda3 3328MB FAT32 for stuff
D-Link DCF-660 WiFi CF Card
1GB SD Card
128MB SD Card
128MB CF Card (for flashing)
USB Host Cable

& a Sony VAIO PCG-C1XD Picturebook with accessories...

[img]http://img58.imageshack.us/img58/7319/usbar21mw.gif\" border=\"0\" class=\"linked-sig-image\" /]

paganoll

  • Newbie
  • *
  • Posts: 44
    • View Profile
Problem With Oz 3.5.4 And Samba
« Reply #5 on: March 24, 2006, 04:14:07 pm »
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.    
« Last Edit: March 25, 2006, 07:28:18 am by paganoll »

GenericAnimeBoy

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://
Problem With Oz 3.5.4 And Samba
« Reply #6 on: March 28, 2006, 05:56:44 pm »
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
« Last Edit: March 28, 2006, 05:57:13 pm by GenericAnimeBoy »
Sharp Zaurus SL-5500
OZ 3.5.4 / Opie Image - Flashed March 2006
256mb SimpleTech SD Card
Internet over USB Dock / WinXP
Can't afford a WiFi card yet  =(

GenericAnimeBoy

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://
Problem With Oz 3.5.4 And Samba
« Reply #7 on: March 30, 2006, 12:26:11 pm »
Bump...    
Sharp Zaurus SL-5500
OZ 3.5.4 / Opie Image - Flashed March 2006
256mb SimpleTech SD Card
Internet over USB Dock / WinXP
Can't afford a WiFi card yet  =(

paganoll

  • Newbie
  • *
  • Posts: 44
    • View Profile
Problem With Oz 3.5.4 And Samba
« Reply #8 on: April 25, 2006, 02:04:16 pm »
Quote
I have OZ 3.5.4...
However, I have a problem with samba.

My Solution:
Code: [Select]
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!      
Code: [Select]
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.
« Last Edit: April 25, 2006, 02:23:46 pm by paganoll »

silencer51

  • Full Member
  • ***
  • Posts: 172
    • View Profile
    • http://tchalikias.blogspot.com
Problem With Oz 3.5.4 And Samba
« Reply #9 on: April 29, 2006, 06:18:02 pm »
Thanks paganoll, I'll try it and post the results... :-)
Zaurus SL-5500 with:
128MB CF Card                                    
128MB SD Card
Symbol WiFi CF Card (working, sorta... overheats and shuts down!)
OZ 3.5.4 & GPE

Zaurus SL-C3100 with:
pdaXrom 1.1.0beta3 & XFCE4, /dev/hda1 256MB swap, /dev/hda2 512MB ext3, /dev/hda3 3328MB FAT32 for stuff
D-Link DCF-660 WiFi CF Card
1GB SD Card
128MB SD Card
128MB CF Card (for flashing)
USB Host Cable

& a Sony VAIO PCG-C1XD Picturebook with accessories...

[img]http://img58.imageshack.us/img58/7319/usbar21mw.gif\" border=\"0\" class=\"linked-sig-image\" /]

hvontres

  • Full Member
  • ***
  • Posts: 118
    • View Profile
    • http://
Problem With Oz 3.5.4 And Samba
« Reply #10 on: June 09, 2006, 12:30:41 pm »
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
[span style=\'font-size:10pt;line-height:100%\']Henry von Tresckow[/span]
--------------------------------------
SL-5600, OZ 3.5.4.2 (Hentges), Kernel 2.6.17 :)
1gb Kingston SD (ext2), 5Gb Seagate ST1 (3.03 Fw, fat32)
256 MB Kingston SD (ext2),256MB Viking CF,32MB CF (vfat),
homebuilt GPS unit (Based on RFMD RF 8000)