Samba config

Support section for FREESCO v0.3.x 3rd Party Packages

Samba config

Postby strampke » Wed Nov 11, 2009 2:59 pm

Hi,

I cannot get Samba going. 2.2.8
To make it as easy as possible for XP to access the Samba share I created /mnt/bootdev/sambadirectory
did a chmod 0777 on /mnt/bootdev/sambadirectory

This is the smb.cfg
Code: Select all
# Samba config file created using SWAT
# from mycomputer (172.16.0.72)
# Date: 2009/11/11 20:44:59

# Global parameters
[global]
        workgroup = OFFICE
        netbios name = INET
        server string = Samba FREESCO Server %v
        interfaces = 192.168.0.1/24 10.0.0.1/24 172.16.0.1/24 127.0.0.1
        security = SHARE
        encrypt passwords = Yes
        log level = 1
        log file = /usr/local/samba/var/samba.%m
        max log size = 1000
        name resolve order = wins hosts lmhosts bcast
        deadtime = 15
        lpq cache time = 30
        read size = 8192
        socket options = TCP_NODELAY IPTOS_LOWDELAY
        load printers = No
        character set = ISO8859-1
        os level = 65
        lm announce = No
        wins server = 172.16.0.40
        invalid users = ppp up down block unblock force unforce
        guest ok = Yes
        hosts allow = 10.0.0. 127. 192.168.0. 172.16.0.
        printing = nt

[www]
        path = /www
        create mask = 0777
        guest ok = No

[wwa]
        comment = Private WWA Area
        path = /wwa
        read only = No

[data]
        path = /data
        read only = No

[sambadata]
        path = /mnt/bootdev/sambadirectory


I even created a new user to try to log in somewhere but the Samba never asked me in any different setup for a password.
or should I create a user named mycomputer

O yes, xp tells me \\Inet is not accessible. You may not have the proper access rights. Contact the network administrator. etc.
User avatar
strampke
Junior Advanced Member
 
Posts: 150
Joined: Mon Jul 29, 2002 12:36 pm
Location: Delden, Netherlands

Re: Samba config

Postby dingetje » Thu Nov 12, 2009 5:01 pm

First of all, it isn't necessary to bind to all those different IP ranges. Just bind to the ones of your local LAN(s).

I have these lines in my smb.conf in the [global] section
Code: Select all
   lm announce = Yes
   preferred master = Yes
   local master = Yes
   domain master = Yes
   wins support = Yes


instead of using \\inet try \\ip-address (where ip-address is the local LAN ip of your freesco)
GreetZ
http://dingetje.homeip.net

"Software is like sex: it's better when it's free." - LINUS TORVALDS
User avatar
dingetje
FREESCO GURU !!
 
Posts: 1004
Joined: Wed Nov 14, 2001 12:13 pm
Location: The Netherlands

Re: Samba config

Postby Lightning » Thu Nov 12, 2009 8:09 pm

I have had some problems myself getting 2.2.8 working on FREESCO dependably. Personally I run Samba 2.2.7a on all of my own systems.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 3045
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Re: Samba config

Postby dingetje » Fri Nov 13, 2009 6:19 am

Just for the record, I'm running 2.2.8
GreetZ
http://dingetje.homeip.net

"Software is like sex: it's better when it's free." - LINUS TORVALDS
User avatar
dingetje
FREESCO GURU !!
 
Posts: 1004
Joined: Wed Nov 14, 2001 12:13 pm
Location: The Netherlands

Re: Samba config

Postby strampke » Fri Nov 13, 2009 6:10 pm

My adventures and I hope others can learn from it.

