Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
02-25-2003, 07:21 PM
|
#1
|
LQ Newbie
Registered: Feb 2003
Posts: 19
Rep:
|
SAMBA problem - connecting to linux from windows
I have a problem with SAMBA. I beleive it is all setup correctly since I can connect properly to the shares via the linux machine. When I go to my windows xp machine, I try to setup a Network Place but I get a messgae that the path is not found. The share name I am trying to connect to is 'johklein' and the IP address for the linux machine is 192.168.0.169. I attempt to connect as '\\192.168.0.169\johklein' I am running RH 8.0. Incedentally, I can not connect via the hostname b/c it is not seen on the network. The hostname for the linux machine is 'linux1' but when I ping via the hostname, the machine is not found. When I ping via the IP address, the ping is successful. Any ideas? I am very new to linux.
|
|
|
02-25-2003, 07:26 PM
|
#2
|
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323
Rep:
|
lets see your samba config file it should see the hostname on the network, at least via the workgroup
|
|
|
02-25-2003, 07:39 PM
|
#3
|
LQ Newbie
Registered: Feb 2003
Posts: 19
Original Poster
Rep:
|
Here it is:
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = MSHOME
netbios name = linux1
printcap name = /etc/printcap
load printers = yes
this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
# Put a capping on the size of the log files (in Kb).
max log size = 50
security = user
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
[myshare]
comment = John Share
path = /home/johklein
valid users = johklein
public = no
writable = yes
printable = no
create mask = 0765
|
|
|
02-25-2003, 07:44 PM
|
#4
|
LQ Newbie
Registered: Feb 2003
Posts: 19
Original Poster
Rep:
|
Correction to last post:
This section:
[myshare]
comment = John Share
path = /home/johklein
valid users = johklein
public = no
writable = yes
printable = no
create mask = 0765
should be:
[johklein]
comment = John Share
path = /home/johklein
valid users = johklein
public = no
writable = yes
printable = no
create mask = 0765
The name of the share is johklein, not myshare
|
|
|
02-26-2003, 01:01 AM
|
#5
|
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323
Rep:
|
Try just using the default homes share...when you logon woth your username it automatically shows your share folder the one that corresponds to your username
|
|
|
02-26-2003, 03:35 PM
|
#6
|
Member
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473
Rep:
|
SAMBA problem too!!
Hello,
My problem is similiar, however, this is what is happening with me. When I try to connect to the Linux box from Windows, I get prompted for a user name and password. However, if I just click OK, I go right on through. However, I don't really have access to anything.
Can someone tell me what I need to do to enable myself to log in from Windows to Linux? I have myself set up as a user on the Linux box but can't log in. Any ideas? Thanks.
|
|
|
02-26-2003, 04:41 PM
|
#7
|
LQ Newbie
Registered: Feb 2003
Posts: 19
Original Poster
Rep:
|
I have tried to do that and I get the following error:
No service is operating at the destination endpoint on the remote system.
I have tried to connect via windows mapping and the cmd prompt. I have entered the following at the cmd prompt:
net use x: \\linux1\homes
BTW, I have figured out my HOSTNAME problem.
|
|
|
02-26-2003, 05:23 PM
|
#8
|
Member
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473
Rep:
|
What do I put at the x?
net use x: \\linux1\homes
|
|
|
02-26-2003, 05:45 PM
|
#9
|
LQ Newbie
Registered: Feb 2003
Posts: 19
Original Poster
Rep:
|
x is the drive. You are mapping the x drive to the share name on your linux box.
|
|
|
03-10-2003, 10:47 PM
|
#10
|
Member
Registered: Mar 2003
Location: New York City
Distribution: Slackware 9.1, FreeBSD 5.2.1, OpenBSD 3.3
Posts: 89
Rep:
|
How did you wind up solving the hostname problem? I'm having the same issue.
I can connect to my Linux machine using it's IP address, but not it's hostname.
|
|
|
03-11-2003, 07:10 AM
|
#11
|
Member
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473
Rep:
|
Hmm,
Sounds weird. So, you're saying you can connect from Windows via IP address but not by name? Check in your My Network Places and see if your linux box appears there. If not, I would check to make certain you're in the same workgroup or domain. I'm not certain if you have a domain controller or if this is just a small workgroup. Also, make sure that you can ping the Linux box from windows.
If your Windows box is not in the same workgroup, right click on My Computer, go to Properties, go to Network Identification (I think), select workgroup, and then enter the same workgroup name as your linux box. Make sure you match case exactly!! You'll then have to restart your windows box. At that point, if you're using a router, you'll have to wait 30 seconds for a RIP update to see the Linux box in the workgroup, but after that, it should be there.
Also, double check your smb.conf file to make sure you have your windows users entered there and that their passwords are in the smbpasswd file as well. If their names are not in the smbpasswd file, you'll have to CAT them out. If you need that little script to do that, let me know, and I'll send it to you. I actually found it (believe it or not) in the Red Hat 8.0 for dummies book!!
Hope this helps.
Scott
|
|
|
03-11-2003, 08:37 AM
|
#12
|
LQ Newbie
Registered: Feb 2003
Posts: 19
Original Poster
Rep:
|
You need to edit the "Hosts" files on each of your machines. When windows machines talk to each other, they do it via Netbios protocol but that is not available when talking widnows to linux or vice versa. The Hosts file on the linux machine is at /etc/hosts. The hosts files file on the windows machine is <windows dir>\system32\drivers\etc
Simply put a line item in for each of the machines on your network like this:
192.168.0.194 windows1
192.168.0.107 linux1
Add a line item for each of your machines with the IP address followed by the machine name. No need to worry if you use dynamic IP addresses. The machine's lease on the IP address will stay constant as long as you use the machine regulary enough (at least once a week).
|
|
|
05-05-2003, 09:00 AM
|
#13
|
LQ Newbie
Registered: May 2003
Posts: 1
Rep:
|
No service error
"No service is operating at the destination endpoint on the remote system."
This error occurs if you have Linux's firewall enabled. You have to disable it to use Samba.
|
|
|
05-23-2003, 12:02 AM
|
#14
|
Member
Registered: Mar 2003
Location: New York City
Distribution: Slackware 9.1, FreeBSD 5.2.1, OpenBSD 3.3
Posts: 89
Rep:
|
I resolved my problem a few weeks ago, no need to edit the Windows hosts file. You have to make sure that nmbd is running on the linux machine for it to be reachable from a windows machine, it didn't run by default on mine.
|
|
|
All times are GMT -5. The time now is 11:13 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|