[Samba] Listing samba 2.2.8a (redhat 8) verables to a text file
Peter Atkin
peter at computer-facilities.com
Sat Jun 28 18:50:57 GMT 2003
I have been using samba for a while now with great sucesses it has replaced my Windows 2000 server completely, I am using
a mix of windows98, 2000 and XP with no problems.
However i would like to do two things,
1) print samba veriables to a log file in a location of my choice
2) When a windows test user logs on, i would like to display a windowed dialog box showing the verious samba veriable
stats.
Can this be down without melting my brain, I have tried verious options without much sucsess.
Just for refernace here is my current current smb.conf file.
# Computer Facilities
# currently and always under delvelopment using samba 2.2.8a on linux 8
# /etc/samba/smb.conf
# last edit date was 22/06/2003 (D/M/Y)
[Global]
workgroup = cfu
netbios name = linuxserver
server string = Samba %v File Server on %L
domain logons = yes
domain master = yes
dns proxy = No
preferred master = yes
local master = yes
os level = 99
security = user
domain admin group = @admin
domain logons = Yes
;socket options = TCP_NODELAY SO_SNDBUF=20480 SO_RCVBUF=20480 IPTOS_LOWDELAY
lock spin time = 15
lock spin count = 100
level2 oplocks = no
oplocks = no
getwd cache = yes
log level = 3
log file = "/var/log/samba/%U-%m.log"
max log size = 0
logon path =
logon home =
logon drive = H:
logon home = "\\Nas_server\User\%u"
logon script = "%u.bat"
browseable = no
default case = lower
case sensitive = no
preserve case = no
encrypt passwords = yes
deadtime = 15
time server = yes
hosts allow = 10.0.0.0/255.255.255.0 127.0.0.1 EXCEPT 10.0.0.100 10.0.0.4 10.0.0.1
hosts deny = 0.0.0.0/0
hide unreadable = yes
interfaces = 10.0.0.0/255.255.255.0 127.0.0.1
bind interfaces only = Yes
unix password sync = true
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n
*passwd:*all*authentication*tokens*updated*successfully*
add user script = /usr/sbin/useradd -d /dev/null \
-d /dev/null \
-g machines \
-s /bin/false \
-M %u
[homes]
comment = Users network home directory
path = /mnt/nas/users/u%
;read only = no
;create mode = 0600
;directory mode = 0700
[netlogon]
comment = Network Logon Service
path = /mnt/nas/logon
write list = @admin
guest ok = no
[backup]
path = /backup
valid users = @admin
read only = yes
write list = @admin
force create mode = 0775
force group = admin
directory mask = 0775
[source]
browseable = yes
path = /mnt/nas/source
valid users = @admin
read only = yes
write list = @admin, root
force create mode = 0775
force group = admin
directory mask = 0775
[public]
browseable = yes
path = /mnt/nas/public
valid users = @admin
read only = yes
write list = @admin, root
force create mode = 0775
force group = admin
directory mask = 0775
[music]
comment = MP3 Music
browseable = yes
path = /mnt/nas/music
valid users = @staff
read only = yes
write list = @admin
force create mode = 0775
force group = admin
directory mask = 0775
Kind Regards
Peter
More information about the samba
mailing list