Solved

samba shares take long time to refresh

Posted on 1999-01-20
7
224 Views
Last Modified: 2010-03-18
Im using samba 2.0 on my linux server. when i'm adding or deleting a share in the smb.conf file and then save it, it takes a long time for my win98 machine to get that info.

if i delete a share it will be available for 10 more minutes before it disappear....is it supposed to be like that or do i have to change some settings?
0
Comment
Question by:anders_02
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 2

Expert Comment

by:wqclatre
ID: 1588178
Restart samba....

As root:
In redhat /etc/rc.d/init.d/smb restart

Otherwise:
killall -HUP smbd
killall -HUP nmbd
0
 

Expert Comment

by:Grahn
ID: 1588179
....i'm using the slackware distribution...
i'm loading samba via inetd and i tried to restart inetd but that didn't help...
0
 
LVL 4

Expert Comment

by:mcdonc
ID: 1588180
When you say "if i delete a share it will be available for 10 more minutes before it disappear", do you mean you see it through browsing the network from a 98 machine after you've restarted inetd?

If so, I doubt you can actually access it (even you you may see it in the browse list).  Try to doubleclick on the share and you'll probably get an error.

For a possible explanation, see http://www.microsoft.com/win32dev/netwrk/browse1.htm (particularly the section titled "Browser Failures with Microsoft Networking).

0
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 

Author Comment

by:anders_02
ID: 1588181
well, it's true...
i can access the deleted share for a couple of minutes, even after i've restarted inetd...(and killed the old one)

maybe i can shut down samba in another way? (i can still access the shares after killing inetd, so i guess smaba is never shut down, just restarted...)
0
 
LVL 4

Expert Comment

by:mcdonc
ID: 1588182
use this string of commands to shut down any trace of samba after you make an smb.conf change:

killall -HUP smbd
killall -HUP nmbd
killall -HUP `cat /var/run/inetd.pid`

Then try to re-access the server.  See what happens.
0
 

Author Comment

by:anders_02
ID: 1588183
yep, it's working!
thanx for helping!



just propose an answer and you'll get your points


0
 
LVL 4

Accepted Solution

by:
mcdonc earned 50 total points
ID: 1588184
Cool.  I'll restate the answer:

Use this string of commands to shut down any trace of samba after you make an smb.conf change:

       killall -HUP smbd
       killall -HUP nmbd
       killall -HUP `cat /var/run/inetd.pid`

Then try to re-access the server.  See what happens.
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question