LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-20-2006, 10:17 AM   #1
Dave S
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Rep: Reputation: 0
Samba - login problems


Hi,

I have been fighting with Samba for 2 weeks now. Heres a breakdown:

I am trying to set up RH 9 with Samba 2.2.7 to act as a file server for 21 Win XP home edition pcs.

I have always been able to see the server from the clients. But not been able to log in.

Now I can login. But, only on one client. If I try to login on another client, sometimes it will let me in, but most of the time no. If I restart the client that it is logging me in on, then it will refuse. It says either "there is a computer with the same name on the network, change the computer name" or "network path not found"

I have all the clients set up with static IP addresses. 192.168.0.(number). I set the RH server IP address to 192.168.0.2. There is a loopback address of 127.0.0.1

This seems to be a naming problem??? Am I right? I do not know much about WINS or DNS or anything like that. Is someone can explain, thank u.

All the clients have one login (student) with no password. All I want is for the 21 win xp clients to be able to see one folder on the server without having to type in passwords etc to access it. Security is not an issue (yet)

Can someone please help me? I have limited internet access, twice a week. And am determined to stick this out to the end!!

Thanks

Dave
 
Old 07-20-2006, 11:29 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 63
Try to change the name of your windows clients.
In the windows, click with the right button on computer, properties, Name of computer tab. Make sure the name of computer is unique in your network.
 
Old 07-20-2006, 04:45 PM   #3
iamwilliam
Member
 
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Rep: Reputation: 21
Hi Dave
could u post your smb.conf file
 
Old 07-21-2006, 07:31 AM   #4
sco1984
Member
 
Registered: Sep 2005
Location: Pune, India
Distribution: openSUSE 13.1
Posts: 132

Rep: Reputation: 15
Exclamation

Quote:
Originally Posted by Dave S
Hi,

I have been fighting with Samba for 2 weeks now. Heres a breakdown:

I am trying to set up RH 9 with Samba 2.2.7 to act as a file server for 21 Win XP home edition pcs.

How can you invite Windows XP Home edition PC's in to any network?
I shocked to hear this .....Windows XP Home edition has no networking support. Even if you connect two laptops or desktops over
cross over cable and trying to see those comps in a network..
It's not possible ....
 
Old 07-21-2006, 07:46 AM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
It sounds like you want to use the security=share mode. With XP Home edition, you can't use security=domain or security=ads. Also, look at the "ForceUser" and "ForceGroup" options. I think you want to force the user to guest and enable read and write access to the guest user.

First, I would recommend installing Fedora Core. Red Hat 9 is very old, and Samba 2.2 doesn't have some of the features of Samba 3.

Your smb.conf file probably should look something like this:
Code:
[global]
   workgroup = WORKGROUP
   security  = SHARE
   printcap name = CUPS
   show add printerwizard = No
   wins support = yes

[students]
   comment = Students Files
   path    = /data/studentfiles
   read only = No
   force user = student
   force group = school
   guest ok = Yes
   nt acl support = No

[printers]
   comment = Print Temporary Spool Configuration
   path    = /var/spool/samba
   printable = Yes
   guest ok = Yes
   use client driver = Yes
   browseable = No
I adapted this from example 2.2 of Samba-3 by Example. The wins support might not work with samba 2.2.

The user and group name, I just made up. You can create and use your own using a more appropriate name. Same goes for the the name and location of the share. Use the path that you already have on the server.


Setting the SUID/SGID bits on the directory may eliminate access problems on stored files:
Change the permissions of /data and /data/studentfiles:
sudo mkdir /data
sudo mkdir /data/studentfiles
sudo chown -R student:school /data
sudo chmod -R ug+rwxs,o-w,o+rx /data

This will cause all saved files to have "student" ownership and "school" group access.

On the windows computers set the wins ip address to 192.168.0.2.

Check if you have the "samba-docs" package. It may include documentation containing a similar example. With Samba3, it would contain the "Samba 3 by Example" book.

I think that not having a username may cause problems in windows networking. However, not having a password should be ok. Every windows computer needs a uniq name. You could give them simple names like xp1, xp2, ... xp20.

Good Luck.

Last edited by jschiwal; 07-21-2006 at 08:22 AM.
 
Old 07-21-2006, 07:51 AM   #6
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 63
Quote:
Originally Posted by sco1984
How can you invite Windows XP Home edition PC's in to any network?
I shocked to hear this .....Windows XP Home edition has no networking support. Even if you connect two laptops or desktops over
cross over cable and trying to see those comps in a network..
It's not possible ....
Yes, WinXP HOME has BASIC network file sharing support. It supports only WORKGROUP network mode.

