LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-01-2006, 04:15 PM   #1
johnpmoran
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Rep: Reputation: 0
WXP Connect to Linux w/Samba..I'm really close but stuck


Hi all, I've been at this off and on for a few days and I want all to know I've read-and-read and searched posts (that helped me get to where I am now). I found a few older posts that seemed like the same problem but I had already executed the posted solutions so I'm really confounded.

I have a Windows xp box(WBOX) and a linux box with my printer. I'm using Samba to allow windows users to access their home directory on the linux box (LBOX) and hopefully(next) the printer. Right now I'm to the point where I see "Samba Server(LBOX)" under Microsoft Windows Network->MYGROUP (A sign to me that I can see that the LBOX is trying to let us know it's there). MYGROUP is the workgroup on both WBOX and the LBOX.

Now I have the same username/password setup on my WBOX, my LBOX with useradd/passwd and in samba with smbpasswd. Directions found in "Red Hat Linux Internet Server" from RH Press. One thing I did notice , when I smbpasswd -a username, the password is encrypted..big long hairy string. When I bounce samba(/etc/init.d/smb restart) it changes that string to all X's. Does that just mean it made a match and no longer needs the encrypted string? I've made the recommended changes to the smb.conf file per the book.

SYMPTOMS: When I click the "Samba Server(LBOX)", it pops up a u/p dialog box (eureka I thought) but no username/password seems to work. It says in the dialog box "Connecting to LBOX" so I figger I'm trying to login to the correct computer. When I type in the u/p it replaces the username with WBOX/username and prompts again for password. The books I have seem to imply that I shouldn't even need to enter the u/p, that the home directory should pretty much just show up in "my network places".

More info: I can ping in both directions and with both ip addresses and name from the hosts file(S). Both pc's can also access each other's apache servers(http). Do I maybe need to startup some service or something?

I feel like I'm pretty close. Any ideas? Thanks in advance for reading this far and maybe offering up an idea.

Cheers
 
Old 11-01-2006, 04:33 PM   #2
New2Linux2
Member
 
Registered: Jan 2004
Location: Arizona
Distribution: Debian
Posts: 153

Rep: Reputation: 43
Straight from the book, huh? I tried a samba config straight from the book too. Nothing worked until I commented out the "invalid users = root" line that every online reference told me I needed in my smb.conf. I can only guess that the initial connection to the server has to be verified with the root user account in order for Samba to create a machine account for that box. Unfortunately, root is listed as an invalid user account for Samba, as are all users in the root group.

You may also want to create machine accounts for your WXP boxes. I setup my smb.conf to create those on the fly when I add them to the domain, but that's for a domain, not a workgroup.

If this hasn't helped, post your smb.conf and the results of testparm.
 
Old 11-01-2006, 05:12 PM   #3
johnpmoran
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Not sure what you mean by creating machine accounts for each wxp box. Here is the out put from testparm -s smb.conf.
Code:
[root@SamLinux samba]# testparm smb.conf
Load smb config files from smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[tmp]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
        workgroup = MYGROUP
        server string = Samba Server
        log file = /var/log/samba/%m.log
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = /etc/printcap
        dns proxy = No
        idmap uid = 16777216-33554431
        idmap gid = 16777216-33554431
        hosts allow = 192.168.2.105
        cups options = raw

[homes]
        comment = Home Directories
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No

[tmp]
        comment = Temporary file space
        path = /tmp
        read only = No
        guest ok = Yes
[root@SamLinux samba]#
I'm going to keep digging this evening, I don't want this to be my first to-do of the morning. I'm looking at some of the log files right now. Can't make much sense of the messages in there. Thanks again.
 
Old 11-02-2006, 10:16 AM   #4
New2Linux2
Member
 
Registered: Jan 2004
Location: Arizona
Distribution: Debian
Posts: 153

Rep: Reputation: 43
Quote:
Originally Posted by johnpmoran
Not sure what you mean by creating machine accounts for each wxp box.
Again, that is in the case of a domain. In order for a machine to talk to a Samba PDC (Primary Domain Controller) the machine needs it's own "user" account on the Samba PDC. I don't think that applies to your situation, though. It might, I'm just not 100% sure either way.
Code:
        hosts allow = 192.168.2.105
This looks like a problem. What you're telling the server is that the only machine (or host) that is allowed to talk to it is the one with this IP address. You may want to change it to an IP address range instead, like so:
Code:
        hosts allow = 192.168.2.0/24
That will tell it to allow all hosts with IP addresses of 192.168.2.x and a subnet mask of 255.255.255.0.
Code:
[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No
You might want to make the printers browseable just so your Windows clients can see what printers are installed on the server.

I hope some of this helps.
 
Old 11-02-2006, 02:30 PM   #5
MrEccentricMan
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
Why don't you use FTP do share for other people
 
Old 11-02-2006, 04:47 PM   #6
johnpmoran
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Original Poster
Rep: Reputation: 0
RE FTP...To me (possible ignorance exposure mode=ON) Ftp is transferring files back and forth. What I'm trying to do is allow users to direct update a file without having to first transfer it down. When I worked in unix shops, we always had the unix drives remote mounted so nobody stored much on their pc's. Also, this exercise is really just the forstep to using the Lbox as a printer server so I think Samba is still my best choice.

If ftp has somehow evolved over the 25 years I've been using it, I'm more than willing to give it a try. Old dogs.....you know the rest. I am serious(hard to tell sometimes)...if there's something I don't know about it, let me know. I probably just skipped that section in reading since I thought there wasn't much new there.

NEW2Unix...I'll give your suggestions a try tonight or tomorrow morning.....just got done with a long day of glass-blowing (my sometimes day job) so perhaps the couch and a cold-one is a more likely scenario. I'll followup.

I appreciate the suggestions a lot!!!!!!!!
 
Old 11-03-2006, 12:36 AM   #7
MrEccentricMan
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
I just have beeb used LINUX since 3 months and I think my experience is not enough for me to do all thing I want in Linux .
Hope receipt your suggestions .
 
Old 11-06-2006, 12:04 PM   #8
johnpmoran
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Original Poster
Rep: Reputation: 0
I've made the changes suggested by n2l but I'm still stuck in the same place. I've searched all over the web and can't seem to find what my problem is. Close to giving up on it. Samba server still shows up in "my network places" but I can't login. I'm following the tutorials from 3 different books(I know..that's pbbly my problem).

So if anyone has encountered this problem, I'd love to know a solution.
 
Old 11-06-2006, 01:05 PM   #9
ITintuition
Member
 
Registered: Sep 2006
Location: The Pacific Northwest
Distribution: SUSE 10, Ubuntu, Fedora Core 6
Posts: 34

Rep: Reputation: 15
Alright John, I had a little chat with Jerry (one of the Samba developers) and I have a solution to your issue. Samba is changing your string to all X's because of a bug in that particular version of Samba (which has been fixed).

Check the last field in your Samba password file, if the last change time is set to lct-0 then this is why it's changing the strings. An update to the newest version of Samba should fix this. If you look at the Samba release notes you should see these changes from 3.0.2a. Hope this helps.
 
Old 11-06-2006, 04:28 PM   #10
johnpmoran
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Hi, I upgraded Samba to the latest version. That fixed the smbpasswd file from X-ing out my password...but I still cannot logon. The documents I'm reading infer that I shouldn't even need to enter my u/p. Is that any kind of clue about what's wrong? They make it sound like that drive(directory) should just appear. I'm running into the same problem when I try to setup a printer on the Lbox.

I have identical u/p on my XP machine and in the linux login and in the smbpasswd. I've double and triple checked that they are identical.

Anyway...I really appreciate the efforts to help me out! I hate it because I feel like I've done my homework here.
 
Old 11-06-2006, 06:33 PM   #11
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Code:
[Users]
        valid users = x,y,z
        comment = User files 
        path = /home/%U
        public = no
        read only = no
        writable = yes
        browseable = yes
        create mode = 0740
        force create mode = 0740
        directory mask = 0750
        force group = users
        vfs objects = recycle
        recycle:versions = Yes
        recycle:touch = No
        csc policy = disable
That's how I do mine. . .YMMV. I don't use the default [home] share, cause I don't think I've ever had luck with it.
 
Old 11-07-2006, 07:13 AM   #12
johnpmoran
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Original Poster
Rep: Reputation: 0
arc1450, thanks for the suggestion, but still no luck. Can I ask you a question..Where does the user share show up on your windows machine? When you click on it, does it ask you for the u/p or does it automatically connect based on your matching wxp u/p? Thanks again for the help.
 
Old 11-07-2006, 11:29 AM   #13
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Mine auto-connects.

I just type in \\server\users and it's there.

I also map my shares on computers, though, and they're part of a domain with the Samba box as a PDC. IIRC, though, it doesn't really matter.

When you set up your Samba, you did 'smbpasswd -a (username)', right? And there's nothing in your /etc/hosts.deny, correct?
 
  


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
mounting C and E. very close but stuck:)) ju_medea Linux - Newbie 5 02-07-2006 03:44 AM
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM
Installing LAMP with MySQL 4.1 - close but stuck with Apache problem David Mann Linux - Software 2 11-10-2004 08:19 PM
Samba and Wxp help please wrat Linux - Networking 6 05-08-2004 02:31 PM
Map WXP user to Linux user in Samba? Worstje Linux - Software 1 03-26-2004 06:50 PM

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

All times are GMT -5. The time now is 07:47 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