Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SAMBA] Creating a config file...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nE0
Tux's lil' helper
Tux's lil' helper


Joined: 08 Aug 2002
Posts: 146
Location: The Netherlands, Breda

PostPosted: Fri Jan 09, 2004 8:53 am    Post subject: [SAMBA] Creating a config file... Reply with quote

First: No, I'm not starting another topic in which I ask for help in configuring samba.
This is for those who do not want to read through 30.000 man pages (Yes, they are out there) ;)

In my endless struggle to try and automate everything (hey, I'm a Systems Administrator, why do stuff if it can be done for you) I started a Visual Basic Script for linux dummies/noob's and for people who just want a basic samba config file, which they can edit and implove.

"Why VBscript??" you might ask, well that's the only scripting language I know, and it's simple but effective.

To create a samba config file there are some very basic, yet important setting's you must not forget.
Even the most thoroughly samba expert will sometimes forget a line which is important.

"So, why are you starting this topic again??" Well, I need some real experts, to help me put together the perfect starting config file for samba.

What have I got sofar: (It's not much yet, but I sterted yesterday, during work hours ;) )

Code:

# Global parameters
[GLOBAL]
   NETBIOS NAME = NetBIOS-Name
   WORKGROUP = WORKGROUP
   SERVER STRING = My Samba machine
   DOMAIN MASTER = Yes
   LOGON SCRIPT = logon.bat # Don't forget to create one
   OS LEVEL = 64
   BIND INTERFACES ONLY = Yes
   ENCRYPT PASSWORDS = Yes
   PASSWD PROGRAM = /usr/bin/passwd %u
   PASSWD CHAT = *New*UNIX*password* %nn *Retype*new*UNIX*password* %nn *Enter* new*UNIX*password* %nn *Retype*new*UNIX*password* %nn *passwd: *all* authentication*tokens*updated*successfully*
   PASSWD CHAT DEBUG = Yes
   UNIX PASSWORD SYNC = Yes
   LOG LEVEL = 2
   LOG FILE = /var/log/samba/samba.log.%m
   MAX LOG SIZE = 250
   TIME SERVER = Yes
   SOCKET OPTIONS = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192

[NETLOGON]
   COMMENT = LOGIN SERVICE
   PATH = /home/netlogon # Don't forget to create this dir. Change if nessecary
   WRITE LIST = root
   CREATE MASK = 0644
   GUEST OK = Yes

[DEFSHARE]
   COMMENT = DEFAULT SHARE
   PATH = /home/share # Don't forget to create this dir. Change if nessecary
   WRITE LIST = root
   CREATE MASK = 0644
   GUEST OK = No


During the runnign of the script I wrote, you are asked to specify if the box will be a domain master or not. If not, this wil result in a different line in de config file, regarding the domain master yes/no and OS level.
The same for password encryption, time server, etc.. Basicly, I want to ask a question for every yes/no option, so you can have total controll over it.

Do you know some setting's for samba which I have forgotten, or I might not know about, then please tell me.

I have considered to post my VB script also, But I wont. If you like to help, I will consider mailing the file to you.

That's it for now.. :P
_________________
All things considerring! I'm considerring to...never mind!
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sat Jan 10, 2004 5:40 pm    Post subject: Re: [SAMBA] Creating a config file... Reply with quote

nE0 wrote:
First: No, I'm not starting another topic in which I ask for help in configuring samba.

Actually, yes, you are.

nE0 wrote:
This is for those who do not want to read through 30.000 man pages (Yes, they are out there) ;)

And how exactly do you expect to become fluent in Samba without reading the docs ?

nE0 wrote:
In my endless struggle to try and automate everything (hey, I'm a Systems Administrator, why do stuff if it can be done for you) I started a Visual Basic Script for linux dummies/noob's and for people who just want a basic samba config file, which they can edit and implove.

"Why VBscript??" you might ask, well that's the only scripting language I know,

You are a "Systems Administrator" and you only know VDscript? Oh my - that's rich...

nE0 wrote:
and it's simple but effective.

Brrfgl..


nE0 wrote:
To create a samba config file there are some very basic, yet important setting's you must not forget.
Even the most thoroughly samba expert will sometimes forget a line which is important.

Don't bet your life on it.

nE0 wrote:
"So, why are you starting this topic again??" Well, I need some real experts, to help me put together the perfect starting config file for samba.

Noted - read on:

nE0 wrote:
I have considered to post my VB script also, But I wont. If you like to help, I will consider mailing the file to you.


Bah. You demand help from "experts" to help you develop something that only you have access to ?

<plonk>
Back to top
View user's profile Send private message
dreamer
Apprentice
Apprentice


Joined: 16 Aug 2003
Posts: 236

PostPosted: Sat Jan 10, 2004 9:26 pm    Post subject: Reply with quote

@adaptr : Wees een beetje aardig :P

@nEO : Although adaptr sounds a bit cynical, he's rigth. You should read some docs about samba before creating a frontend. You can start here

And if i'm not mistaken, there is already an samba configuration tool available, called webmin

One last piece of advice. Quit using VB! :)
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sat Jan 10, 2004 9:36 pm    Post subject: Reply with quote

dreamer wrote:
@adaptr : Wees een beetje aardig :P


Hee - where's your location info - are ye nae proud to be a cloggie?

Own up there, that man! :lol:
Back to top
View user's profile Send private message
nE0
Tux's lil' helper
Tux's lil' helper


Joined: 08 Aug 2002
Posts: 146
Location: The Netherlands, Breda

PostPosted: Mon Jan 12, 2004 7:12 am    Post subject: Reply with quote

First off:
Laten we het in het engels houden.. Das wel zo aardig voor de rest van het Forum.

Second: I did not say that I'm the one who does not wat to read al the howto's. My god I have read a few. :'(

Reading my post again, yes you might say I need help to creating a default samba config. (Don't shoot me)

Quote:

You are a "Systems Administrator" and you only know VDscript? Oh my - that's rich...

Next to my knowledge of: Visual Test, VBA, VB, Dos batch, Javascript, and some very little bash scripting, VBscript is sufficient for me to complete this task.
vbscript is the easiest. period

Quote:
Bah. You demand help from "experts" to help you develop something that only you have access to ?


Have you ever tried to give 100 people a bit of source code, ask them to enhance it, and tried to merge it after a week of coding. Probably not.
I will be happy to post the script.. I would not even place my name/nick in the source..

Quote:
And if i'm not mistaken, there is already an samba configuration tool available, called webmin

Oh, come on.. Webmin is nice for noobs, but I would never run it in a professional environment. (and yes, I do work for a company, with over 17.000 employees)

Again, I will read the doc's (I'm not that lame)

But, okay, I have got the general idea. I'll stop posting to this topic (Except for the nessecary replies)
_________________
All things considerring! I'm considerring to...never mind!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum