This brief tutorial will outline how to enable file sharing in Ubuntu.この簡単なチュートリアルでは、ファイルの共有を有効にする方法の概要ubuntuです。
- Sharing files and folders across your network from your Ubuntu PC is every bit as easy as sharing files in Windows (arguably, it’s easier).全体のファイルとフォルダを共有してネットワークからお客様のパソコンがすべてのビットubuntu同じくらい簡単に共有ファイルをWindows (おそらく、それが簡単) 。 Start by right-clicking the folder you want to share, and select Share Folder .スタート]ボタンを右クリックして、フォルダを共有したいと選択し、 共有フォルダにコピーします。 If the services required to share files/folders aren’t installed, you’ll be prompted to install them.を共有する場合は、サービスに必要なファイル/フォルダにインストールされていません、それらをインストールするように指示します。
- After clicking Install services they will automatically start to download and install.クリックした後にインストールするサービスをダウンロードしてインストールが自動的に開始します。
- Once that has completed you’ll be presented with an options window.一度ことが完了すると、オプションウィンドウを開きます。 From here you can select the type of sharing (SMB or NFS), give the shared folder a name and decide if you want read-only access to the folder.ここからのタイプを選択することができます共有( SMBやNFS )するには、共有フォルダの名前と判断する場合は、読み取り専用のアクセスをフォルダにコピーします。 Click OK when you’re done.完了したら[ OK ]をクリックします。
- If you right-click on your newly shared folder and select Properties and then the Emblems tab, you can give the folder a unique icon so you’ll know it’s shared.を右クリックしている場合は、新たに共有フォルダを選択し、 エンブレムのプロパティ ]タブをクリックし、フォルダにすることができます。固有のアイコンを与えるので、後で知っての共有です。
- You can further modify the permissions of your shared folder by selecting the Permissions tab.より詳細な変更してのアクセス許可をすることができますして共有フォルダを選択してアクセス許可タブをクリックします。
- Now open a terminal in Ubuntu and enter the command:今すぐは、ターミナルを開いてubuntuとのコマンドを入力します:
sudo smbpasswd -a username sudoを使ってユーザー名smbpasswd -
This will add a SMB user.これにより、 SMBのユーザーを追加する。
- And now other computers can connect to your shared folder!そして今して他のコンピュータから共有フォルダに接続して!






















