read-only 和 inspect-only 有什么区别?
read-only and inspect-only for everybody."inspect-only"是啥?
难道整句意思是"对于所有人只读","read-only and inspect-only"只不过是英语的用词习惯?
上下文:https://wiki.debian.org/genisoimage
read-only 和 inspect-only 有什么区别?
-
- 帖子: 2284
- 注册时间: 2013-05-26 6:58
- 系统: Debian 9
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: read-only 和 inspect-only 有什么区别?
1. https://wiki.debian.org/genisoimage<div class="postbody">read-only 和 inspect-only 有什么区别?<br>read-only and inspect-only for everybody."inspect-only"是啥?<br>难道整句意思是"对于所有人只读","read-only and inspect-only"只不过是英语的用词习惯?<br>上下文:https://wiki.debian.org/genisoimage</div>
genisoimage -v -J -r -V MY_DISK_LABEL -o /home/user/file.iso /home/user/for_iso
xorrisofs -v -J -r -V MY_DISK_LABEL -o /home/user/file.iso /home/user/for_iso
-r
enables production of Rock Ridge information which records typical POSIX file properties like ownership, permissions, timestamps, file type, symbolic link target. Different from option -R it does not preserve the ownership as on hard disk, but rather sets owner UID to 0 and permissions to read-only and inspect-only for everybody. If Rock Ridge is present, then Linux will mount the main directory tree and use Rock Ridge to show long names with original characters.
2. 簡單的說
sudo ls -al /home/user/for_iso
-r-xr-xr-x 1 root root xxxxxxx 12月 2 14:31 for_iso
或
-rwxr-xr-x 1 root root xxxxxxx 12月 2 14:31 for_iso
others 權限 可讀不可寫可執行
2-1. read-only 指 -r-xr-xr-x
2-3. inspect-only 指 -r-xr-xr-x
3. 進一步參閱
https://manpages.debian.org/cgi-bin/man ... &locale=en
genisoimage - create ISO9660/Joliet/HFS filesystem with optional Rock Ridge attributes
-r
This is like the -R option, but file ownership and modes are set to more useful values. The uid and gid are set to zero, because they are usually only useful on the author's system, and not useful to the client. All the file read bits are set true, so that files and directories are globally readable on the client.
If any execute bit is set for a file, set all of the execute bits, so that executables are globally executable on the client.
If any search bit is set for a directory, set all of the search bits, so that directories are globally searchable on the client.
All write bits are cleared, because the filesystem will be mounted read-only in any case. If any of the special mode bits are set, clear them, because file locks are not useful on a read-only filesystem, and set-id bits are not desirable for uid 0 or gid 0. When used on Win32, the execute bit is set on all files. This is a result of the lack of file permissions on Win32 and the Cygwin POSIX emulation layer. See also -uid, -gid, -dir-mode, -file-mode and -new-dir-mode.
-
- 帖子: 2284
- 注册时间: 2013-05-26 6:58
- 系统: Debian 9
Re: read-only 和 inspect-only 有什么区别?
poloshiao 写了:1. https://wiki.debian.org/genisoimage<div class="postbody">read-only 和 inspect-only 有什么区别?<br>read-only and inspect-only for everybody."inspect-only"是啥?<br>难道整句意思是"对于所有人只读","read-only and inspect-only"只不过是英语的用词习惯?<br>上下文:https://wiki.debian.org/genisoimage</div>
genisoimage -v -J -r -V MY_DISK_LABEL -o /home/user/file.iso /home/user/for_iso
xorrisofs -v -J -r -V MY_DISK_LABEL -o /home/user/file.iso /home/user/for_iso
-r
enables production of Rock Ridge information which records typical POSIX file properties like ownership, permissions, timestamps, file type, symbolic link target. Different from option -R it does not preserve the ownership as on hard disk, but rather sets owner UID to 0 and permissions to read-only and inspect-only for everybody. If Rock Ridge is present, then Linux will mount the main directory tree and use Rock Ridge to show long names with original characters.
2. 簡單的說
sudo ls -al /home/user/for_iso
-r-xr-xr-x 1 root root xxxxxxx 12月 2 14:31 for_iso
或
-rwxr-xr-x 1 root root xxxxxxx 12月 2 14:31 for_iso
others 權限 可讀不可寫可執行
2-1. read-only 指 -r-xr-xr-x
2-3. inspect-only 指 -r-xr-xr-x
3. 進一步參閱
https://manpages.debian.org/cgi-bin/man ... &locale=en
genisoimage - create ISO9660/Joliet/HFS filesystem with optional Rock Ridge attributes
-r
This is like the -R option, but file ownership and modes are set to more useful values. The uid and gid are set to zero, because they are usually only useful on the author's system, and not useful to the client. All the file read bits are set true, so that files and directories are globally readable on the client.
If any execute bit is set for a file, set all of the execute bits, so that executables are globally executable on the client.
If any search bit is set for a directory, set all of the search bits, so that directories are globally searchable on the client.
All write bits are cleared, because the filesystem will be mounted read-only in any case. If any of the special mode bits are set, clear them, because file locks are not useful on a read-only filesystem, and set-id bits are not desirable for uid 0 or gid 0. When used on Win32, the execute bit is set on all files. This is a result of the lack of file permissions on Win32 and the Cygwin POSIX emulation layer. See also -uid, -gid, -dir-mode, -file-mode and -new-dir-mode.
单纯根据您的经验判断?还是从哪里(如搜索引擎)得到的信息?2. 簡單的說
sudo ls -al /home/user/for_iso
-r-xr-xr-x 1 root root xxxxxxx 12月 2 14:31 for_iso
或
-rwxr-xr-x 1 root root xxxxxxx 12月 2 14:31 for_iso
others 權限 可讀不可寫可執行
2-1. read-only 指 -r-xr-xr-x
2-3. inspect-only 指 -r-xr-xr-x
我这里谷歌搜不到,比如"inspect-only file","linux inspect-only",都没什么结果.
难道是我英文太烂没看到结果?
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: read-only 和 inspect-only 有什么区别?
根據所附的 manpage 英文敘述理解单纯根据您的经验判断?还是从哪里(如搜索引擎)得到的信息?
當然 誤解或不是徹底了解的機率 總是存在的