<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.vmssoftware.com/index.php?action=history&amp;feed=atom&amp;title=SET_SECURITY</id>
	<title>SET SECURITY - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.vmssoftware.com/index.php?action=history&amp;feed=atom&amp;title=SET_SECURITY"/>
	<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=SET_SECURITY&amp;action=history"/>
	<updated>2026-05-02T15:48:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://wiki.vmssoftware.com/index.php?title=SET_SECURITY&amp;diff=1799&amp;oldid=prev</id>
		<title>Jane.doe: Created page with &quot;&#039;&#039;&#039;SET SECURITY&#039;&#039;&#039; is a DCL command that modifies the security profile of an object. =Syntax=  SET SECURITY  object-name ==Qualifiers== * /ACL...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=SET_SECURITY&amp;diff=1799&amp;oldid=prev"/>
		<updated>2019-12-03T13:43:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;SET SECURITY&amp;#039;&amp;#039;&amp;#039; is a &lt;a href=&quot;/DCL&quot; title=&quot;DCL&quot;&gt;DCL&lt;/a&gt; &lt;a href=&quot;/Command&quot; title=&quot;Command&quot;&gt;command&lt;/a&gt; that modifies the security profile of an &lt;a href=&quot;/Object_Class&quot; title=&quot;Object Class&quot;&gt;object&lt;/a&gt;. =Syntax=  SET SECURITY  object-name ==Qualifiers== * /ACL...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;SET SECURITY&amp;#039;&amp;#039;&amp;#039; is a [[DCL]] [[Command|command]] that modifies the security profile of an [[Object Class|object]].&lt;br /&gt;
=Syntax=&lt;br /&gt;
 SET SECURITY  object-name&lt;br /&gt;
