Index of /archives/net/samba/smbedit

Icon  Name                    Last modified      Size  Description
[PARENTDIR] Parent Directory - [TXT] README 1998-03-04 07:01 5.0K [   ] smbedit1.02alpha8.zip 1999-06-21 05:17 378K [   ] smbedit-1.02dll.exe 1999-06-21 05:16 4.0M
			Welcome to Samba Edit.

This is a Windows95/NT SAMBA smb.conf Editor, and is FREE under the following conditions.

	Smbedit(smbed32) Copyright (C) 1997 Frank Santoro.

	 <a href="mailto:frank@sambatech.demon.co.uk" > Frank Santoro </a>
	 <a href="http://www.sambatech.demon.co.uk" > Smbedit WebSite </a>

	smbedit comes with ABSOLUTELY NO WARRANTY;
	 for details See the GNU PUBLIC Licence.

	The primary creator of the Samba suite is Andrew Tridgell. 
	Later versions incorporate much effort by many net.helpers.
	 Samba can be found at :-
	           http://samba.anu.edu.au/pub/samba

  	smbedit Copyright (C) 1997 Frank Santoro.

	smbedit comes with ABSOLUTLY NO WARRANTY!

			    GNU GENERAL PUBLIC LICENSE
	   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

	This is free software, and you are welcome to redistribute it
	under certain conditions;

	1) The GNU PUBLIC Licence is applicable 
	2) The above text is not removed or edited.


Lets now get started with Smbedit and the only bit of UNIX Setup that you need:-

	On the UNIX SAMBA server add the following share where 'write list = @staff'
	and the SAMBA administrators belong to the UNIX 'staff' group.
						('staff' could be any unix group)


Snip-------------- Add Share to smb.conf ---------------------------
[samba]
   comment = Samba Dir
   path = /usr/local/samba
   public = no
   writable = yes
   printable = no
   write list = @staff
Snip-End------------------------------------------------------------

	Now you should be able to find the smb.conf file by using
		'File', 'Open', (Look In:, 'Network Naighborhood', 'SAMBA server name\samba')
			 Or	(File name: '\\SAMBA server name\samb')
	then click on the lib directory followed by the smb.conf* file you wish to edit.

Recommendation:-
	The first time you use this editor, I would advise that you edit the smb.conf file that
	accompanies smbedit, just so you understand the querks and my preferences, or then always 
	copy to the local PC hard drive before editing.
		 (This will become an Option in a future release.)

Added in smbedit1alpha8

	To use the TestParm button you must first add the [testparm] share to the config file
	 and the samba_testparm shell script to the samba bin directory then select the top level
	+ or - (expand/collapse smb.conf view) Box for the servers conf file you wish to view.
		
	TestParm share and unix script code below.

Snip-------------- Add Share to smb.conf ---------------------------
[testparm]
   comment = Run testparm
   path = /tmp
   preexec =  /usr/local/samba/bin/samba_testparm > /tmp/testparm
   postexec =  /bin/rm -f /tmp/testparm
   public = yes
   writable = no
   printable = no
   write list = @staff
Snip-End------------------------------------------------------------


Snip--------- Install this script into Samba bin directory ---------
#!/bin/sh
#
# Smbedit - samba_testparm script
#
echo "Samba Settings `date`"
/usr/local/samba/bin/testparm << EOF
 
EOF
exit 0
Snip-End------------------------------------------------------------

	Web Man Page to HELP menu Displays smb.conf5.htm in web browser.
            To Install the SAMBA manual Pages connect to the
		SAMBA WebSite:-  http://samba.anu.edu.au/pub/samba
            	Click on the Manual page smb.conf(5) then 
            	File, SAVE AS smb.conf5.htm into the SmbEdit Directory,
		SmbEdit Default = C:\Program Files\Samba Conf Editor.

	Note! 	You may view all .htm files in this Directory.

Added in smbedit1alpha9

	To use the SmbStatus button you must first add the [smbstatus] share to
	the config file and the samba_smbstatus shell script to the samba bin directory then
	select the top level + or - (expand/collapse smb.conf view) Box for the servers conf file,
	this selects the Server you wish to view.
		
	SmbStatus share and unix script code below.

Snip-------------- Add Share to smb.conf ---------------------------
[smbstatus]
   comment = Run smbstatus
   path = /tmp
   preexec =  /usr/local/samba/bin/samba_smbstatus > /tmp/smbstatus
   postexec =  /bin/rm -f /tmp/smbstatus
   public = yes
   writable = no
   printable = no
   write list = @staff
Snip-End------------------------------------------------------------


Snip--------- Install this script into Samba bin directory ---------
#!/bin/csh
#
# Smbedit - samba_smbstatus Script
# 	Note That anything you add to this UNIX script that creates output 
#	will be displayed in the rtf Box.
# 
#	Colour Codes :-
#		# or ; at the start of a line = Line in GREEN
#		: in the line		      = Line in BLUE
#		The word "WARNING:" on a line = Continue in RED
#
echo "#   Samba Status `date` on Unix Server (`uname -n`)"
echo " "
/usr/local/samba/bin/smbstatus -d
echo " "
echo "Samba Processers :- "
foreach PID (`/usr/local/samba/bin/smbstatus -p`)
	echo "	$PID"
end
exit 0
Snip-End------------------------------------------------------------

Added in smbedit1alpha10
	File/share Properties form.

<a href="mailto:smbedit@sambatech.demon.co.uk" > Smbedit Bugs </a>