17
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS 6.4 から Windows共有フォルダをマウント

Last updated at Posted at 2014-07-28

ここの通りにやったらできました。
http://sememo.blue-robin.jp/?p=485

調べるとsmbmount は CentOS 5 から消えてしまったらしい。

$ mkdir /home/hoxom/share
$ sudo mount -t cifs -o user=hoxom,password=**** //[ipaddress]/share /home/hoxom/share

ただし、これだとマウントポイントのオーナーが root になってしまう。
これを自分のユーザにしたい場合は、下記のように行う。

$ mkdir /home/hoxom/share
$ sudo mount -t cifs -o uid=$(id -u),gid=$(id -g),user=hoxom,password=**** //[ipaddress]/share /home/hoxom/share

参考

CentOS 5.4 から Windows共有フォルダをマウント
sudo mount したときに、ログインユーザーでのパーミッションをつける

17
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?