English 中文(简体)
在 Mac OS X 上新建文件夹的权限 [已关闭]
原标题:Permission for new folders on Mac OS X [closed]
Closed. This question is off-topic. It is not currently accepting answers.

要改进这个问题吗? 更新了问题 ,因此堆积溢流为

Closed 12 years ago.

当我创建名为“孩子”(例如)的新文件夹时:

parent/child/

子文件夹, 没有父文件夹的相同权限! 我已经用 < code>chmod - R +rw parent 将其更改为父文件夹 。 但创建的每个新文件夹都没有得到相同的值!! 我要在新文件夹上为每个人 +rw 。

我该怎么办?

提前谢谢!

最佳回答

据我所知,没有继承机制 但你可以用马斯克来处理你的案子

其运作方式实例:

$ umask
022
$ mkdir test
$ cd test
$ mkdir 1
$ ls -la 1
total 0
drwxr-xr-x  2 receiver  wheel   68 23 May 16:57 .
drwxrwxrwx  4 receiver  wheel  136 23 May 16:57 ..

上面有022个遮罩,让遮罩设置成千个:

$ umask 000
$ mkdir 2
$ ls -la 2
total 0
drwxrwxrwx  2 receiver  wheel   68 23 May 16:58 .
drwxrwxrwx  5 receiver  wheel  170 23 May 16:58 ..
问题回答

暂无回答




相关问题
2 mysql instances in MAC

i recently switched to mac. first and foremost i installed xampp. then for django-python-mysql connectivity, i "somehow" ended up installing a seperate MySQL. now the seperate mysql installation is ...

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Controlling OSX windows

I m trying to control windows of a foreign OSX applications from my application. I d like to 1. move the windows on the screen 2. resize the windows on the screen 3. change the currently active window ...

Switching J2SE versions on Mac OS (SnowLeopard)

My current JDK on Mac OS (10.6) is set to 1.6 and I d like to switch to 1.5. A listing of /System/Library/Frameworks/JavaVM.framework/Versions/ shows: lrwxr-xr-x 1 root wheel 10 Nov 3 18:34 ...

Scrolling inside Vim in Mac s Terminal

I ve been googling around trying to figure out if it s possible to use my mouse wheel to scroll while inside Vim in Mac s Terminal, with no luck. It seems as if only X11 or iTerm support this. Before ...

export to MP3 from quicktime API

A question for Apple,QT programmers. Would like to know if it s possible to export a Movie object to MP3 using the QuickTime API. Preferably the ConvertMovieToFile function. I ve looked at ...

热门标签