Diembo
2002-Feb-23 01:39 UTC
[Samba] Re: SMB-server from Win2k -> RH 7.2 - Samba 2.2.1a seen in Network Neighbourhood but
Hi there, first of all I want to thank everybody who gave me good advise so far ;-). Now it's the first time I can give advise, and I'm quite glad that I can start giving insted of only taking now :-) ! Hi Petr, Yes, I have solved my general problems as follows: First of all you have to check your firewall settings, because that was the major problem on my system. On RH 7.2 the netfilter is quite tricky. The easiest way I figured out is to read the manpage of ipchains and editing the file /etc/sysconfig/ipchains because there are the standard-settings for your system. The very easiest way to do this is by making a backup of this file first and starting the K-Menu->system->firewall-config (of course as root) and setting (at least or even ALL ports) the smb-ports to allow (137-139). You do this by putting 137:139 in the corresponding line and you should (only for making it work though, you should tighten the rules later again for security reasons, because the smb-protocol is a major security hole, you can read a lot in the book "Mastering Unix, from Kate Wrighston and Joe Merlino" if you are new to the unix-world, it is very easily understandable!) read a bit about ipchains and netfilter before or while you're dealing with samba (see below). You will also have to check whether the passwords are dealt with ON BOTH win2k (or whatever) and your linux-box. I first turned the password-encryption off (the reg-file and howto goes with the samba-suite itself for win2k). Now, if everything is working fine (again check your firewall settings!) you should be able o ping your linux-box from windows with it's hostname (default is linux). If it it still not working consider setting up a wins-server on your linux-box (smb.conf: wins support = yes; wins server = no #!!!; /usr/local/samba/lib/lmhosts: read the docs for it, would be to long to explain every single detail here). Also, if things are not working, again check if your samba server can be found by the linux-mashine itself by issuing the command: nmblookup linux and nmblookup <win2kmashine>. If everything is working you can try setting up encrypted passwords on BOTH mashines (read encryption.html NOT encryption.txt because you wouldn't find it, it doesn't exist as said in one of the howtos). Remember that you will have to make individual smbpasswords (with smbpasswd -U <username>; as root). If you have any more problems, don't hasitate to ask, but no one is happy with: My smbpasswords don't work. why? as the problem-report. ;-) Also, before you do this all, I recommend installing the new version 2.2.3a because directories differ in the RH-distro and it seems fine to me ;-). Just make a backup of your smb.conf file and others if you need them, uninstall und compile from source or download one of the rpms. cu regards, Diembo On Sat, 23 Feb 2002 15:38, you wrote:> Hi Diembo, > > You wrote: > > I am new to the list and new to Linux as well as to Samba. I've read > > quite a few howtos, man-pages and other docs on samba now. I configured > > my own SMB-server with smbd and nmbd. Of course I generated a smb.conf > > file and my server is accessible and running on the Linux mashine. I can > > connect with smbclient to the Linux-mashine and to the win2k-mashine > > (hostname and service are running). So far, so good. But I cannot connect > > from the win2k-mashine to the linux-mashine, but I can see it in my > > Network-Neighbourhood. When I try the command 'net use h: \\linux\public' > > I get an error-message (on the win2k-mashine, telling me that the host > > deosn't exist). I tried the same command with 'Linux' insted of 'linux' > > but it's not written in capitals anyway (only in the > > network-neighbourhood of win2k). I have encrypted passwords turned on in > > smb.conf. > > I have exactly same problem here - same version of Linux & Samba > and same symptoms. > So I would like to ask You if you find the solution? > > Thanks for response.-- Diembo working @ Linux :-P
Diembo
2002-Feb-28 03:15 UTC
[Samba] Re: SMB-server from Win2k -> RH 7.2 - Samba 2.2.1a seen in Network Neighbourhood but
I have written myself a little shell-script for doing this and placed the line: smb start at the end of the file /etc/profile to start the deamon automatically. The script is attached. I recommend buying the book "mastering unix" as I said before. You can learn to program the shell easily. No worries, it will not be hard. Learning goes much faster when you have a book with a straight line such as this one. Look at the source to get an idea ;-). The script should exist somewhere else but I was too lazy to search it on the web, so I remaid it for practicing my skills. I know this is probably not the best thing to do, because the scripts on the web are mostly already debugged and mine is not. But I think it should work fine and it's rather short, so not many error-sources (I hope). Diembo PS: Have a look at every script someone sends you. Be aware that there are not only friendly people out there ;-). On Wed, 27 Feb 2002 08:45, you wrote:> Diembo wrote: > > Yes, I have solved my general problems as follows: > > First of all you have to check your firewall settings, because that was > > the major problem on my system. On RH 7.2 the netfilter is quite tricky. > > The easiest way I figured out is to read the manpage of ipchains and > > editing the file /etc/sysconfig/ipchains because there are the > > standard-settings for your > > Hi Diembo, > > sorry for late reply. Problem was exactly as You wrote - allowing > smb ports in ipchains. > > > Also, before you do this all, I recommend installing the new version > > 2.2.3a > > I did, but now smbd and nmbd doesn't start automaticaly after reboot. > But when I start them from command-line they run OK. I will have to > read documentation again... > > Thank You very much for help!-- Diembo working @ Linux :-P -------------- next part -------------- A non-text attachment was scrubbed... Name: smb Type: application/x-shellscript Size: 674 bytes Desc: run: chmod a+x /bin/smb on the file to make it executable ;-) Url : http://lists.samba.org/archive/samba/attachments/20020228/c6a6831b/smb.bin
Possibly Parallel Threads
- SMB-server from Win2k -> Red Hat Linux 7.2 - Samba 2.2.1a seen in Network Neighbourhood but not browsable
- security passwd-encryption & netbios-names (wins)-RH 7.2 samba 221a (standard installation from rpm)
- smbpasswd encryption (2.2.3a - RH 7.2 - kernel 2.4.7-10) Win2k
- smbclient & /etc/printcap Why does my printconf-gui doesnt work? (samba 2.2.3a) Red Hat Linux 7.2 enigma-
- smbclient & printing on win2k box with HP Deskjet 560C (Drivers?) SMB 2.2.3a - Kernel 2.4.7, red hat 7.2