{ 3 trackbacks } ( 3トラックバック)
{ 30 comments… read them below or ( 30のコメントを読むことの下や… add one追加する } )
And when it asks you for the username and password?と尋ねられたときに、ユーザー名とパスワードをですか? Do you give the username and password of the linux account?あなたのユーザー名とパスワードを与えるのは、 Linuxアカウントのですか?
Ferdinand,フェルディナンド、
Yes - sorry I should have included that - will update shortly.はい-申し訳ありません含まれるものにしなければいけない-が更新される予定です。
I have Ubuntu 7.04 running in Parallels Desktop.私は類似ubuntu 7.04デスクトップで実行されています。 Will it possible to access a shared folder from Mac OS X running on the same machine.は、共有フォルダにアクセスすることが可能にMac OS Xから同じマシン上で実行されています。 I tried it but it didn’t work.私はそれを試みたがうまくいきませんでした。
I tried this, and cannot log in (from my windows machine) via my ubuntu username.これみました、およびログインすることはできません(私のWindowsマシンから)経由で私のubuntuのユーザー名です。 (which is “aamir”). (これは"アーミル" ) 。 I can see the PC in “My Network Places”.私はPCの詳細については、 "マイネットワークプレース"です。
Please assist!ご支援!
I tried the same approach as the one listed here but, under OS X (10.3.9), after I enter the Ubuntu admin username and password I get an error which says Can not connect as the username or password is incorrect.を作ってみましたが同じ1つのアプローチとしてここに記載さしかし、されてOS Xの( 10.3.9 ) 、 ubuntuした後、 adminユーザー名とパスワードを入力してしようとするとエラーが発生すると言うことはできないとして接続するユーザー名やパスワードが間違っています。
I have attempted to connect from Ubuntu to the mac and that way works but not from the mac to Ubuntu.私はubuntuから未遂に接続する方法を、 Macとその作品にMacをubuntuからはできません。 Any ideas?何かお考えですか?
To connect to your shared Linux folder on a Windows machine, enter sudo smbpasswd -a (username) in terminal and set your SMB password.あなたの共有フォルダに接続するにはリナックスは、 Windowsマシン、 smbpasswd - sudoを使って入力する(ユーザー名)にターミナルを設定してくださいSMBのパスワードを入力します。
Hiやあ
It seems that you also need to add a samba user :どうやらあなたがサンバを追加するにも必要ユーザー:
sudo smbpasswd -a usernamen sudoを使ってsmbpasswd - usernamen
After that started to work with my installation私の仕事をした後にインストールを開始
Please include that we also need to add the user as a samba user using the command into the main article… I thought I had done something wrong until I scrolled down to see the commentsご記入を追加することも必要サンバのユーザーとしてコマンドを使用して、ユーザーの主な記事は…だと思っていた私が何か悪いことまでスクロールダウンを参照してコメント
Thanks for the article.記事てくれてありがとう。
Excellent support article here.素晴らしいサポートの記事です。 I have only been using Ubunta for couple of days and I love it.私はubuntaのみを使用しているカップルオブデイズ』と大好きです。 My feelings for Windows XP and Vista are moving more and more towards Ubunta.私の気持ちを、 Windows XPおよびVistaは動くますますubunta向けです。
Thank you for your help.ヘルプお問い合わせいただきありがとうございます。
Lee Farris李Farrisの
yeah… another one that was stumped until the comments about adding the samba password…うん… stumpedするまで、もう1つはSambaのパスワードについてコメントを追加して…
now it works great!今ではすごい!
Great article, although you’re missing half the equation.大きな記事が、あなたは行方不明の半分の方程式です。 You need to add a user as several people have mentioned before you’re tutorial can work.を追加する必要がユーザーとしていくつかの人々が言及する前には、チュートリアルで作業します。 (and a possible samba restart? - I just did it just in case) (および再起動する可能性がサンバですか? -私だけ念のためにやった)
sudo /etc/init.d/samba restart sudoを使って/ etc / init.d / Sambaの再起動
Peter - yeah I really do have to update this.ピーター-うん僕、本当に困ったことに、この更新プログラムです。 The samba user step I forgot as it had already been created.ユーザーのパスワードを忘れてサンバのステップとして既に作成されていた。 Thanks!ありがとう!
And what should i do if i want Windows users to connect to my shared files without entering any password?としたい場合はどうすればWindowsユーザに接続するには私の共有ファイルのパスワードを入力せずですか?
Thanks for the guide- I’ve been trying to work out if it is possible to share files in Ubuntu all morning and finally found this page.ガイドてくれてありがとう私もしようとして作業を共有することが可能かどうかのファイルをすべてubuntu朝そして最後にこのページが見つかりました。
I right clicked on a file on this computer and installed both services, then chose SMB because NFS asked me about IP addresses, network name which I don’t know off hand.私右クリックして、インストールし、このコンピュータ上のファイルに両方のサービスに、次に選んだのNFSについて聞かSMBのため、 IPアドレス、ネットワーク名を手オフわかんないです。
My other computer asked me for a password for MSHOME but did not recognise my Ubuntu password.私は私を求め他のコンピュータのパスワードを認識しなかったmshomeしかし、私のubuntuパスワードを入力します。
Tried sudo smbpasswd -a usernamen as above with no success. smbpasswd - usernamen sudoをしようとする上記のように不成功にします。
Then went through the same process on my other computer and found I could access the shared folder with no problem from this computer.入力し、同じプロセスをくぐり抜けたして他のコンピュータと共有フォルダにアクセスするが見つかりました私が何の問題もこのコンピュータからです。
I checked permissions/folder access on the shared folders on both computers and found one set to ‘access files’ and the other to ‘none’.私チェックのアクセス許可/フォルダへのアクセスを検索すると、両方のコンピュータ上の共有フォルダが見つかりました1つ設定して'アクセスファイル'と、他のを' none 'です。 (These were the default settings- don’t know why they were different.) (これらは、デフォルトの設定-か分からないなぜ彼らは異なっています。 )
I was then able to see the shared folder on the other computer without being asked for a password.私はできるように入力し、上の共有フォルダを参照して頼まれもしないのに、他のコンピュータにパスワードを入力します。
Under what circumstances is it necessary to set up a samba password?どのような状況の下ではサンバのパスワードを設定するには必要ですか?
I think file sharing in both directions is working now, even though I haven’t gone through the password process on this computer.と思うの両方でファイルを共有する方向に働くにもかかわらず、私はプロセスを経てこのコンピュータ上でのパスワードです。
If possible could you include an idiots guide as to the relative merits of SMB and NFS (and indeed, what they are).可能であれば、これを馬鹿には、ガイドとしての相対的メリットをSMBおよびNFSの(そして実際に、彼らはどのような) 。
Is there any reason to use NFS when SMB seems to be far easier to set up?どのような理由があるのNFSを使用すると思われるときのSMBを設定するにはるかに簡単ですか?
Again, many thanks!再び、多くのありがとう!
While I should have known better, the ’smbpasswd’ step had me stumped.を知っていればなあよりは、 ' smbpasswd 'ステップは私stumped 。 Thanks for the kick in the right direction.キックてくれてありがとうて、正しい方向にします。
how do you connect to your shared folder ?をどのようにして共有フォルダに接続してですか?
How do you setup a shared folder that allows anonomous windows users.共有フォルダをどのように設定することができるanonomous Windowsユーザです。 I would like to create an “In Box” folder and share it to my entire network so users can grab files from it or place files in it.を作成するにしたい"場所]ボックスで"フォルダと共有することをネットワーク全体に私からファイルを取得できるため、ユーザーのファイルを配置したりします。
In a network of hundreds of users putting a username and password for each user will not work.何百ものユーザーがネットワークのユーザー名とパスワードを入れて、各ユーザーは動作しません。
same here:同じ場所:
sudo smbpasswd -a usernamen sudoを使ってsmbpasswd - usernamen
fixed it for me, wasted a couple of hours today trying to get it working固定してもらえます、いくつかの時間を無駄にしようとして得ること今日の作業
thanks!ありがとう!
gosh, i went through the smbpasswd thingy too.まあ、私はsmbpasswdくぐり抜けたブツが判明しました。
and as a newbie, it took me 3 days befor i found this page… dang!すると、初心者は、メイン3日間かかったbeforこのページを見つけた…ダン!
thanks a ton, soup on Jun 12, 2007感謝が1トンに、スープを2007年6月12日
thanks a lot!どうもありがとう! this worked for me!この仕事をミー!
when i try to let ubuntu install the services for the first time, i get no choice regarding the protocols. ubuntuしようとした際にインストールしてサービスをさせて、最初の頃、私取得して、 [プロトコルの選択についてです。 hardy just installs samba, but not nfs…what’s wrong here?耐寒性だけをインストールサンバ、しかし、特定のNFS …ここで何がおかしいのですか?
I’m running two computers with Ubuntu and I tried all of this and I still don’t see anything when I go to Places–> Network.私は2つのコンピュータで実行中のすべてのubuntuしてみましたこれと私まだ何も表示されていない場所へ行くとき- >ネットワークです。 Do I need to change settings on my router?すればよいしてルータの設定を変更する必要がありますか?
Well hardy heron ubuntu I did most of the above including the smbpasswd stuff.よくハーディヘロンubuntu私はほとんどのsmbpasswd 、上記のものを含む。 The process was similar but not exact.このプロセスは、正確に似ていない。 On my simple Xubuntu machine sharing right click sharing is not an option.単純なxubuntuマシンを共有して右クリックし、共有するという選択肢はない。 On win98 net neighbourhood there is no singn of Ubuntu.上のWin98がない純singn近隣Ubuntuのです。 Any suggestions?任意の提案ですか? Ianイアン
I getいい
‘net usershare’ returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. '純usershare '返されたエラー255 :純usershare : usershareを開くことができないディレクトリに/ var / lib /サンバ/ usersharesです。 Error Permission deniedエラーが発生アクセスが拒否されました
You do not have permission to create a usershare.の許可をする必要はありません。 usershareを作成する。 Ask your administrator to grant you permissions to create a share.管理者に問い合わせてくださいあなたのアクセス許可を付与するに共有を作成する。
When I try to share the folder.を共有するにしようとした際にフォルダにコピーします。
Thanksありがとう
I also get the error,私も入手してエラーが発生、
“net usrshare returned error 255″ when I try to create a shared folder in ubuntu Hardy heron. "ネットusrshare返されたエラー255 "しようとした際に共有フォルダを作成するにubuntuハーディヘロンです。
Thanks!!!ありがとう! ! ! I have one lonely *nix machine on a windows domain - I appreciated this.私は1つの孤独な* nixのマシンでは、 Windowsドメイン-私感謝します。
Something is missing from the instructions.何かが行方不明者の指示にします。 Here is what I get:ここは私が取得:
‘net usershare’ returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. '純usershare '返されたエラー255 :純usershare : usershareを開くことができないディレクトリに/ var / lib /サンバ/ usersharesです。 Error Permission deniedエラーが発生アクセスが拒否されました
You do not have permission to create a usershare.の許可をする必要はありません。 usershareを作成する。 Ask your administrator to grant you permissions to create a share.管理者に問い合わせてくださいあなたのアクセス許可を付与するに共有を作成する。
I am also installing on hardy and running into this problem:私はまた耐寒性にインストールすると実行中にこの問題を回避する:
‘net usershare’ returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. '純usershare '返されたエラー255 :純usershare : usershareを開くことができないディレクトリに/ var / lib /サンバ/ usersharesです。 Error Permission deniedエラーが発生アクセスが拒否されました
You do not have permission to create a usershare.の許可をする必要はありません。 usershareを作成する。 Ask your administrator to grant you permissions to create a share.管理者に問い合わせてくださいあなたのアクセス許可を付与するに共有を作成する。
any ideas there?何かお考えがあるか?
ok here is the hardy fix:ここでは、耐寒性修正します:
I selected to install samba (file server) when i installed hardy server edition-this is ok.私選択をインストールするサンバ(ファイルサーバー)をインストールしたときに耐寒性Server Edition日本語版-これがします。
when i got the desktop installed i tried to right click in nautilus (file explorer) and share the file and I got the previous error (net usershare 255).ときに私は、デスクトップを右クリックしてインストールしてみましたがノーチラス(ファイルエクスプローラ)とファイルを共有して私は、以前のエラーが発生(純usershare 255 ) 。
to fix it i went to system ->administration -> users and groups.僕はそれを修正するシステム->行政- >ユーザとグループです。 then unlock (enter password) then manage groups.入力し、ロックを解除(パスワードを入力)入力し、グループを管理します。 choose sambashare then properties. sambashare入力し、プロパティを選択します。 select your name hit ok, close, close.ヒットしますあなたのお名前を選択し、閉じる、終了します。
Then logout and log back in and then right click and try to share the directory.入力し、ログインし直して、ログアウトしてと入力し、右クリックし、共有してディレクトリをしようとします。
For some reason in hardy samba doesn’t add you to the sambashare group.ハーディサンバいくつかの理由ではありませんsambashareを追加するグループです。
I didn’t do any of that sambashare stuff!私がしなかったことをsambashareのいずれかで譲ります! I just followed what Brad said and it worked for me.ただその後どのようなブラッドによると、私にはうまくいった。
“to fix it i went to system ->administration -> users and groups. "僕はそれを修正するシステム->行政- >ユーザとグループです。 then unlock (enter password) then manage groups.入力し、ロックを解除(パスワードを入力)入力し、グループを管理します。 choose sambashare then properties. sambashare入力し、プロパティを選択します。 select your name hit ok, close, close.ヒットしますあなたのお名前を選択し、閉じる、終了します。
Then logout and log back in and then right click and try to share the directory.入力し、ログインし直して、ログアウトしてと入力し、右クリックし、共有してディレクトリをしようとします。 ” "
Thanks for the help.助けてくれてありがとう。 When I tried the first fix in the command line thing, it always said cannot modify password, so I gave up and tried Brad’s sollution, and voila, it worked!最初のときに修正プログラムを作ってみましたが、コマンドラインこと、それによると、常にパスワードを変更することはできませんので、あきらめたことを試みたブラッドのsollution 、およびvoila 、うまくいった!
Leave a Commentコメントを残す