WinXP HOME has not support for join to a domain. You can't use WinXP Home to work with an AD server.

We use lots of WinXP Home here in the work to access shares in a Workgroup.
 
Old 07-21-2006, 08:04 AM   #7
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
I think I do what you are wanting, but with less pcs (but at least one of them does run XP Home). I have one shared folder that anyone on the network can get to without passwords. The folder and all its contents are 'owned' by the user guest. This is my /etc/samba/smb.conf (i have changed some bits out of paranoia) :
Code:
[global]
        workgroup = Workgroup
        server string = Shared Store
        security = SHARE
        null passwords = Yes
        guest account = guest
        log file = /var/log/samba/log.%m
        comment = Linux Samba Server
        hosts allow = 192.168.0., 127.

[share]
        comment = Shared files
        path = /path/to/Share
        read only = No
        guest only = Yes
        guest ok = Yes
But this is Samba 3.0.22
The other thing I have done is mapped the IP of the server to it's name on the clients. You need to add an entry in the hosts file in C:\Windows\system32\drivers\etc\ or somewhere nearby - your entry would look something like this:
Code:
192.168.0.2       servername
but the location of this file varies between Win distributions - there should be some help on the machines.

Last edited by bernied; 07-21-2006 at 08:05 AM.
 
Old 07-25-2006, 07:40 AM   #8
Dave S
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

Thanks guys. I will try all suggestions made and get back to you all by the end of the week.

I now have all clients seeing the server, but getting the message. "you are not authorized to log on from this machine"

Again thanks, and I will let you know by the end of the week.

Dave
 
Old 07-26-2006, 09:31 AM   #9
Dave S
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Guys,

Sorry to say, but I tried all of the above and it results in the exact same problem. Either the client tells me "network name cannot be found", or "you are not authorized to log on from this machine"

The Win Home clients can see each other and share files between themselves no problems. So I really do not think its a hardware problem. I can ping everything both with IP address and netbios name, no problems there.

At the end of the day sometimes samba lets me in, sometimes not... the most common error is "network name cannot be found"

I have more luck if I change from share to user I have to type a password but it lets me in,


The only thing I just stumbled across are these log files. I just took an extract out from both smbd and nmbd

Log.smbd

[2006/07/26 11:21:23, 0] passdb/pampass.c:smb_pam_passcheck(827)
smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User system3 !
[2006/07/26 11:21:25, 0] passdb/pampass.c:smb_pam_passcheck(827)
smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User nobody !
[2006/07/26 11:21:28, 0] passdb/pampass.c:smb_pam_passcheck(827)
smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User cerc !

Log.nmbd

[2006/07/26 11:36:49, 0] nmbd/nmbd_responserecordsdb.c:find_response_record(235)
find_response_record: response packet id 20397 received with no matching record.
[2006/07/26 11:36:49, 0] nmbd/nmbd_responserecordsdb.c:find_response_record(235)
find_response_record: response packet id 20398 received with no matching record.
[2006/07/26 11:38:39, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(404)
*****

Cerc is a user name on the clients and on the server. system3 is the computer name of one of the clients.

I really am at a loss. I do not see a point in posting my config file as I have tried all the others written in this post. Any suggestions about why this problem is happening?

dave
 
Old 07-26-2006, 07:17 PM   #10
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
EDIT: Sorry, forget this, you obviously have done all this if it is working sometimes

Have you added users and set the password using smbpasswd ?
Or are you expecting samba to read your linux password file - it won't. Although smbpasswd will only add usernames that are on your system.

In my example config, you would need to do, as root:
smbpasswd -a guest
Then hit return twice, to confirm no password.

You also need to restart samba after changing config files for them to take effect.
There might be a special redhat way of doing this, unless it's
/etc/init.d/samba restart
which is how I do it.

Last edited by bernied; 07-26-2006 at 07:19 PM.
 
  


Reply

Tags
login, samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Root login but no user login on samba Cybercool Linux - Newbie 3 07-13-2011 05:36 AM
kerberos/ldap login -> samba problems mesepher Linux - Software 6 02-28-2006 08:33 AM
Login Screen and Login Photo problems? host Linux - Software 0 02-21-2005 06:56 AM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 02:23 PM
Win2k Login wont work for samba login hellertech Linux - Networking 2 07-24-2003 09:12 AM


All times are GMT -5. The time now is 01:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration