LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-14-2002, 10:53 PM   #1
Scotty2435
Member
 
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232

Rep: Reputation: 30
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
 
Old 01-15-2002, 08:02 AM   #2
echto
LQ Newbie
 
Registered: Jan 2002
Distribution: Mandrake 8.1
Posts: 9

Rep: Reputation: 0
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
 
Old 01-15-2002, 02:07 PM   #3
Scotty2435
Member
 
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232

Original Poster
Rep: Reputation: 30
workgroup is correct but I still get the same problem.
 
Old 01-15-2002, 04:51 PM   #4
Scotty2435
Member
 
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232

Original Poster
Rep: Reputation: 30
should the workgroup be the one used by the other windows computers or the linux box's domain
 
Old 01-15-2002, 07:12 PM   #5
echto
LQ Newbie
 
Registered: Jan 2002
Distribution: Mandrake 8.1
Posts: 9

Rep: Reputation: 0
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.
 
Old 01-15-2002, 08:42 PM   #6
Scotty2435
Member
 
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232

Original Poster
Rep: Reputation: 30
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.
 
Old 01-15-2002, 09:45 PM   #7
echto
LQ Newbie
 
Registered: Jan 2002
Distribution: Mandrake 8.1
Posts: 9

Rep: Reputation: 0
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
 
Old 01-16-2002, 03:50 PM   #8
Scotty2435
Member
 
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232

Original Poster
Rep: Reputation: 30
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
 
Old 01-25-2002, 07:24 AM   #9
RedHat123
Member
 
Registered: Dec 2001
Posts: 60

Rep: Reputation: 15
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
 
  


Reply


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
changing hostname sh4d0w13 Debian 4 06-14-2005 10:45 AM
hostname keeps changing? darkleaf Slackware 3 02-23-2005 03:57 PM
Changing hostname tristan2600 Linux - Newbie 1 10-17-2003 08:18 PM
Changing the hostname. KrazyKid Slackware 6 06-30-2002 09:56 PM
Changing hostname kbaldor Linux - General 1 01-31-2002 02:01 PM

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

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