==Qualifiers==&lt;br /&gt;
* /ACL allows you to modify the [[ACL|Access Control List]] for the object.&lt;br /&gt;
* /AFTER positions all ACEs specified with the /ACL qualifier after the ACE named with the /AFTER qualifier.&lt;br /&gt;
* [[File Selection Qualifiers#/BACKUP|/BACKUP]]&lt;br /&gt;
* [[File Selection Qualifiers#/BEFORE|/BEFORE]]&lt;br /&gt;
* [[File Selection Qualifiers#/BY_OWNER|/BY_OWNER]]&lt;br /&gt;
* /CONFIRM controls whether SET SECURITY prompts for verification before performing the operation. Valid responses are YES, NO, TRUE, and FALSE. Answers are not case sensitive and can be abbreviated to one letter. To stop processing the command at any point, type QUIT or press Ctrl/Z. To cancel the verification procedure but to proceed with the command, type ALL.&lt;br /&gt;
* /COPY_ATTRIBUTE specifies a subset of security elements to transfer from a source object to a target object. Valid keywords include the following:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;col&amp;quot; | Keyword&lt;br /&gt;
! colspan=&amp;quot;col&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| ALL (default)&lt;br /&gt;
| Copy all security elements&lt;br /&gt;
|-&lt;br /&gt;
| ACL&lt;br /&gt;
| Copy the access control list&lt;br /&gt;
|-&lt;br /&gt;
| OWNER&lt;br /&gt;
| Copy the owner&lt;br /&gt;
|-&lt;br /&gt;
| PROTECTION&lt;br /&gt;
| Copy the protection code&lt;br /&gt;
|}&lt;br /&gt;
Use the /COPY_ATTRIBUTE qualifier with the /LIKE qualifier. For example, you can create an ACL for an object and then copy its ACL to new objects.&lt;br /&gt;
* [[File Selection Qualifiers#/CREATED|/CREATED]]&lt;br /&gt;
* /DELETE deletes [[ACE|ACEs]] according to the following rules:&lt;br /&gt;
** The expression /ACL=aces/DELETE deletes the named ACEs.&lt;br /&gt;
** The expression /ACL/DELETE deletes all unprotected ACEs.&lt;br /&gt;
** The expression /ACL/DELETE=ALL deletes all ACEs including protected ACEs.&lt;br /&gt;
** The expression /ACL=aces/DELETE=ALL deletes the existing ACL (if any) and create a new ACL with the ACEs specifies on the /ACL qualifier.&lt;br /&gt;
* /DEFAULT regenerates the security profile of a file. The default qualifier changes the [[UIC Protection|protection code]], the [[ACL]], and the owner elements of a file to what it would be if the file had just been created. The profile is recreated according to the following rules:&lt;br /&gt;
** The protection code is propagated from the default protection ACE on the directory (if one exists), or else it is propagated from the process default.&lt;br /&gt;
** The ACL is propagated from the parent [[Directory|directory]] for those ACEs that have the default option.&lt;br /&gt;
** The owner is set to the owner of the parent [[Directory|directory]].&lt;br /&gt;
With subdirectory files, SET SECURITY assigns the owner, protection, and ACL elements of the parent directory.&lt;br /&gt;
SET SECURITY does not copy any ACE on the source object if the ACE holds the nopropagate attribute nor does it change any ACE on the target object if the ACE holds the protected attribute. To apply new elements to all versions of the file, specify ;* in the object name.&lt;br /&gt;
* /EDIT invokes the access control list editor (ACL editor) and allows you to modify an ACL interactively. The ACL editor does not allow the asterisk (*)  and the percent sign (%) wildcard characters in an object name. You must specify the object whose ACL you are editing.&lt;br /&gt;
* /EXCLUDE excludes the specified files from the SET SECURITY operation. You can include a [[Directory|directory]], but not a [[Device|device]], in the [[File specification|file specification]]. You cannot use [[File version#Relative version numbers|relative version numbers]] to exclude a specific [[File version|version]].&lt;br /&gt;
* [[File Selection Qualifiers#/EXPIRED|/EXPIRED]]&lt;br /&gt;
* /LIKE=(NAME=source-object-name [,CLASS=source-object-class]  [,PROFILE=TEMPLATE=template-name]) identifies the object from which SET SECURITY should copy security elements. The /LIKE qualifier replaces an object&amp;#039;s existing elements with those of the source object. Nopropagate ACEs are not transferred and protected ACEs on the target object are not deleted. Use the /COPY_ATTRIBUTE qualifier with the /LIKE qualifier to copy an object&amp;#039;s elements. The object class of the source object defaults to the class of the target object. When the /CLASS qualifier is omitted, the CLASS keyword defaults to FILE. The PROFILE keyword applies to security class objects. It identifies which template of the security class you want to copy and modify. See /PROFILE for more information.&lt;br /&gt;
* /LOG controls whether the SET SECURITY command displays the name of the object that has been modified by the command. The qualifier is invalid with the /EDIT qualifier.&lt;br /&gt;
* [[File Selection Qualifiers#/MODIFIED|/MODIFIED]]&lt;br /&gt;
* /OWNER modifies the owner element of an object. Specify the [[UIC|user identification code (UIC)]] or general [[Identifier|identifier]] in the standard format. Modifying the owner element of a file usually requires [[Privileges|privileges]]. Requires [[GRPPRV]] (group privilege) to set the owner to another member of the same group. Requires [[SYSPRV]] (system privilege) to set the owner to any user identification code (UIC) outside your group.&lt;br /&gt;
* /PROFILE identifies which template profile of a security class object you want to modify. All [[Object Class|object classes]] except FILE have at least one template profile. These template profiles define the basis of the profile of new objects. Use the DCL command [[SHOW SECURITY]]/CLASS=SECURITY_CLASS to display template names. When no value is given for template-name, SET SECURITY uses the template named DEFAULT. Include the /CLASS=SECURITY_CLASS qualifier to identify which profile you want to modify.&lt;br /&gt;
* /PROTECTION modifies the protection code of an object. The protection code defines the type of access allowed to users, based on their relationship to the object&amp;#039;s owner. Cannot be used to change the protection on a file by using DECnet software. Specify the ownership parameter as system (S),  owner (O), group (G),  or world (W). [[Object access type|Access types]] are class specific.&lt;br /&gt;
* /REPLACE eliminates entries listed with the /ACL qualifier and adds entries listed with the /REPLACE qualifier. SET SECURITY inserts the entries listed with /REPLACE in the position of the last deleted ACE.&lt;br /&gt;
* /SECRECY reserved for use by [[VSI]].&lt;br /&gt;
* [[File Selection Qualifiers#/SINCE|/SINCE]]&lt;br /&gt;
* /STYLE=keyword specifies the file name format for display purposes. The valid keywords for this qualifier are CONDENSED and EXPANDED. Descriptions are as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;col&amp;quot; | Keyword&lt;br /&gt;
! colspan=&amp;quot;col&amp;quot; | Explanation&lt;br /&gt;
|-&lt;br /&gt;
| CONDENSED (default)  &lt;br /&gt;
| Displays the file name representation of what is generated to fit into a 255-length character [[String|string]]. This file name may contain a [[DID]] or [[FID]] abbreviation in the [[File Specification|file specification]].&lt;br /&gt;
|-&lt;br /&gt;
| EXPANDED&lt;br /&gt;
| Displays the file name representation of what is stored on disk. This file name does not contain any [[DID]] or [[FID]] abbreviations.&lt;br /&gt;
|}&lt;br /&gt;
The keywords CONDENSED and EXPANDED are mutually exclusive. This qualifier specifies which file name format is displayed in the output message, along with the confirmation if requested. File errors are displayed with the CONDENSED file specification unless the EXPANDED keyword is specified.&lt;br /&gt;
* /SYMLINK=keyword specifies how symlinks are treated during wildcard searches. Descriptions are as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;col&amp;quot; | Keyword&lt;br /&gt;
! colspan=&amp;quot;col&amp;quot; | Explanation&lt;br /&gt;
|-&lt;br /&gt;
| WILDCARD&lt;br /&gt;
| Indicates that symlinks are enabled during wildcard searches.&lt;br /&gt;
|-&lt;br /&gt;
| NOWILDCARD&lt;br /&gt;
| Indicates that symlinks are disabled during directory wildcard searches.&lt;br /&gt;
|-&lt;br /&gt;
| ELLIPSIS&lt;br /&gt;
| Equivalent to WILDCARD (included for command symmetry).&lt;br /&gt;
|-&lt;br /&gt;
| NOELLIPSIS&lt;br /&gt;
| Indicates that symlinks are matched for all wildcard fields except for ellipsis.&lt;br /&gt;
|}&lt;br /&gt;
If the file named in the SET SECURITY command is a symlink, the command operates on the symlink itself.&lt;br /&gt;
=See also=&lt;br /&gt;
* {{Template:Sec}}&lt;br /&gt;
[[Category:DCL Commands]]&lt;br /&gt;
[[Category:Security]]&lt;/div&gt;</summary>
		<author><name>Jane.doe</name></author>
	</entry>
</feed>