Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to get my Windows systems (98, ME and maybe XP) to work on Samba. I visited almost every forum on the internet to find my answer, but with no succes.
What I want is this: We have an WinNT domain and mailserver for all the Win-systems in the company. What I want is an Linux server (RadHat 8.0) wich may only be accessible by 4 systems on the LAN. How can this be done in a save way?
I have the server running and thought that I had to make 4 users wich can logon the the Linux-system. But I can't enter an username and password combination when I want to open an shared directory on Linux.
I have an running RH server, and Samba is working perfectly on it. When I set security to share than it's posible to see all filles inside.
- How can I logon to linux with e.g. user: CS03 and password testt?
- Can I than have my own home-dir?
- Can I read,modify and execute files and dir's in an other shared dir, like /usr/database ?
If you've got encrypt passwords=yes, then win98 etc should connect OK. I'd avoid the registry hack if I was you.
You need to set up a shared directory, and add users with access rights to that directory. I just add users with the default home directories, my family deserve some storage space . You can of course create users with no home, just to access the shared directory (make sure it's chmod 0777).
Once the accounts are setup on the RedHat box, you need to add them to smbpasswd. i can't remember how to do it manually, but RH8 should come with SWAT. Click the red hat on the panel, -> extras ->server settings -> samba configuration. Should open a browser window, login as root, and you are away. You may need to remove the # from in front of the swat line in /etc/xinetd.conf, and enable SWAT via the services setup thing.
That should get you going. If you've not got a GUI, better read the O'Reilly book, someone else was talking about it earlier, it's here... O'Reilly
Last edited by drjimstuckinwin; 04-03-2003 at 04:09 PM.
Distribution: Gentoo, Kubuntu, formerly LFS, SuSE, and RedHat
Posts: 133
Rep:
if the machines which need to log in have static IP addresses or are the only machines on a subnet you can use
hosts allow = 192.168.123.
to include the entire 123 subnet (assuming you use 192.168 ip addresses.
or you can use
hosts allow = 192.168.123.001 192.168.002 (etc...)
to allow only the IP adresses specified there
Alternatively (esp. if you have dynamic IPs) you can have the smb.conf file load alternate configurations based on the netbios name of the requesting PC. It may also be possible to config this based on the workgroup of the requesting PC, but I won't show that here.
in the [global] section you would have the line
include = /etc/samba/smb.conf.%m
(if that's your smaba directory)
You would include a file for each machine name.
and in your samba config directory these files would be there
smb.conf
smb.conf.box1
smb.conf.secondcomp
smb.conf.machine3
smb.conf.numberfour
each of the smb.conf.netbiosname files would have the shares you want for each machine (you can even make them different for each box)
Why not just give the machines that you want to access the directories their own domain? Also, are you sure that Win98 uses encrypted passwords? I could have sworn that it used plain text passwords.
The nature of your problem is a bit fuzzy. When you say you can't enter a username and password, do you mean that that windows doesn't give you the dialog box, or that the share name isn't found, or that what you type doesn't go in the box, or that the username and password are just not accepted?
Its best to be clear about these things
What I would like is that I can choose on my system with wich user I connect to Samba.
When I want to logon as 'cs03' with it's password, I aspect that I have to tell Windows what user want's to connect to linux. Where does Samba look if it want's to know the user wich is logging in. Or, what does windows communicate to the server to tell it wich user want's to connect.
I downloaded the O'Reilly 's book today. I will read that and hope to find some answers! I can't believe that it's not possible with samba, or maybe I have an error in what to expect.
This weekend I'm gonna read much, and hopefully I can implement an working solution on Monday.
Hopefully I made myself clear. If not please ask!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.