You are not logged in.
Pages: 1
Hello forum,
I need SMBv2 on slitaz 4.0, I did so:
- installed samba 3.5.8, and it is working fine, really, the system is working for three weeks and is ok.
- I downloaded samba-3.6.7 AND samba-common-3.6.7 packages from slitaz 5.0 repository, the system seems as stable as with samba-3.5.8 but I can not understand if SMBv2 is working, but it seems to me that it is not :-(
[c]# smbclient -L 192.168.1.105 -U p2p
WARNING: The "null passwords" option is deprecated
Enter p2p's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.7]
Sharename Type Comment
--------- ---- -------
3tb Disk
tmp Disk Temporary file space
IPC$ IPC IPC Service (cubo)
p2p Disk Home Directories
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.7]
Server Comment
--------- -------
CUBO cubo
OPENWRT a226m
Workgroup Master
--------- -------
WORKGROUP OPENWRT[/c]
the samba-3.6.7 default init script is:
[c]#!/bin/sh
# /etc/init.d/samba : Start, stop and restart Samba server on SliTaz, at
# boot time or with the command line.
#
# To start Samba server at boot time, just put samba in the $RUN_DAEMONS
# variable of /etc/rcS.conf and configure options with /etc/daemons.conf
#
. /etc/init.d/rc.functions
. /etc/daemons.conf
NAME=Samba
DESC="$(_ '%s server' Samba)"
SMBD=/usr/sbin/smbd
NMBD=/usr/sbin/nmbd
NMBPIDFILE=/var/run/samba/nmbd.pid
SMBPIDFILE=/var/run/samba/smbd.pid
[ -d /var/run/samba ] || mkdir -p /var/run/samba
case "$1" in
start)
if active_pidfile $SMBPIDFILE smbd ; then
_ '%s is already running.' "$NAME ($SMBD)"
else
action 'Starting %s: %s...' "$DESC" $SMBD
$SMBD -D
status
fi
if active_pidfile $NMBPIDFILE nmbd ; then
_ '%s is already running.' "$NAME ($NMBD)"
else
action 'Starting %s: %s...' "$DESC" $NMBD
$NMBD -D
status
fi
;;
stop)
if ! active_pidfile $SMBPIDFILE smbd ; then
_ '%s is not running.' "$NAME ($SMBD)"
else
action 'Stopping %s: %s...' "$DESC" $SMBD
kill $(cat $SMBPIDFILE)
status
fi
if ! active_pidfile $NMBPIDFILE nmbd ; then
_ '%s is not running.' "$NAME ($NMBD)"
else
action 'Stopping %s: %s...' "$DESC" $NMBD
kill $(cat $NMBPIDFILE)
status
fi
;;
restart)
$0 stop
$0 start
;;
reload)
if ! active_pidfile $SMBPIDFILE smbd ; then
_ '%s is not running.' $NAME
exit 1
fi
action 'Reloading %s: %s...' "$DESC" $SMBD
kill -HUP $(cat $SMBPIDFILE)
status
;;
*)
emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart!reload]"
newline
exit 1
;;
esac
exit 0[/c]
but I use the samba-3.5.8 init script:
[c]#!/bin/sh
# /etc/init.d/samba : Start, stop and restart Samba server on SliTaz, at
# boot time or with the command line.
#
# To start Samba server at boot time, just put samba in the $RUN_DAEMONS
# variable of /etc/rcS.conf and configure options with /etc/daemons.conf
#
. /etc/init.d/rc.functions
. /etc/daemons.conf
NAME=Samba
DESC="Samba server"
SMBD=/usr/sbin/smbd
NMBD=/usr/sbin/nmbd
NMBPIDFILE=/var/run/samba/nmbd.pid
SMBPIDFILE=/var/run/samba/smbd.pid
case "$1" in
start)
if active_pidfile $SMBPIDFILE smbd ; then
echo "$NAME: $SMBD already running."
else
echo -n "Starting $DESC: $SMBD... "
$SMBD -D
status
fi
if active_pidfile $NMBPIDFILE nmbd ; then
echo "$NAME: $NMBD already running."
else
echo -n "Starting $DESC: $NMBD... "
$NMBD -D
status
fi
;;
stop)
if ! active_pidfile $SMBPIDFILE smbd ; then
echo "$NAME: $SMBD is not running."
else
echo -n "Stopping $DESC: $SMBD... "
kill [/c][c]cat $SMBPIDFILE[/c]
status
fi
if ! active_pidfile $NMBPIDFILE nmbd ; then
echo "$NAME: $NMBD is not running."
else
echo -n "Stopping $DESC: $NMBD... "
kill [c]cat $NMBPIDFILE[/c]
status
fi
;;
restart)
$0 stop
$0 start
;;
reload)
if ! active_pidfile $SMBPIDFILE smbd ; then
echo "$NAME is not running."
exit 1
fi
echo -n "Reloading $DESC: $SMBD... "
kill -HUP [c]cat $SMBPIDFILE[/c]
status
;;
*)
echo ""
echo -e "33[1mUsage:33[0m /etc/init.d/[c]basename $0[/c] [start|stop|restart!reload]"
echo ""
exit 1
;;
esac
exit 0
the smb.conf is:
[c]
[global]
netbios name = cubo
workgroup = WORKGROUP
security = USER
server string = cubo
browseable = yes
guest ok = yes
load printers = no
null passwords = yes
# passdb backend = smbpasswd
log file = /var/log/samba.log.%m
lanman auth = yes
client lanman auth = yes
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
disable netbios = no
log level = 3
# min protocol = SMB2
[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
[3tb]
path = /home/meego/mymedia
# valid users = p2p
read only = no
# guest ok = yes
create mask = 0744
public = yes
# directory mask = 0755
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes[/c]
please help,any ideas?
Offline
Online
Thank You mojo
it's P E R F E C T
[c]Get-SmbConnection
ServerName ShareName UserName Credential Dialect NumOpens
---------- --------- -------- ---------- ------- --------
CUBO IPC$ ASUS-N705UDR\enn10 ASUS-N705UDR\enn10 2.0.2 0
CUBO p2p ASUS-N705UDR\enn10 ASUS-N705UDR\enn10 2.0.2 2
OPENWRT 3TB ASUS-N705UDR\enn10 ASUS-N705UDR\enn10 2.0.2 2
OPENWRT IPC$ ASUS-N705UDR\enn10 ASUS-N705UDR\enn10 2.0.2 0[/c]
:-)
Offline
Pages: 1
[ Generated in 0.021 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]