.で始まるファイル名を持つファイルについて

ファイルサーバ機能(俗に言うSamba)機能に関する話題はこちらから。

.で始まるファイル名を持つファイルについて

投稿記事by reviya » 2017年3月15日(水) 12:14

Windowsで使用していたファイルをWafflecellでそのまま使いたくてフォルダごとコピーしたところ、.tcshrcなど、
ファイル名の先頭が"."(ピリオド)となっているファイルがエラーとなり、コピーできませんでした。

どうやら、先頭が"."のファイルについて、WindowsからWafflecellのフォルダに対して下記の操作を行なおうとするとうまくいかないようです。

・Windows→Wafflecellへのファイルコピー/移動(逆方向は、そもそもWindowsから"."で始まるファイルを見ることが出来ない)
・"."で始まるファイルの新規作成。
・"."で始まるファイルへのファイル名変更

いずれも、先頭が"."以外のファイルでは問題なく実行できていますので、SAMBAで何か設定が必要ではないかと思うのですが・・・。

とりあえず、先頭の"."を別の文字に置き換えて対処しているのですが、何か良い方法はないでしょうか?
reviya
 
記事: 3
登録日時: 2017年3月13日(月) 02:15

Re: .で始まるファイル名を持つファイルについて

投稿記事by mozart » 2017年3月15日(水) 13:56

これは難しい問題で「.」から「はじまる」ファイルは「基本的に」Windows
ではその歴史から利用できません。

一方、Waffle CellのようなLinuxベースのものは特殊な使い方ではあり
ますが、利用可能です。

その為互換性の問題からWaffle Cellのファイルサーバー機能では . から
はじまるファイル名を例外処理をして使えないようにしています。

これらを理解の上、自己責任で以下を試してみて下さい。

1)仮想デスクトップで「アプリケーション」「アクセサリ」にある端末を開く
2)黒い画面で以下を入力(パスワードを聞かれたら管理者パスワードを入れる)

 su 管理者ユーザー名
 sudo su

この段階で画面左に「root」と表示されているはずです。
3)次に以下のファイルを編集します。

 nano /wf/conf/sambasec.template

エディタが開くので最後から二行目にある

 veto files = /.??*/



 #veto files = /.??*/

として、保存終了します。

4)Waffle Cellを再起動
再起動して動作確認をします。

※ ただし動作を保証するものではなく、互換性の点から推奨しません。
アバター
mozart
 
記事: 707
登録日時: 2013年5月24日(金) 13:56
お住まい: 東京の中心、板橋区

Re: .で始まるファイル名を持つファイルについて

投稿記事by mozart » 2017年3月15日(水) 14:29

4)に「再起動」とありますが、間違いでした。

再起動のかわりに、「管理ページ」の「ユーザー設定」の下にある
「既存Server 一般ユーザー設定変更/削除」でご自身のユーザーを選択後、
「Server 一般ユーザー編集」で(何も編集せずに)「編集内容を確定」して
ください。
アバター
mozart
 
記事: 707
登録日時: 2013年5月24日(金) 13:56
お住まい: 東京の中心、板橋区

Re: .で始まるファイル名を持つファイルについて

投稿記事by reviya » 2017年3月16日(木) 20:23

早速の御回答ありがとうございます。

"."で始まるファイルの扱いは、思いのほか面倒なのですね・・・。

もともと、Windows上のCygwinで使用していたファイル群なのですが、
今となってはWafflecellのコンソールを叩けば済む話ですので、この際、
完全に移行してしまおうと思います。
reviya
 
記事: 3
登録日時: 2017年3月13日(月) 02:15

Re: .で始まるファイル名を持つファイルについて

投稿記事by gohingy » 2018年4月18日(水) 05:48

私も同じ問題で悩んでいましたので、試してみましたが、解決できませんでした。
私の場合はwindowsではなく、ubuntuから使用しています。
通常は問題ないのですが、最近、libreofficeを使い始めたのですが、
「ファイルをロックできません」とのメッセージが出て、読み取り専用でしか、扱えません。
libreofficeは、「.」で始まるファイルをつくるようです。
・wafflecell stick
・ubuntuでは、「mount cifs」でwafflecellをマウントしています。

よろしくお願いします。
gohingy
 
記事: 12
登録日時: 2014年8月04日(月) 06:29

Re: .で始まるファイル名を持つファイルについて

投稿記事by Sysop » 2018年4月18日(水) 11:11

gohingyさん、こんにちは。
Sysopです。

ドットで始まるファイル名の件、ちょっと調べてみます。
少し時間がかかるかと思いますので、お待ち下さい。
Sysop
 
記事: 237
登録日時: 2013年5月24日(金) 14:13

Re: .で始まるファイル名を持つファイルについて

