您可以将它放到一个脚本中,然后更改其权限,以使得所有的用户都可以执行它,以便系统中其他的用户也可以使用它,如清单3所示。
You can put this in a script and then change the permissions to make it executable by all users, so that others on the system can use it, too, as in Listing 3.
清单3展示了一个如何定义权限的例子。
最后,清单5提供了NFS数据包内容,包括权限(文件模式)、文件大小、拥有者和其他信息。
Finally, Listing 5 provides the content of the NFS packet, including the permissions (file mode), file size, ownership and other information.
清单6显示了在这个例子中分配给work表的权限。
Listing 6 shows the permissions to grant to the WORK table in the example.
清单1所示的是用于定义某些基于角色的方法权限的示例代码。
Listing 1 shows an example of code defining some role-based method permissions.
清单3显示了最丰富的示例,该示例用于面向权限的构造函数;其他方法也是类似的甚至更简单。
Listing 3 shows the richest example, which is for the permission-oriented constructor; the other methods are similar but even simpler.
调查清单的最前面是一些提问,其次是权限和一些信息。
Top of the list came questions, followed by permissions and information giving. It seems these dogs are regular little Lassies.
清单7显示了如何删除两个shell脚本上的其他用户的所有权限。
Listing 7 shows how to remove all permissions for other users on the two shell scripts.
清单14展示了如何利用权限调用authorize方法,以写入内容。
Listing 14 shows how to invoke the authorize method with permissions to write content.
回想一下清单8中登录菜单项是如何利用权限调用authorize方法的。
Recall from Listing 8 how the login menu item invokes the authorize method with permissions.
清单6显示了如何添加用户和组写和执行权限到shell脚本的其他副本。
Listing 6 shows how to add user and group write and execute permissions to another copy of the shell script.
给定ls- l(文件长清单)的输出,您将从中提取权限信息、大小和名称。
Given the output of ls -l (the long listing of files), you'll pull out the permission information, size, and name.
在清单16中,您将更改ls- l的输出以显示文件名、权限和大小。
In Listing 16, you'll change the ls -l output to show the filename, permissions, and size.
清单7显示了用于配置SimpleSessionBean的方法权限的EJB应用程序部署描述符的片段。
Listing 7 shows fragments of the EJB application deployment descriptor used to configure the method permissions for SimpleSessionBean.
清单6.设置INTERNET权限。
清单4 . flitter _ perm定义模块中的可用权限。
Listing 4. flitter_perm defines permissions available in module.
清单4定义flitter _ perm,它列举模块授予的权限。
Listing 4 defines flitter_perm , which enumerates the permissions honored by the module.
处理外部存储器需要特殊的权限 WRITE_EXTERNAL_STORAGE,它通过 AndroidManifest.xml请求得到(参见清单28)。
Working with external storage requires a special permission, WRITE_EXTERNAL_STORAGE, to be requested through the AndroidManifest.xml (see Listing 28).
清单7 中的片段来自mockACLDao,显示ACL中组到PermissionSet 关联的创建,该关联用于确定可用于 ACLHolder上的组的权限。
The snippet in Listing 7, from our mock ACLDao, shows the creation of a Group to PermissionSet association in an ACL, which determines the permissions available to a group on the ACLHolder.
PermissionSetImpl(清单9)是PermissionSet接口的实现,支持从AllPermissionsenum构造一组二进制权限。
PermissionSetImpl (Listing 9) is an implementation of the PermissionSet interface that enables the construction of a set of binary permissions from the AllPermissions enum.
要显示或操纵分区表,您需要是root用户,或者通过sudo命令获得root权限,如本清单所示。
You will need to be root or have root authority via sudo, as shown here, to display or manipulate the partition table.
不过,如果您对目标文件有合适的权限,可以对它进行写操作,如清单10所示。
However, attempts to write it will work if you have the appropriate permission on the target file, as shown in Listing 10.
虽然ls命令不显示八进制权限,您可以使用find命令进行显示,如清单12清单12所示。
While the ls command does not display the octal permissions, you can display them using the find command as shown in Listing 12.
安装二进制文件、init脚本、示例配置文件并设置外部命令目录上的权限,如清单6所示。
Install binaries, init script, sample config files, and set permissions on the external command directory, as shown in Listing 6.
下一步,如清单11所示,创建一个策略,不赋给db 2实例用户db2ins95和根用户结束进程的权限。
Next, as shown in Listing 11, create a policy that does not give db2 instance user db2ins95 and root user permission to kill the process.
与清单1中的程序一样,您可以将这段代码从屏幕搜集到一个文件,并将其保存为calc . tcl,使用chmod将其权限修改为可执行,然后运行该程序。
Just as with the program in Listing 1, you can screen-scrape this code into a file, save it as calc.tcl, chmod it as executable, and then run it.
如果可能,我仍然建议向清单添加权限文件。
If possible, I still recommend adding the permission to the manifest file.
将实作自订使用权限的组件加入全域组件快取和完全受信任的组件清单中。
Add the assembly implementing the custom permission to the global assembly cache and to the list of fully trusted assemblies.
在组织内部,网站系统管理员通常可以从组织使用者清单中选取使用者,然后根据他们在专案中的角色和需求来授与存取权限。
Inside an organization, site administrators can typically select users from the list of the organization's users and grant them access based on their roles and needs within a project.
当选中此复选框时,安全权限请求会添加到应用程序的部署清单中。
When this check box is selected, security permission requests are added to the deployment manifest for your application.
应用推荐