- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Create a new directory with sane security as anoth...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2004 06:33 PM
10-31-2004 06:33 PM
Chaim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2004 07:04 PM
10-31-2004 07:04 PM
Solution$ SET DEFAULT
$ OWN=f$FILE_ATTRIBUTES ("
$ PRO=f$FILE_ATTRIBUTES ("
$ CREATE/DIRECTORY/OWNER='OWN'/PROTECTION='PRO'
$ SET SECURITY/LIKE=
OWN and PRO can be found interactively by dir:
$ DIR/SEC
SET SECURITY is not required if old directory doesn't hold an ACL.
Willem
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2004 07:12 PM
10-31-2004 07:12 PM
Re: Create a new directory with sane security as another directory
This command will copy all the security attributes (ACL,owner and protection).
$ SET SECURITY/COPY_ATTRIBUTE=ALL/LIKE=old.dir new.dir
If you have ACEs which have the nopropagate
attribute, you must enter them by hand, because they are not copied.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2004 10:56 PM
10-31-2004 10:56 PM
Re: Create a new directory with sane security as another directory
a minor nit (that hits me as well all the time ;-)
The syntax is
$ SET SECURITY /LIKE=NAME=old new
cu,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 12:28 AM
11-01-2004 12:28 AM
Re: Create a new directory with sane security as another directory
maybe I will do even more 'nitting'.
$ SET SECURITY /LIKE=NAME=old new
Yes, that IS correct... at VMS V7.3 & up.
For older versions, use
$ SET SECURITY new /LIKE=OBJECT_NAME=old
( param new is not positional, may also appear at end of line)
I always thought it a very clumsy syntax, especially since /OBJECT_NAME was only unique at char #8, there is/was also a qualifier /OBJECT_TYPE
Cheers.
Have one on me.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 02:56 AM
11-01-2004 02:56 AM
Re: Create a new directory with sane security as another directory
$ set file /acl /like=
And on _really_ old systems we didn't have ACLs...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 07:06 AM
11-01-2004 07:06 AM
Re: Create a new directory with sane security as another directory
$ backup disk:[parent_dir]old.dir disk:[parent_dir]new.dir/by_owner=original
Where parent_dir is either 000000 or the directory above the directory to be replicated.