|
|
[admin@WL-500GP /opt]$ /opt/etc/init.d/S08samba
Starting nmbd:
Aborted (core dumped)
Starting smbd:
Aborted (core dumped)
运行的时候总是出现这个提示。
已经按照教学文档安裝 SAMBA 3.0 做法了,过程如下
[admin@WL-500GP /opt]$ wget http://ipkg.nslu2-linux.org/feeds/optwa … mipsel.ipk
Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
samba_3.2.0-1_mipsel 100% |*********************************************************************| 31153 KB 00:00 ETA
[admin@WL-500GP /opt]$ ipkg install samba_3.2.0-1_mipsel.ipk
Installing samba (3.2.0-1) to /opt/...
package samba suggests installing cups
Configuration file '/opt/etc/init.d/S08samba'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installed)
The default action is to keep your current version.
*** S08samba (Y/I/N/O/D) [default=N] ?Y
Configuring samba
The original samba version 2 config (/etc/samba/smb.conf) is no longer
working with this version of samba.
Please create a new samba version 3 config (/opt/etc/samba/smb.conf).
After verify your smb.conf file, modify and execute /opt/etc/init.d/S08samba
to activate the samba version 3.
Successfully terminated.
[admin@WL-500GP /opt]$ nano /opt/etc/samba/smb.conf
GNU nano 2.1.2 File: /opt/etc/samba/smb.conf
[global]
workgroup = Workgroup
guest account = admin
security = share
browseable = yes
guest ok = yes
guest only = no
log level = 1
max log size = 100
encrypt passwords = no
dns proxy = no
unix charset = UTF-8
display charset = UTF-8
dos charset = UTF-8
[Wl 500gP]
path=/
writeable = yes
browseable = yes
[ Read 26 lines ]
[admin@WL-500GP /opt]$ nano /opt/etc/init.d/S08samba
GNU nano 2.1.2 File: /opt/etc/init.d/S08samba
#!/bin/sh
# set samba_active=1 to activate samba
samba_active=1
[ 1 = $samba_active ] || exit 0
if [ -n "`pidof smbd`" ] ; then
echo "Stopping smbd:"
killall smbd
fi
if [ -n "`pidof nmbd`" ] ; then
echo "Stopping nmbd:"
killall nmbd
fi
sleep 2
[ Wrote 23 lines ]
[admin@WL-500GP /opt]$ mv /opt/etc/init.d/S97samba /opt/etc/init.d/K97samba
mv: unable to rename `/opt/etc/init.d/S97samba': No such file or directory
[admin@WL-500GP /opt]$ killall smbd
killall: smbd: no process killed
[admin@WL-500GP /opt]$ killall nmbd
killall: nmbd: no process killed
[admin@WL-500GP /opt]$ /opt/etc/init.d/S08samba
Starting nmbd:
Aborted (core dumped)
Starting smbd:
Aborted (core dumped) |
|