Displaying 6 results from an estimated 6 matches for "samba_restart".
2017 Jan 27
2
getent problems with new Samba version
...ly at boot, make this
# file executable: chmod 755 /etc/rc.d/rc.samba
#
samba_start() {
if [ -x /usr/sbin/samba -a -r /etc/samba/smb.conf ]; then
echo "Starting Samba: /usr/sbin/samba"
/usr/sbin/samba
fi
}
samba_stop() {
echo "Stopping Samba"
killall samba
}
samba_restart() {
samba_stop
sleep 2
samba_start
}
case "$1" in
'start')
samba_start
;;
'stop')
samba_stop
;;
'restart')
samba_restart
;;
*)
# Default is "start", for backwards compatibility with previous
# Slackware versions. This may change to...
2017 Jan 27
0
getent problems with new Samba version
...#
>
> samba_start() {
> if [ -x /usr/sbin/samba -a -r /etc/samba/smb.conf ]; then
> echo "Starting Samba: /usr/sbin/samba"
> /usr/sbin/samba
> fi
> }
>
> samba_stop() {
> echo "Stopping Samba"
> killall samba
> }
>
> samba_restart() {
> samba_stop
> sleep 2
> samba_start
> }
>
> case "$1" in
> 'start')
> samba_start
> ;;
> 'stop')
> samba_stop
> ;;
> 'restart')
> samba_restart
> ;;
> *)
> # Default is "start",...
2017 Jan 27
2
getent problems with new Samba version
More experimentation ...
I stopped Samaba, ldbedit'ed the /var/lib/samba/private/idmap.ldb and changed the line
xidNumber: 3000026
to
xidNumber: 10001
killed the cache and restarted Samba. As I hoped, the wbinfo now showed
$ wbinfo -i mark
HPRS\mark:*:10001:10000:Mark Foley:/home/HPRS/mark:/bin/bash
which was NOT the case in my message below after killing the cache. In that previous
2004 May 17
3
wrong file size
I'm having a problem coping a 5GB file from
Windows NT 4 TSE to samba 3.0.4
This is the output from stat on this file:
File: `priv.edb'
Size: 5393883136 Blocks: 8388728 IO Block: 4096 regular file
Device: 308h/776d Inode: 9 Links: 1
Access: (0744/-rwxr--r--) Uid: (10000/DOMAIN\!schedule) Gid: (10000/DOMAIN\Domain Users)
Access: 2004-05-17 10:07:22.000000000
2003 Feb 01
1
Samba 3 & ADS current capabilities [adr]
...ot;starting nmbd"
/usr/local/samba/sbin/nmbd -D
echo "starting winbind"
/etc/init.d/winbind.init start
}
samba_stop() {
echo "stopping smbd nmbd"
killall smbd nmbd
echo "stopping winbind"
killall winbindd
}
samba_restart() {
samba_stop
sleep 1
samba_start
}
case "$1" in
'start')
samba_start
;;
'stop')
samba_stop
;;
'restart')
samba_restart...
2017 May 12
3
samba-ad restart fails occasionally
Hi,
We are running sernet samba, and on one particular DC (debian 7.11,
samba 4.5.6), when logrotate is ready rotating, "sernet-samba-ad
restart" fails with:
> Shutting down SAMBA AD services : ...trying once more ... (warning).
> ...trying once more ... (warning).
.....
> ...trying once more ... (warning).
> Error: /usr/sbin/samba still running with PID=14755 from