LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-03-2003, 03:44 PM   #1
jongkees
LQ Newbie
 
Registered: Apr 2003
Location: The Netherlands
Distribution: RedHat 8.0
Posts: 3

Rep: Reputation: 0
Question User logon problem, from WinME & 98 to Samba


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 ?

Anyone a sugestion?

Robert
 
Old 04-03-2003, 03:53 PM   #2
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Have you got encrypt passwords=yes in your smb.conf?
 
Old 04-03-2003, 03:55 PM   #3
jongkees
LQ Newbie
 
Registered: Apr 2003
Location: The Netherlands
Distribution: RedHat 8.0
Posts: 3

Original Poster
Rep: Reputation: 0
Yes, passwords are encrypted in smb.conf.

The registery modification where some speak of doesn't work also.


But if it is about encrypting; is that user-story also solved in that way?
 
Old 04-03-2003, 04:08 PM   #4
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
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.
 
Old 04-03-2003, 04:14 PM   #5
TexasDex
Member
 
Registered: Feb 2003
Location: The Attic. Nowhere near Texas.
Distribution: Gentoo, Kubuntu, formerly LFS, SuSE, and RedHat
Posts: 133

Rep: Reputation: 15
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)

eg:
smb.conf
[global]
encrypt passwords = yes
hosts allow = 192.168.
workgroup = mygroup
netbios name = servername
include = /etc/smaba/smb.conf.%m

smb.conf.machinename
[home]
path = /home/%u
guest ok = no
(etc...)

I hope I didn't confuse you, I tried to simplify this because I just barely understand it myself
 
Old 04-03-2003, 10:13 PM   #6
Magueta
LQ Newbie
 
Registered: Apr 2003
Location: Toronto, Ontario, Canada
Distribution: Red Hat
Posts: 29

Rep: Reputation: 15
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.

Joe
 
Old 04-04-2003, 01:28 AM   #7
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Win 95 was plain text i think, 98 is definitely encrypted.
 
Old 04-04-2003, 02:01 AM   #8
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
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
 
Old 04-04-2003, 01:34 PM   #9
jongkees
LQ Newbie
 
Registered: Apr 2003
Location: The Netherlands
Distribution: RedHat 8.0
Posts: 3

Original Poster
Rep: Reputation: 0
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.

While surfing I saw the following document, and hoped to get something similar?! See the picture in this document on page 3

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!

Robert
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba logon problem Ossar Linux - Networking 4 03-17-2005 03:26 PM
Samba and XP logon problem chuck77 Linux - General 14 05-31-2004 12:02 PM
Samba: how to create a logon script file when i add a system user. heero82 Linux - Software 2 06-19-2003 08:29 PM
SAMBA & logon NT domain sqn Linux - Networking 19 03-22-2003 08:15 AM
Samba Pdc & Account Logon Issues TheTrexx Linux - Networking 2 01-06-2003 09:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration