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 03-22-2003, 10:34 AM   #16
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30

"Do I have to make accounts on my linuxbox and smbpasswd reflecting the Windows system names <???>"
Exactly right. Also, after making changes wait a bit. WINS is a protocol that takes a bit to talk to ther computers and establish connections.
How is your network setup? DHCP or static addresses? Try giving your Samba box a static IP address. Set it up as a WINS server. Define it as the WINS server in your Windows client's network settings. Make doubly sure you're restarting samba after every change you make to your smb.conf by running /etc/init.d/smb restart.
It sounds like your boxes can see the Samba ox but they don't have the right login names on the Samba box. Can you ping the Samba box from your Windows clients? In XP, when I hada problem similar to yours, I coud connect as another user and I used root and all was well until I made the smbpasswd entries. Remember, you need to make the users first on your Linux box itself before you add them on Samba. Here's my smb.conf
path = /var/spool/cups
passwd program = /usr/bin/passwd %u
domain master = True
printing = cups
dns proxy = No
null passwords = Yes
encrypt passwords = Yes
valid users = bax morbo amy nobody
invalid users = root
wins support = true
printcap name = /etc/printcap
max log size = 1000
hosts allow = 192.168.1.
obey pam restrictions = Yes
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
username level = 8
map to guest = Bad User
security = user
message command = /bin/sh -c '/usr/bin/linpopup
server string = %h server (Samba %v)
workgroup = SHEP
syslog = 0
netbios name = PRINTSERVER
log file = /var/log/samba/log.%m
load printers = yes
os level = 35
default = printers

[homes]
path = %H
writeable = yes
valid users = bax,morbo,amy,nobody
comment = Home Directories
public = yes
create mask = 0700
directory mask = 0700
level 2 oplocks = yes
 
Old 03-22-2003, 01:05 PM   #17
SpEcIeS
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu 9.04 AMD64
Posts: 229

Original Poster
Rep: Reputation: 30
Thanks bax for your help... I have finally gained access through my windows systems. I had to change the os level, add a netbios name, and enable the wins support. I also, as you pointed out, added accounts and smbpasswd(s) for each machine. I added the users by using these commands:

useradd -m [machinename]
smbpasswd -a [machinename]

Thanks again for your help....
 
Old 03-22-2003, 01:13 PM   #18
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
??!!?? I was right? Great I can assure you, it doesn't happen often. Now, figure out why I can't print to my Samba printer. Congratulations on fixing your problem. I've been there myself.
 
Old 03-22-2003, 10:44 PM   #19
fataldata
Member
 
Registered: Jun 2002
Location: Breckenridge, Colorado
Distribution: Ubuntu Hardy 8.04
Posts: 101

Rep: Reputation: 15

Last edited by fataldata; 03-22-2003 at 10:45 PM.
 
Old 03-23-2003, 02:03 AM   #20
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Rep: Reputation: 30
I am having the same problems and I was trying to follow all you guys but I am a little lost ... What is LinNeighborhood? And in the command smbmount //stuff/morestuff /mnt/network, what's stuff? I mean, where do I find the information to put in that part of the command? And in morestuff, that's just the computer's network name right?

My windows box is a P2 450 running Win 98 on a FAT 32-formatted filesystem ...
 
Old 03-23-2003, 06:06 AM   #21
SpEcIeS
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu 9.04 AMD64
Posts: 229

Original Poster
Rep: Reputation: 30
LinNeighborhood is for browsing M$ machines and mounting SMB filesystems. Comparible to WIndows NetworkNeighborhood. Here is the link if you want to check it out:

http://www.bnro.de/~schmidjo/

Because I am having printer problems myself, I doubt I will be of much help to you bax...
 
Old 03-25-2003, 12:55 PM   #22
thaque
LQ Newbie
 
Registered: May 2001
Posts: 10

Rep: Reputation: 0
samba and win98

I can see linux box in net neighborhood in win98, but when double clicked, it gives me the famous $IPC error message. Can you tell me what's the problem? thanks.
TH



Quote:
Originally posted by artman62
I suggest you get the win98 connection to see your SuSe machine first. I find this easier to then figure out the other way.
If you can see the Linux box from win98 but cannot connect then it is most likely a username/password issue.
It is easy to tell if you get an $IPC error message in Win98.

Have you run smbpasswd?
The command is:
smbpasswd <username> <password>
where username is a linux username and password is that linux username's password. This makes them recognizable in Samba.
If you still cannot connect, post your smb.conf file.
 
Old 03-27-2003, 12:12 AM   #23
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
smbadduser <linuxuser>:<windows user>
 
Old 03-27-2003, 12:15 AM   #24
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
xsmbrowser is also a good tool for browsing samba shares in your network
 
  


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/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 09:36 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

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

All times are GMT -5. The time now is 12:34 PM.

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