View previous topic :: View next topic |
Author |
Message |
nE0 Tux's lil' helper
Joined: 08 Aug 2002 Posts: 146 Location: The Netherlands, Breda
|
Posted: Fri Jan 09, 2004 8:53 am Post subject: [SAMBA] Creating a config file... |
|
|
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.. _________________ All things considerring! I'm considerring to...never mind! |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sat Jan 10, 2004 5:40 pm Post subject: Re: [SAMBA] Creating a config file... |
|
|
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 |
|
|
dreamer Apprentice
Joined: 16 Aug 2003 Posts: 236
|
Posted: Sat Jan 10, 2004 9:26 pm Post subject: |
|
|
@adaptr : Wees een beetje aardig
@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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sat Jan 10, 2004 9:36 pm Post subject: |
|
|
dreamer wrote: | @adaptr : Wees een beetje aardig |
Hee - where's your location info - are ye nae proud to be a cloggie?
Own up there, that man! |
|
Back to top |
|
|
nE0 Tux's lil' helper
Joined: 08 Aug 2002 Posts: 146 Location: The Netherlands, Breda
|
Posted: Mon Jan 12, 2004 7:12 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|