samba 3.5.1 を試してみる。 [Samba]
sambaとMacの「エラーコード -36」問題で、sambaのバージョンを
3.4.0から最新の3.5.1に上げるとどうなるか試してみました。
$ tar zxvf /usr/local/src/samba-3.5.1.tar.gz
$ cd /usr/local/src/samba-3.5.1/source3
$ ./autogen.sh
$ ./configure
$ make
# make install
samba 3.4.0の設定ファイルを3.5.1の設定ファイルに流用します。
# cp /etc/samba/smb.conf /usr/local/samba/lib/
いろいろとファイルの場所が違うので 起動ファイルを書き換えます。
書き換えた /etc/init.d/samba
--------------------------------------------ここから
#!/bin/sh
### BEGIN INIT INFO
# Provides: samba
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Should-Start: slapd
# Should-Stop: slapd
# Short-Description: start Samba daemons (nmbd and smbd)
### END INIT INFO
# Defaults
RUN_MODE="daemons"
# Reads config file (will override defaults above)
[ -r /etc/default/samba ] && . /etc/default/samba
PIDDIR=/usr/local/samba/var/locks
NMBDPID=$PIDDIR/nmbd.pid
SMBDPID=$PIDDIR/smbd.pid
# clear conflicting settings from the environment
unset TMPDIR
# See if the daemons are there
test -x /usr/local/samba/sbin/nmbd -a -x /usr/local/samba/sbin/smbd || exit 0
. /lib/lsb/init-functions
case "$1" in
start)
log_daemon_msg "Starting Samba daemons"
# Make sure we have our PIDDIR, even if it's on a tmpfs
install -o root -g root -m 755 -d $PIDDIR
NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 2>/dev/null`
if [ "$NMBD_DISABLED" != 'Yes' ]; then
log_progress_msg "nmbd"
if ! start-stop-daemon --start --quiet --oknodo --exec /usr/local/samba/sbin/nmbd -- -D
then
log_end_msg 1
exit 1
fi
fi
if [ "$RUN_MODE" != "inetd" ]; then
log_progress_msg "smbd"
if ! start-stop-daemon --start --quiet --oknodo --exec /usr/local/samba/sbin/smbd -- -D; then
log_end_msg 1
exit 1
fi
fi
log_end_msg 0
;;
stop)
log_daemon_msg "Stopping Samba daemons"
log_progress_msg "nmbd"
start-stop-daemon --stop --quiet --pidfile $NMBDPID
# Wait a little and remove stale PID file
sleep 1
if [ -f $NMBDPID ] && ! ps h `cat $NMBDPID` > /dev/null
then
# Stale PID file (nmbd was succesfully stopped),
# remove it (should be removed by nmbd itself IMHO.)
rm -f $NMBDPID
fi
if [ "$RUN_MODE" != "inetd" ]; then
log_progress_msg "smbd"
start-stop-daemon --stop --quiet --pidfile $SMBDPID
# Wait a little and remove stale PID file
sleep 1
if [ -f $SMBDPID ] && ! ps h `cat $SMBDPID` > /dev/null
then
# Stale PID file (nmbd was succesfully stopped),
# remove it (should be removed by smbd itself IMHO.)
rm -f $SMBDPID
fi
fi
log_end_msg 0
;;
reload)
log_daemon_msg "Reloading /usr/local/samba/lib/smb.conf" "smbd only"
start-stop-daemon --stop --signal HUP --pidfile $SMBDPID
log_end_msg 0
;;
restart|force-reload)
$0 stop
sleep 1
$0 start
;;
status)
status="0"
NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 2>/dev/null`
if [ "$NMBD_DISABLED" != "Yes" ]; then
status_of_proc -p $NMBDPID /usr/local/samba/sbin/nmbd nmbd || status=$?
fi
if [ "$RUN_MODE" != "inetd" ]; then
status_of_proc -p $SMBDPID /usr/local/samba/sbin/smbd smbd || status=$?
fi
if [ "$NMBD_DISABLED" = "Yes" -a "$RUN_MODE" = "inetd" ]; then
status="4"
fi
exit $status
;;
*)
echo "Usage: /etc/init.d/samba {start|stop|reload|restart|force-reload|status}"
exit 1
;;
esac
exit 0
--------------------------------------------ここまで
そして、
Finderからファイルサーバーにコピーすると。。。
こんどは
一部の項目へのアクセス権がないため、操作は完了できません。
と。。。
EA対応していないnetatalkで出るエラーと同じですね。
さて、
samba3.4.0の時には、エラーコード -36で、拡張属性付き0byteのファイルが
できあがっていたのですが、今度はデータフォークもコピーされています。
そして、
このエラーの出たファイルをgetfattrすると、、
$ getfattr -d test.txt
# file: test.txt
user.DosStream.AFP_AfpInfo:$DATA=0sQUZQAAAAAQAAAAAAAAAAgGJyb2t
NQUNTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
user.DosStream.com.apple.metadata\357\200\242kMDItemFinderComment:
$DATA=0sYnBsaXN0MDBWdGV0ZXRlCAAAAAAAAAEBAAAAAAAAAAEAAAAAAA
AAAAAAAAAAAAAPAA==
一方、ターミナルからコピーしたファイルをgetfatterすると
getfattr -d test.txt
# file: test.txt
user.DosStream.com.apple.metadata\357\200\242kMDItemFinderComment:
$DATA=0sYnBsaXN0MDBWdGV0ZXRlCAAAAAAAAAEBAAAAAAAAAAEAAAAAAA
AAAAAAAAAAAAAPAA==
一部欠損してそうです
状況はかわりましたが、エラーが出るという点では相変わらずです
なんか10.6.3でこのあたりの修正が入ったみたいですが、
どうですかね。
AFPの方のEA問題は直ってないのを確認しましたが。
by HAT (2010-03-31 01:38)
10.6.3でましたね。
近いうちに、試してみます。
by nao (2010-03-31 09:55)
10.6.3試してみたんですが、どうもダメみたいですねー
同じエラーが現れます。。
FAT32だと直っているのかな。
by nao (2010-04-01 21:53)
My Alli Canada Vre Amoxicillin <a href=http://catabs.com>priligy como se toma</a> Acheter Cialis Meilleur Prix Vpxl Pill Store Propecia Generico Farmacias Levitra Stronger Than Viagra Medscom Bewertung <a href=http://cialiviag.com>cialis 5mg best price</a> Levitra Wann Wirkt Viagra Pour Canard Amoxicillin Small Intestine Overgrowth Syndrome Cialis 10 Mg 4 Comprimidos <a href=http://buycheapciall.com>cialis 20mg for sale</a> Kamagra Hipertension Cialis A Quel Age Levitra Farmacia Di Macrobid 100mg Nitrofurantoin. Sale Macrobid Antibiotic Australia. Legally Macrobid Cod Accepted Medicine Without Dr Approval Lincolnshire <a href=http://cpsmeds.com>cialis from canada</a> Clobetasol Medicine Visa Accepted Cash On Delivery Worldwide Cheapeast Dutasteride Duagen Buy Oklahoma Cialis Ricetta Online <a href=http://cialionline.com>cheapest cialis 20mg</a> Finasteride Online Cheap Info On Cephalexin 250mg <a href=http://cial40mg.com>cheapest cialis 20mg</a> Comprar Cialis Internet Foro Healthy Men Viagra
by Jeashibia (2019-02-05 12:17)
Buy Cialis Without Pescription Prix Kamagra En Algerie Order Progesterone Menopause Medicine <a href=http://aaost.com>cialis for sale</a> Generic Viagra Customer Reviews Forum Generic Real Isotretinoin Best Website C.O.D. Cheapeast Shop Utilisation Du Kamagra
by Jeashibia (2019-02-25 22:33)
Krankenkasse Levitra Rezeptfrei Keflex And Hcpcs Cheap Viagara 100 Mg <a href=http://ciali10mg.com>cialis without a doctor's prescription</a> Definicion De La Propecia Cialis 5mg Bestellen
by Jeashibia (2019-04-05 15:49)
Krankenkasse Levitra Rezeptfrei Keflex And Hcpcs Cheap Viagara 100 Mg <a href=http://ciali10mg.com>cialis without a doctor's prescription</a> Definicion De La Propecia Cialis 5mg Bestellen
by Jeashibia (2019-04-05 15:49)
Krankenkasse Levitra Rezeptfrei Keflex And Hcpcs Cheap Viagara 100 Mg <a href=http://ciali10mg.com>cialis without a doctor's prescription</a> Definicion De La Propecia Cialis 5mg Bestellen
by Jeashibia (2019-04-05 15:49)
Krankenkasse Levitra Rezeptfrei Keflex And Hcpcs Cheap Viagara 100 Mg <a href=http://ciali10mg.com>cialis without a doctor's prescription</a> Definicion De La Propecia Cialis 5mg Bestellen
by Jeashibia (2019-04-05 15:49)
Krankenkasse Levitra Rezeptfrei Keflex And Hcpcs Cheap Viagara 100 Mg <a href=http://ciali10mg.com>cialis without a doctor's prescription</a> Definicion De La Propecia Cialis 5mg Bestellen
by Jeashibia (2019-04-05 15:49)
Krankenkasse Levitra Rezeptfrei Keflex And Hcpcs Cheap Viagara 100 Mg <a href=http://ciali10mg.com>cialis without a doctor's prescription</a> Definicion De La Propecia Cialis 5mg Bestellen
by Jeashibia (2019-04-05 15:49)
Krankenkasse Levitra Rezeptfrei Keflex And Hcpcs Cheap Viagara 100 Mg <a href=http://ciali10mg.com>cialis without a doctor's prescription</a> Definicion De La Propecia Cialis 5mg Bestellen
by Jeashibia (2019-04-05 15:49)
Krankenkasse Levitra Rezeptfrei Keflex And Hcpcs Cheap Viagara 100 Mg <a href=http://ciali10mg.com>cialis without a doctor's prescription</a> Definicion De La Propecia Cialis 5mg Bestellen
by Jeashibia (2019-04-05 15:49)
Mejor Reloj Para Tomar Propecia Zithromax Flu <a href=http://4rxday.com>cialis tablets for sale</a> Buy Viagra Blue Pill
by AustJath (2019-05-15 11:21)
Vente De Kamagra <a href=http://crdrugs.com>cialis no prescription</a> Side Effects To Amoxicillin In Babys Comprar Viagra Sin Receta En Barcelona
by StevNite (2019-05-16 06:17)
Cephalexin And Nursing <a href=http://xzanax.com></a> Doxycycline Price Abilify
by StepOdors (2019-06-03 13:41)
Zithromax At Walgreens <a href=http://cialcheap.com>cialis without a doctor's prescription</a> Acquista Viagra In Italia Propecia Amoxicillin And Ilads Cialis Sample
by StevNite (2019-06-05 10:14)
Viagra Et Previscan <a href=http://addrall.com>best prices for 60mg. orlistat</a> Comparatif Cialis Viagra Levitra Buy Synthroid Online No Rx Cheap 100mg Cialis Pills
by AustJath (2019-06-09 12:13)
Propecia Eficacia 1 Mg By Requip Online <a href=http://cialionline.com>buy cialis online</a> To Buy Flutamide Online Comparateur Prix Viagra Cialis
by StevNite (2019-06-21 06:55)
Precio Cialis 20 Mg Farmacias <a href=http://cialisab.com>cialis from canada</a> Kamagra Jelly Review
by StepOdors (2019-06-30 21:23)
Discount Doxycycline <a href=http://getpharmacyonline.com>cialis 20mg price at walmart</a> Real isotretinoin skin health overseas shop Rumalaya Viagra Cialis Levitra Comparison
by StevNite (2019-07-14 16:34)
Real Cialis No Generic <a href=http://cialisong.com>cheap cialis online</a> Cialis Au Quebec Allergic To Penicillin Amoxil
by StepOdors (2019-07-17 09:47)
Levitra 5 Mg Precio Generique Amoxicillin Sans Ordonnance Pilule Contraceptive Amoxicillin Expired <a href=http://etrobax.com>generic cialis overnight delivery</a> Cialis 5 Mg 28 Compresse Costo
by StepOdors (2019-07-26 20:39)
Reviews On Mylan Bupropion Xl <a href=https://buyciallisonline.com/#>Cialis</a> Baclofene Et Methadone <a href=https://buyciallisonline.com/#>Buy Cialis</a> Propecia In Women Hair Growth
by Stepomits (2020-02-26 09:13)
Levitra Generico Farmacia <a href=http://abcialisnews.com>online pharmacy</a> Acheter Cialis Original 20mg <a href=http://abcialisnews.com>cialis</a> Levitra 100mg Guaranteed Lowest Price
by StepLot (2020-03-01 16:25)
Online Pharmacy No Prescription https://cheapcialisll.com/ - Cialis lily icos cialis <a href=https://cheapcialisll.com/#>Cialis</a> medicamento cialis
by Estuase (2020-06-29 20:01)
I love it I'd love to see work like this and I've got some really cool results for you to see.
I'm so glad that you're updating us regarding this matter. Thanks for sharing.
제이나인 먹튀 카지노
제이나인 먹튀 보증 사이트
제이나인 먹튀 사이트 조회
제이나인 먹튀 인증
제이나인 온라인 카지노 추천
https://www.j9korea.com
<a href="https://www.j9korea.com" title="제이나인 토토 꽁 머니 ">제이나인 토토 꽁 머니 </a>
by jaeseu (2022-12-27 13:00)
Por favor continue a publicar artigos de qualidade, pois é uma coisa rara a encontrar hoje em dia. Estou sempre à procura de artigos que me possam ajudar. olhando para outro grande blog, Boa sorte ao autor! tudo o melhor!
https://www.casinositekim.com/
by 카지노사이트 (2024-01-29 17:06)