这是我的fstab的内容:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 /dev/hdc2        swap             swap        defaults          0     0
/dev/hdc1 / reiserfs defaults 1 1
/dev/hdc4 /usr reiserfs defaults 1 2
/dev/hdc5 /var reiserfs defaults 1 2
/dev/hdc6 /opt reiserfs defaults 1 2
/dev/hdc7 /home reiserfs defaults 1 2
/dev/hda1 /hda1 ntfs ro , iocharset = gb2312 , umask = 022 1 0
/dev/hda5 /hda2 ntfs ro , iocharset = gb2312 , umask = 022 1 0
/dev/hda6 /hda3 ntfs ro , iocharset = gb2312 , umask = 022 1 0
/dev/hda7 /hda4 ntfs ro , iocharset = gb2312 , umask = 022 1 0
/dev/hdb1 /hdb1 ntfs ro , iocharset = gb2312 , umask = 022 1 0
/dev/hdb5 /hdb2 ntfs ro , iocharset = gb2312 , umask = 022 1 0
/dev/hdb6 /hdb3 ntfs ro , iocharset = gb2312 , umask = 022 1 0
/dev/cdrom /mnt/cdrom auto noauto , owner , ro 0 0
/dev/fd0 /mnt/floppy auto noauto , owner 0 0
devpts /dev/pts devpts gid = 5 , mode = 620 0 0
proc /proc proc defaults 0 0

关键就是那个umask参数:
/dev/hda7 /hda4 ntfs ro,iocharset=gb2312,umask=022 1 0

这样mount之后,/hda4的权限就是drwxr-xr-x(即755),普通用户也能访问了。同理,如果umask=000,权限就变成drwxrwxrwx(即777),任何人都可以为所欲为了