[Samba] user help

pravin choubey pravinchaubey at hotmail.com
Mon Nov 18 16:43:01 GMT 2002


Hi,
>   I am trying to install a samba server and browse it through a win2000 
>machine.Since it is in testing stage now ,i have removed all security 
>features.There is already a wide area network and i am trying to install my 
>samba server in it.So that i can browse samba server through other win 
>machines.Do i need a special permission from windows administrator for 
>it.Does he(win administrator) need to allow my samba server machine into 
>the win network.
>The problem is, I can see my samba server but cannot browse it.
>I went through the samba diagnostic list.At the stage of nmblookup,the 
>diagnostic fails.There is a router or a machine somewhere in the windows 
>network(with a specific IP) were all other windows systems are 
>registered.The namblookupo goes there and finds all( windows) machines but 
>cannot find my samba machine.(I used nmblookup -d 2'*' command for it).In 
>the win machine's lmhosts and hosts files i have put the samba server's IP 
>and name.Thanking you.

>With Regards
>Pravin Chaubey

>My smb.conf file is as under


>[global]
>workgroup =sambaserver

>   netbios name= sambamachine

>   log file = /var/log/samba/%m.log
>max log size = 0
>security =share
>encrypt passwords =No   # i have enabled plain password in win 2000
>os level = 40
>wins support = yes
>name resolve order=wins lmhosts hosts bcast  # i have put my samba and 
>windows names(and IP) in hosts file
>[tmp]
>comment=temporary
>#file path=/tmp
>read only=yes
>path =/tmp

>[homes]
>   comment = Home Directories
>   browseable =yes
>   writable = yes
>path=/home/%u/Public
>only user=no
>[netlogon]
>   comment = Network Logon Service
>   path = /usr/disk/netlogon
>  root preexec=/usr/disk/netlogon/genlogon.pl %U %G %L
>  root postexec=rm /usr/disk/netlogon/%U.bat


>The logon file genlogon is below:


>($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time);
>open LOG,">>/var/log/samba/netlogon.log";
>print LOG
>"$mon/$mday/$year $hour:$min:$sec -User $ARGV[0] logged into $ARGV[1]\n;
>close LOG;

>open LOGON, ">/usr/disk/netlogon/$ARGV[0].bat";
>print LOGON "\@echo off\r\n";

>print LOGON "NET TIME \\\\$ARGV[2] /SET /YES\r\n";
>print LOGON "NET USE H: \\\\$ARGV[2]\\$ARGV[0]\r\n";
>print LOGON " NET USE I: \\\\$ARGV[2]\\APPS\r\n";
>print LOGON "NET USE X: \\\\$ARGV[2] \\XFER\r\n";

>if($ARGV[1] eq "SOFTDEV" || $ARGV[0] eq "softdev")
>{
>print LOGON "NET USE M: \\\\$ARGV[2]\\SOURCE\r\n";
>}

>if($ARGV[1] eq "SUPPORT" ||$ARGV[0] eq "support")
>{
>print LOGON "NET USE S: \\\\$ARGV[2]\\SUPPORT\r\n";
>}

>if($ARGV[1] eq "ADMIN" ||$ARGV[0] eq "admin")
>{
>print LOGON " NET USE L: \\\\$ARGV[2]\\ADMIN\r\n;
>print LOGON " NET USE K: \\\\$ARGV[2]\\MKTING\r\n";
>}

>close LOGON;








_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail




More information about the samba mailing list