Author Topic: Samba And Cacko3k  (Read 4447 times)

terryleung83

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Samba And Cacko3k
« on: August 19, 2005, 01:26:22 pm »
In the readme file of cacko3kb1, it says that the samba is configured to start from inetd

is it means that i only need to start inetd and then i can access samba by typing //ip/home from the start-> run?

but the fact is that i cant get it running? anyone know the answer?

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Samba And Cacko3k
« Reply #1 on: August 19, 2005, 01:31:19 pm »
inetd is a traffic cop that redirects incoming service requests.  samba requests to inetd will get samba to respond.  Sort of like daemon on demand.  I assume there should be an smb.conf for you to configure.  That's where I would start.
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

terryleung83

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Samba And Cacko3k
« Reply #2 on: August 19, 2005, 07:54:11 pm »
I discover that the samba service is enabled at default(cacko3kbeta1)

AND ANYONE CAN ENTER MY MD AND DELETE MY FILE WITHOUT ENTER A PASSWORD!!
(sorry to shout here , but it is really surpise me)
just type \\Zaurus\home and anyone can access the hdd3!  

I want to ask how to make it possible to set a password for samba?

i try to set this in config file
Code: [Select]
null password=no
guest ok=no

and this in terminal
Code: [Select]
passwd zaurus //give a password to zaurus
now \\Zaurus\home dont work anymore
but \\Zaurus\home?zaurus still work!!!

I have read some here http://www.samba.org/samba/docs/man/smb.conf.5.html
but just cant get it  

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Samba And Cacko3k
« Reply #3 on: August 19, 2005, 09:04:13 pm »
there should be a command smbpasswd to set the passwd and account.  This is separate from the system account.
Code: [Select]
smbpasswd -a the second smbpasswd is a file called smbpasswd that will store the password.  You will have to make sure you edit the smb.conf file to make the user a valid usr.
« Last Edit: August 19, 2005, 11:13:46 pm by bluedevils »
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

terryleung83

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Samba And Cacko3k
« Reply #4 on: August 19, 2005, 09:10:13 pm »
i discover that with the above settings, i can no longer acess any files in the system after a reboot
at least the files are protected now

but about setting a password..
i type smbpasswd ....just got command not found...

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Samba And Cacko3k
« Reply #5 on: August 19, 2005, 09:58:24 pm »
ah yes I just had a look and you are right.  I guess we need to find a working smbpasswd binary.  We should also be able to specify the passwd file to use in smb.conf

BTW you could always just take samba out of inetd.conf (and other stuff) or add iptable rules
« Last Edit: August 19, 2005, 10:00:02 pm by bluedevils »
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

terryleung83

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Samba And Cacko3k
« Reply #6 on: August 19, 2005, 10:31:44 pm »
As it seems that it is not possible to set a password
My final solution is to redefine the path of the home folder in the config file
now, only the Shared_Files can be access through samba
(I deleted the system folder)
« Last Edit: August 19, 2005, 10:34:56 pm by terryleung83 »

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Samba And Cacko3k
« Reply #7 on: August 19, 2005, 11:07:51 pm »
I found smbpasswd here
smbpasswd

and implemented it.  Works like a charm
« Last Edit: August 19, 2005, 11:38:43 pm by bluedevils »
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Samba And Cacko3k
« Reply #8 on: August 19, 2005, 11:40:25 pm »
woops the link was wrong...I fixed it, but you may have to run it through a translator
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

terryleung83

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Samba And Cacko3k
« Reply #9 on: August 20, 2005, 11:20:08 am »
I installed it
but it doesnt work

su
smbpasswd -a zaurus

it said :
params.c:OpenConFile(0 - Unable to open configuration file "/usr/local/samba/lib/smb.conf":
             No such file or directory
Can't load /usr/local/samba/lib/smb.conf - run testparm to debug it

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Samba And Cacko3k
« Reply #10 on: August 20, 2005, 08:56:18 pm »
my cacko rom already has a link to smb.conf

just make one

Code: [Select]
ln -s /home/root/usr/local/samba/lib/smb.conf /usr/local/samba/lib/smb.conf
where the s means to make it symbolic, the first smb.conf is the real one and the second smb.conf is the link smbpasswd is looking for.
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)