Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
|
 |
01-14-2002, 10:53 PM
|
#1
|
Member
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232
Rep:
|
Samba aftter changing hostname
Hello, I recently changed my hostname using the KDE networking configuration thing. It had been the default localhost. I updated my /etc/hosts file at gnome's prompting. Everything works fine except samba which can not access windows shares. Please help
|
|
|
01-15-2002, 08:02 AM
|
#2
|
LQ Newbie
Registered: Jan 2002
Distribution: Mandrake 8.1
Posts: 9
Rep:
|
I believe your problem is in the samba config file.
Open up
http://localhost:901/
Click on the globals tab and verify the workgroup name.
Then click on the status tab and click on Restart smbd - or - SU to root and
cd /etc/init..d
./smb restart
|
|
|
01-15-2002, 02:07 PM
|
#3
|
Member
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232
Original Poster
Rep:
|
workgroup is correct but I still get the same problem.
|
|
|
01-15-2002, 04:51 PM
|
#4
|
Member
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232
Original Poster
Rep:
|
should the workgroup be the one used by the other windows computers or the linux box's domain
|
|
|
01-15-2002, 07:12 PM
|
#5
|
LQ Newbie
Registered: Jan 2002
Distribution: Mandrake 8.1
Posts: 9
Rep:
|
Personally I would change the workgroup name of the windoz machine to match the linux machine. If the workgroups do not match, the machines will not see each other.
|
|
|
01-15-2002, 08:42 PM
|
#6
|
Member
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232
Original Poster
Rep:
|
hmmm well the windows computers can see the linux box as ingramnet (linux's hostname) under the workgroup WORKGROUP. Still am unable to browse windows shares from linux though.
|
|
|
01-15-2002, 09:45 PM
|
#7
|
LQ Newbie
Registered: Jan 2002
Distribution: Mandrake 8.1
Posts: 9
Rep:
|
Both computers should be apart of the same workgroup.
Linux workgroup = ingramnet
Windows workgroup = ingramnet
Your /etc/samba/samba.conf should list workgroup as the following.
[global]
workgroup = INGRAMNET
If changes were made on the linux machine restart samba. If changes were made on the windows machine, reboot the windows machine.
After all that, mount windows machine using smbmount with the following.
smbmount //%computername/%drive /home/%YOU/%computername/%drive/ -o username=winusername%winpassword,fmask=644,dmask=755,uid=501,gid=501,ip=%address_of_computer,debug=0 ,workgroup=INGRAMNET
%computername = the window's computer name
%drive = the windows drive you want mounted, i.e. C
%YOU = your linux user name
winusername%winpassword = username%password on WINDOWS machine
%address_of_computer = i.e. 172.31.0.27 (the assigned IP)
Here is an example with the values filled in.
smbmount //WINMACHINE/C /home/echto/WINMACHINE/C/ -o username=echto%mypassword,fmask=644,dmask=755,uid=501,gid=501,ip=172.31.0.27,debug=0,workgroup=INGRA MNET
|
|
|
01-16-2002, 03:50 PM
|
#8
|
Member
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232
Original Poster
Rep:
|
thanks I went ahead and changed back to localhost.localdomain and everything works fine. I will definetly try this if I need to change the hostname again.
Thanks
|
|
|
01-25-2002, 07:24 AM
|
#9
|
Member
Registered: Dec 2001
Posts: 60
Rep:
|
very similar problem
im having a similar problem. i can see my linux machine from windows, but machine name is 'localhost' and is causing problems. I was thinking of changing the hostname FROM localhost.localdomain to something else. any suggestions welcome
my thread
|
|
|
All times are GMT -5. The time now is 12:03 AM.
|
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
|
|