投稿記事by gohingy » 2018年4月19日(木) 05:51

こんにちは。
sambaの使い方マニュアルを参考に、次のことをしたところ、
「.で始まる」隠しファイルにアクセスできるようになりました。
wafflecellにとって正しい方法かどうかは不明ですが・・・。
実施したこと。
 ①/etc/samba/smb.confの「veto files」をコメントアウト
 ②再起動

ただし、次を実行すると、smb.confの「veto files」が元に戻ってしまいます。
 ③再起動のかわりに、「管理ページ」の「ユーザー設定」の下にある
  「既存Server 一般ユーザー設定変更/削除」でご自身のユーザーを選択後、
  「Server 一般ユーザー編集」で(何も編集せずに)「編集内容を確定」して
  ください。

/wf/conf/sambasec.templateの「veto files」の修正は、してもしなくても
関係ないようです。
③を実行すると、smb.confの「veto files」が元に戻ってしまいます。
gohingy
 
記事: 12
登録日時: 2014年8月04日(月) 06:29

Re: .で始まるファイル名を持つファイルについて

投稿記事by wafflecomdev » 2018年4月20日(金) 15:07

次期アップデート修正予定ですが、以下2つのファイルを変更していただくと正常にドット
が先頭に付いたファイルにアクセスができます。修正前に設定をバックアップして下さい。

1)/wf/conf/samba.template ファイル
  a) homesタグのveto filesを以下のように変更。
  b) vete filesの次に hide dot files = yes を追加して下さい。
--
veto files = /examples.desktop/
hide dot files = yes
--
2) /wf/conf/sambasec.template ファイル
  a) vete files を削除して同じ位置に、hide dot files = yes を追加して下さい。
--
hide dot files = yes
--
3)上記変更後にユーザーを追加したりすと反映されます。

 ユーザー追加したくない場合は、gohingyさんのように以下のように「編集内容を確定」して下さい。

 >③再起動のかわりに、「管理ページ」の「ユーザー設定」の下にある
 >「既存Server 一般ユーザー設定変更/削除」でご自身のユーザーを選択後、
 >「Server 一般ユーザー編集」で(何も編集せずに)「編集内容を確定」して
 > ください。

よろしくおねがいします。
wafflecomdev
 
記事: 17
登録日時: 2013年11月13日(水) 11:46

Re: .で始まるファイル名を持つファイルについて

投稿記事by gohingy » 2018年4月24日(火) 05:53

こんにちは。
ドットで始まるファイルにアクセスすることができました。
gohingy
 
記事: 12
登録日時: 2014年8月04日(月) 06:29

Re: .で始まるファイル名を持つファイルについて

投稿記事by looneyhans » 2021年10月27日(水) 18:24

I really loved it here but are there any recent updates? Thanks https://fencingsacramentoca.com
looneyhans
 
記事: 278
登録日時: 2021年10月27日(水) 18:17

Re: .で始まるファイル名を持つファイルについて

投稿記事by Killersmile » 2021年11月01日(月) 15:14

Well this is great site! Would definitely recommend this to my friends. Love the read https://bookkeepersphoenix.com
Killersmile
 
記事: 142
登録日時: 2021年11月01日(月) 14:39

Re: .で始まるファイル名を持つファイルについて

投稿記事by yeoyeo » 2021年11月07日(日) 03:45

私は赤ちゃんを笑顔にするのに思います。 https://guitarlessonsdenvercolorado.com
yeoyeo
 
記事: 147
登録日時: 2021年11月07日(日) 03:40

Re: .で始まるファイル名を持つファイルについて

投稿記事by looneyhans » 2021年11月12日(金) 15:56

Well this is great site! Would definitely recommend this to my friends. Love the read sew in hair extensions austin
looneyhans
 
記事: 278
登録日時: 2021年10月27日(水) 18:17

Re: .で始まるファイル名を持つファイルについて

投稿記事by alexpogi11 » 2021年11月13日(土) 14:23

I really loved it here but are there any recent updates? Thanks walk-in tubs el paso
alexpogi11
 
記事: 142
登録日時: 2021年11月13日(土) 13:57



Re: .で始まるファイル名を持つファイルについて

投稿記事by yanath » 2025年6月01日(日) 16:08

http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruhttp://gageboard.ruhttp://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ru
http://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruhttp://magnetotelluricfield.ruhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruhttp://semiasphalticflux.ruhttp://semifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.ruhttp://taskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruhttp://temperateclimate.ruhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru
yanath
 
記事: 5736
登録日時: 2025年5月12日(月) 16:27


Return to ファイルサーバー機能(Samba)に関して

オンラインデータ

このフォーラムを閲覧中のユーザー: なし & ゲスト[6人]

cron