Solaris中的umask和chmod的区别

1.chmod
2.umask
三位8进制数来表示
chmod和umask的修改的权限位是互补的。
比如:umask 022 对于chmod就是:755
755====>rwxr-xr-x
Similar to the numeric code for the chmod command, the three numbers that are used with umask are as follows.

第一个数字控制用户权限:The first digit controls user permissions

第二个数字控制组权限:The second controls group permissions

第三个数字控制所有其他的权限:The third digit controls permissions for all others

可以参见:docs.sun.com/app/docs/doc/806-7612/6jgfmsvru

编写于【2009-01-15】

猜你喜欢

转载自can-do.iteye.com/blog/2287349