Sponsored Content
Full Discussion: Export/import ZFS ACL's
Operating Systems Solaris Export/import ZFS ACL's Post 302283808 by vimes on Wednesday 4th of February 2009 05:14:31 AM
Old 02-04-2009
Export/import ZFS ACL's

I've been wondering about this one, is there any way to do the following with ZFS ACL's (i.e. "copy" the ACL over to another file)?

getfacl /bla/dir1 | setfacl -f - /bla/dir2

I know about inheritence on dirs, it doesn't work in this scenario I'm working on. Just looking to copy the ACL's.

Any one know how to do this?
 

10 More Discussions You Might Find Interesting

1. Solaris

unable to import zfs pool

# zpool import pool: emcpool1 id: 5596268873059055768 state: UNAVAIL status: One or more devices are missing from the system. action: The pool cannot be imported. Attach the missing devices and try again. see: Sun Message ID: ZFS-8000-3C config: emcpool1 ... (7 Replies)
Discussion started by: fugitive
7 Replies

2. Solaris

Solaris 10 ZFS ACL help

All, Does anyone know of a simple way to traverse a file system and collect all ACL's (or ACE's as they are called now)? We use to be able to use getfacl fairly easily for this task but now we are forced to use -v or -V with the 'ls' command to get the extended permissions for a... (1 Reply)
Discussion started by: Shoeless_Mike
1 Replies

3. Solaris

ZFS Root Import Access

I have a PC running Solaris 10. My Sun V60x (Intel) recently broke and I took out one of the (mirrored root) drives and connected them to the PC and tried to access it. I imported it but can only access a "data" directory and nothing of the Solaris filesystem. It only has one partition: ... (4 Replies)
Discussion started by: pettefar
4 Replies

4. Shell Programming and Scripting

export / import

I have a calling script which consists of calls to other scripts via the sh command. ie vi callscript.sh sh smallscript1.sh extra unix commands sh smallscript2.sh exit In smallscript1, I prompt for a filename, which I handle via :- read f1 export f1 I then need... (5 Replies)
Discussion started by: malts18
5 Replies

5. UNIX for Dummies Questions & Answers

Import and export PGP/GnuPG keys

Hi, I need to export an existing PGP key and import it into GnuPG on a different machine. This is how I did the export: pgp -kx myuser _myuser_public pgp -kx myuser _myuser_private secring.skr (this is from the pgp installation directory that contains secring.skr). This produced two... (0 Replies)
Discussion started by: imchi
0 Replies

6. Solaris

Full zfs - cannot import

I installed Solaris 11 Express on my machine and created a raidz2 filesystem over 5 harddrives. Thas was a few months ago. Unfortunately, yesterday I made a mistake in free space calculation and tried to copy more data to the fs than how much space there was. When the fs got full, the... (5 Replies)
Discussion started by: RychnD
5 Replies

7. Solaris

Solaris10 acl and zfs samba

I have share with samba a directory called /var/pubblica i set write permission correctly on smb.conf and zfs acl \chmod A+group:"domain... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

8. Solaris

Zpool import/export error

A backup/clone script of ours was recently ran. It normally only clones the rpool and renames in rpoolA. Something must've changed as it found another one of our pools that it shouldn't have. It exported that pool unbeknownst to us. Later on when a coworker realized the other pool was missing he... (2 Replies)
Discussion started by: beantownmp
2 Replies

9. Homework & Coursework Questions

DB2 Export and Import Oracle

Hi Guys, I Just wanted your opinion/ suggestion/ Help on my unix script about db2 export data with deli file and import into oracle. db2 connect to Tablename user id using psswrd db2 "EXPORT TO '/cardpro/brac/v5/dev/dat/AAAAA.DEL' OF DEL select * FROM AAAAA" db2 "EXPORT TO... (3 Replies)
Discussion started by: Sonny_103024
3 Replies

10. Homework & Coursework Questions

DB2 Export and Import Oracle

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: is this enough to make the data perfect export into delimited file? there are some posted that i read, they... (9 Replies)
Discussion started by: Sonny_103024
9 Replies
acl_copy_entry(3)					     Library Functions Manual						 acl_copy_entry(3)

NAME
acl_copy_entry - Copies an ACL entry LIBRARY
Security Library (libpacl.a) SYNOPSIS
#include <sys/acl.h> int acl_copy_entry( acl_entry_t src_d, acl_entry_t dest_d); PARAMETERS
Specifies the working storage internal representation ACL entry to copy. Specifies the location to copy the working storage internal rep- resentation ACL entry to. DESCRIPTION
NOTE: This function is based on Draft 13 of the POSIX P1003.6 standard. The acl_copy_entry() function copies the contents of the individual ACL entry indicated by the src_d parameter to the individual ACL entry indicated by the dest_d parameter. Any ACL descriptor referring to the ACL entries in either parameter will still refer to the same ACL entries. This function overwrites the contents of the ACL entry indicated by the dest_d parameter. RETURN VALUES
Upon successful completion, the acl_copy_entry() function returns a value of 0 (zero). Otherwise, a value of -1 is returned, and errno is set to indicate the error. ERRORS
If the following condition occurs, the acl_copy_entry() function sets errno to the corresponding value: The src_d parameter or the dest_d parameter does not refer to a valid ACL entry. RELATED INFORMATION
acl_create_entry(3), acl_get_entry(3) Security delim off acl_copy_entry(3)
All times are GMT -4. The time now is 06:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy