e892...@stud1.tuwien.ac.at wrote:
>
> Hello,
> i have read somewhere that smbd reads smb.conf every minute.
> But that doesn't seem to work everytime. My changes to smb.conf
> yesterday took more than one hour to be updated (so, that i could see
> the new shares on my win95 pc).
It works but you have to close the connection to your client (logout or
kill the connection using swat). Only new connections get the new
parameters.
> However, how can i make Samba to read smb.conf manually. I have
> already tried "kill -1 smbd" and "kill -1nmbd" which didn't help.
Restart it (that means kill *all* connections), that's the only way I
know.
Erik
--
Erik Vellmete, maito: erik.v...@dignos.com
Dignos EDV-GmbH, Heidelberg, Germany
e892...@stud1.tuwien.ac.at wrote in article
<37106d78...@news.tuwien.ac.at>...
> Hello,
> i have read somewhere that smbd reads smb.conf every minute.
> But that doesn't seem to work everytime. My changes to smb.conf
> yesterday took more than one hour to be updated (so, that i could see
> the new shares on my win95 pc).
> However, how can i make Samba to read smb.conf manually. I have
> already tried "kill -1 smbd" and "kill -1nmbd" which didn't help.
>e8925920, (what a funny name)
>
>e892...@stud1.tuwien.ac.at wrote:
>>
>> Hello,
>> i have read somewhere that smbd reads smb.conf every minute.
>> But that doesn't seem to work everytime. My changes to smb.conf
>> yesterday took more than one hour to be updated (so, that i could see
>> the new shares on my win95 pc).
>It works but you have to close the connection to your client (logout or
>kill the connection using swat). Only new connections get the new
>parameters.
And what is swat? I have no man entry for swat.
>
>> However, how can i make Samba to read smb.conf manually. I have
>> already tried "kill -1 smbd" and "kill -1nmbd" which didn't help.
>Restart it (that means kill *all* connections), that's the only way I
>know.
>
>Erik
>
>--
>Erik Vellmete, maito: erik.v...@dignos.com
>Dignos EDV-GmbH, Heidelberg, Germany
Thanks for your help,
Arash :-)
smbd stop
nmbd stop
smbd start
e892...@stud1.tuwien.ac.at wrote in message
<37106d78...@news.tuwien.ac.at>...
>Hello,
> i have read somewhere that smbd reads smb.conf every minute.
>But that doesn't seem to work everytime. My changes to smb.conf
>yesterday took more than one hour to be updated (so, that i could see
>the new shares on my win95 pc).
>However, how can i make Samba to read smb.conf manually. I have
>already tried "kill -1 smbd" and "kill -1nmbd" which didn't help.
Swat is a www-interface to samba (smb.conf) and is
distributed with samba since version 2.x i think..
However you should stick to the latest release
2.0.3 which comes with swat which in turn is
automatically installied if you follow the
default procedure.
sincerly,
Markus
ps: 2.0.3 kannst vom gd.tuwien saugen ;)
Arash wrote:
>
[...]
>
> And what is swat? I have no man entry for swat.
It is a web administration tool for samba included in samba-2.0.3-1 rpm
package on my linux box (Suse 6.0, kernel 2.0.36). man swat returns
SWAT(8) SWAT(8)
NAME
swat - swat - Samba Web Administration Tool
and so on
[...]
Hope this helps.
Erik
--
mailto: erik.v...@dignos.com
Dignos EDV-GmbH, Heidelberg, Germany
> Hello,
> i have read somewhere that smbd reads smb.conf every minute.
> But that doesn't seem to work everytime. My changes to smb.conf
> yesterday took more than one hour to be updated (so, that i could see
> the new shares on my win95 pc).
> However, how can i make Samba to read smb.conf manually. I have
> already tried "kill -1 smbd" and "kill -1nmbd" which didn't help.
> Could some1 give me any hints, please.
> Thanx,
> Arash :-)
The RIGHT answer to this question is to issue the following command:
/etc/rc.d/init.d/smb stop
to restart you can then issue:
/etc/rc.d/init.d/smb start
In fact, you may wish to edit your /etc/bashrc file and add these as
alias' so that you can just issue:
smbstop to stop
smbstart to start
e.g.
alias smbstop="/etc/rc.d/init.d/smb stop"
alias smbstart="/etc/rc.d/init.d/smb start"
While rebooting will *technically* work, it's asinine. That suggestion
was not worth the bandwidth it took to post.
doesn't the command 'samba restart' work? It does on my machines.
'samba status' gives the pid's
later dates.
--
Scott Knight mailto:skn...@mich.com
http://www.mich.com/~sknight
I could be wrong though as I am a newbe myself.
Serge.
Scott Knight <skn...@mich.com> wrote in message
news:37133861...@mich.com...
/etc/rc.d/init.d/smb restart
works for me every time
sincerely
Wayne
John Woodward wrote:
> Try reboot
>
> e892...@stud1.tuwien.ac.at wrote in article
> <37106d78...@news.tuwien.ac.at>...
> > Hello,
> > i have read somewhere that smbd reads smb.conf every minute.
> > But that doesn't seem to work everytime. My changes to smb.conf
> > yesterday took more than one hour to be updated (so, that i could see
> > the new shares on my win95 pc).
> > However, how can i make Samba to read smb.conf manually. I have
> > already tried "kill -1 smbd" and "kill -1nmbd" which didn't help.
> > Could some1 give me any hints, please.
> > Thanx,
> > Arash :-)
> >
Additionally, the original poster wanted to just make it re-read the
config, not restart it. Big difference.
The best way is probably:
kill -HUP `cat /usr/local/samba/var/locks/smbd.pid`
kill -HUP `cat /usr/local/samba/var/locks/nmbd.pid`
Adjust /usr/local/samba to the proper directory location as necessary.
Bob
In article <37140C27...@dlcwest.com>,
--
Bob Farmer ucs...@shsu.edu
Computer Services, Sam Houston State University; Huntsville, TX
It shuts the service down, reads the changed smb.conf and restarts with a
question of inetd or daemon
Alex
/etc/rc.d/init.d/smb restart
This reboots the server without rebooting everything else = )
-Scorp
boney_stew wrote:
utiliza samba restaart en la linea de comandos
scott schrieb in Nachricht <371A22D9...@isd.pen.net>...
Bob
In article <92505541...@home.gelsen-net.de>,
is all that you need. I read it somewhere in the documentation.
ps -ef |grep mbd |grep -v grep |awk '{print $2}' |xargs kill -1
This works better than anything else for Solaris boxes, as users stay
connected while Samba re-reads.
-CM
In article <37106d78...@news.tuwien.ac.at>,
e892...@stud1.tuwien.ac.at wrote:
> Hello,
> i have read somewhere that smbd reads smb.conf every minute.
> But that doesn't seem to work everytime. My changes to smb.conf
> yesterday took more than one hour to be updated (so, that i could see
> the new shares on my win95 pc).
> However, how can i make Samba to read smb.conf manually. I have
> already tried "kill -1 smbd" and "kill -1nmbd" which didn't help.
> Could some1 give me any hints, please.
> Thanx,
> Arash :-)
>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
This works up until you have other processes with "mbd" in their name.
I cringe everytime I see people post shoddy hacks like this.
--Dave
--
http://www.cis.ohio-state.edu/~barr/
ba...@cis.ohio-state.edu
ap
Dave Barr wrote:
--
-------------------------------------------------------------
Andrew J. Perrin - NT/Unix/Access Consulting - (650)938-4740
ape...@mcmahon.qal.berkeley.edu (Remove the Junk Mail King)
http://www.geocities.com/SiliconValley/Grid/7544/
-------------------------------------------------------------
I agree with R. Mercado
kill -HUP <PID> will work, this is what I use.
-Dion
I just leave mine alone, and it picks up the
smb.conf edits just fine.
.
.
....Ken
log file = /usr/local/samba/var/log.%m
debuglevel = 3
, then edit smb.conf (delete old share) and after 5 min run
grep -n param/loadparam.c:init /usr/local/samba/var/log.<my_win95>
Samba read again smb.conf. O.K.
On my win95 pc i see this old share.
I kill all smbd and nmbd process and run samba. This old share don`t exist.
=> HOWTO restart samba:
1. kill samba.
#!/bin/sh
echo kill all connections
#ps x |grep -w [sn]mbd
smbcon=`smbstatus -p 2>/dev/null`
for p in $smbcon; do
kill $p;
done
echo kill daemons
#ps x |grep -w [sn]mbd
#my samba is instaled in /usr/local/samba !
kill `cat /usr/local/samba/var/locks/smbd.pid`
kill `cat /usr/local/samba/var/locks/nmbd.pid`
echo end
#ps x |grep -w [sn]mbd
2. start samba
If an user is connected W95 restore connection automaticali.
I don`t have problem with aplication running from samba share, when restart
samba.
echo kill all smb user connections...
smbcon=`smbstatus -p 2>/dev/null`
for p in $smbcon; do
kill $p;
done
-----------== Posted via Deja News, The Discussion Network ==----------
/etc/rc.d/init.d/smb stop
/etc/rc.d/init.d/smb start
Of course your path to smb may be different.
Andrew Perrin <ape...@mcmahon.qal.berkeley.edu> wrote in message
news:3724DCDC...@mcmahon.qal.berkeley.edu...
Roumen Petrov <roumen...@my-dejanews.com> schrieb in im Newsbeitrag:
7g79kt$90k$1...@nnrp1.dejanews.com...