My Opera is closing 3rd of March

mg12's Blog

paint my world ...

Linux 中, 共享被挂载的 Windows 分区

,

新装的 Ubuntu 很好, 连 Windows 分区都给我挂在上去了.
但是奇怪的是, 我一直不能共享被挂载的 Windows 分区. Samba 我明明已经配置好了, 其他文件也能共享.
试过发贴问, 但是没有什么回应, 或许是因为我讲得不够清楚吧.

今天进入根用户看看, 竟然可以共享, 莫非是权限问题?
然后, 我改用户群组, 改文件所有者... 搞了半天, 还是不行.

对比了一下 /etc/fstab, 发现以前在 Fedora 用的配置中 umask=000, 而 ubuntu 默认是 umask=007.
Google 了一下, 知道是怎么回事了...

引用: http://man.chinaunix.net/linux/mandrake/cmuo/admin/camount3.html
要允许普通用户对挂载的 Windows 分区(FAT、FAT32 或 NTFS)的访问,您得将可选项
umask=0
添加到‘/etc/fstab’的相应条目中,然后重新挂载该分区。没有这个可选项的话,只有‘root’可以访问那个分区。

20070427万恶的中国电信

Comments

XieWeixwxw Tuesday, May 1, 2007 4:55:48 AM

~~~~~~~~~~linux~~~

Write a comment

New comments have been disabled for this post.