Ok, I can get a connection from XP (hvdw) to my Freesco Samba server (inet).
When I log in with the name "abcd"and password "efgh" I added to the passwd file access is rejected.
But the user then is changed from "abcd" to hvdw\abcd
log.smbd says
[2009/11/13 23:12:58, 0] smbd/server.c:main(707)
smbd version 2.2.7a started.
Copyright Andrew Tridgell and the Samba Team 1992-2002
[2009/11/13 23:12:58, 1] lib/debug.c:debug_message(258)
INFO: Debug class all level = 1 (pid 2869 from pid 2869)

samba.hvdw says
[2009/11/13 23:24:01, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1369)
unable to open passdb database.
[2009/11/13 23:24:01, 1] smbd/password.c:pass_check_smb(545)
Couldn't find user 'abcd' in passdb.
[2009/11/13 23:24:01, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1369)
unable to open passdb database.
[2009/11/13 23:24:01, 1] smbd/password.c:pass_check_smb(545)
Couldn't find user 'abcd' in passdb.
[2009/11/13 23:24:01, 1] smbd/reply.c:reply_sesssetup_and_X(1001)
Rejecting user 'test': authentication failed

Then I created a smbpasswd file with user "abcd"
GOTCHA!!!!

Next thing to figure out is why in XP explorer my XP clients have disappeared and only my Freesco Samba share is present.

Next step was installing 2.2.8 and it works too.
But now I have to find out why I can gain access without even being prompted for name and password.

The main secret to everything is this:
- Goto smb.conf
- delete or comment the line # smb passwd file = /bin/passwd
- go to /boot/pkg/usr/local/samba/bin
- create a password file with smbpasswd -a abcd , where abcd is your new user
- rc_samba restart and you're done
Who knows knows, who doesn't doesn't.
User avatar
strampke
Junior Advanced Member
 
Posts: 150
Joined: Mon Jul 29, 2002 12:36 pm
Location: Delden, Netherlands

Re: Samba config

Postby dilberts_left_nut » Fri Nov 13, 2009 7:44 pm

SWAT helps a lot for setting sensible defaults and managing shares & users.
I think your vanished workgroup will be to do with master browser elections and/or WINS server setting.
User avatar
dilberts_left_nut
Member
 
Posts: 71
Joined: Thu Sep 02, 2004 8:25 am
Location: Christchurch, NZ

Need for speed

Postby strampke » Sun Nov 15, 2009 5:40 pm

From what I've read in this forum Freesco's Samba isn't quite swift.

@work I have an P4 3200 XP pro computer which hosts my files for a Btrieve database which is ised by 5 clients.
A new software updat has slowed down the program significantly (very much so)
Now I try to enhance the system and first thought was to replace the Freesco box with separate file server with a Freeco box with built-in Samba server.
I now doubt if this is the right choice having seen comments of Freesco-Samba being relatively slow. (as far as it is not dependent from the computer P4-3200)

The other choice could be to set up a CentOS server on an AMD 64 3200+

Can you advise me on what choice to make.

Besides: What is the max capacity Freesco can handle for a hd nowadays?
Who knows knows, who doesn't doesn't.
User avatar
strampke
Junior Advanced Member
 
Posts: 150
Joined: Mon Jul 29, 2002 12:36 pm
Location: Delden, Netherlands

Re: Samba config

Postby Lightning » Sun Nov 15, 2009 6:28 pm

Can you advise me on what choice to make.

Besides: What is the max capacity Freesco can handle for a hd nowadays?

The biggest problem FREESCO has being a Samba server is hard drive throughput because most SATA and UDMA drives do not operate past there most basic modes. However if you run SCSI drives that are supported this can be gotten around. There is also a single file size restriction because you can't exceed 2GB on any single file. The newer FREESCO kernels have the capability to handle any size of hard drive so exceeding 137GB is no longer a restriction.
When 0.4.3 is released running two IDE drives in raid0 will definitely help the drive speed issue.
As for a recommendation on what to do, I can just provide the facts about FREESCO.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 3045
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA


Return to 3rd Party Package Support for FREESCO v0.3.x

Who is online

Users browsing this forum: No registered users and 0 guests

cron