|
WindowsからLinuxマシンのハードディスクに簡単にアクセスしたい! ということで、Sambaを使ってファイルを共有を実現してみる。 Sambaを使うとWindowsの「マイネットワーク」からLinuxのハードディスク内を 参照することが出来るのでとっても簡単。 まず最初にSambaのインストール これでインストール完了。
その次にサンバの設定を行う。今回はとりあえずWindowsの「マイネットワーク」から、 観れることを目標にする。 ということで・・・簡単に設定を # vim /etc/samba/smb.conf (以下変更箇所のみを抜粋) workgroup = WORKGROUP (お使いのWindowsマシンのワークグループ名に合わせる) |
と設定はこれだけ。 この後に、Sambaの起動と、Linux起動時に立ち上がるように登録を行う。 # /etc/rc.d/init.d/smb start # /sbin/chkconfig smb on
|
以上で完了。 あと、Sambaに対して、アクセスしたいユーザを登録する必要がある。 仮に、hogehogeというユーザ(Linux上に既に存在するユーザと仮定)のディレクトリ にアクセスできるようにしたい場合は、以下のコマンドを使ってパスワードを設定する。 # smbpasswd -a hogehoge (パスワードを入力)
|
これで完了。 あとは、Windowsから「マイネットワーク」を開き、「ワークグループのコンピュータを 表示する」をクリックする。 「Samba Server on....」というのが表示されるはずなので、それを開く。 ここで、ユーザ名とパスワードを聞かれるので、先ほどの「hogehoge」と設定した パスワードを入力する。 これで、無事にLinux上のハードディスクにアクセスできるはずだ。
Add as favourites (52) | Quote this article on your site | Views: 1213
|
|
|
|
|
|
|
|
|
|
|
- Please keep the topic of messages relevant to the subject of the article.
- Personal verbal attacks will be deleted.
- Please don't use comments to plug your web site. Such material will be removed.
- Just ensure to *Refresh* your browser for a new security code to be displayed prior to clicking on the 'Send' button.
- Keep in mind that the above process only applies if you simply entered the wrong security code.
|
Powered by AkoComment Tweaked Special Edition v.1.4.6 AkoComment © Copyright 2004 by Arthur Konze - www.mamboportal.com All right reserved |