11-10-2018
I would suggest using extra switch while using tar --xattrs
Perhaps even add the selinux and ACL options as well to avoid additional problems.
Regards
Peasant.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
help please
i have "inherited" a Sco Server (the administrator departed in a hurry...yes we are chasing him..) and haven't used Unix for 8 years.
i have a file that i need to retrieve from a tape.
i have been able to find the file on tape using the cpio -ivt command.
however...
the problem I... (3 Replies)
Discussion started by: mfischer
3 Replies
2. UNIX for Dummies Questions & Answers
Can anyone please help...?
Managed to do a ufsdump of files to tape. Having trouble using ufsrestore to pull a single file back by filename??
I have dumped a single file to tape also because looking through the other threads, I noticed that you have to tell it to skip files before you get to... (1 Reply)
Discussion started by: Jonathan
1 Replies
3. Solaris
Is it possible to restore a TAR'ed file off of a tape to a location other than the original location? If so, how?
(The MAN pages give examples of how to restore only to the originating location.)
Thanks!! (1 Reply)
Discussion started by: FredSmith
1 Replies
4. Shell Programming and Scripting
I'm new to Unix and have just wrote a little program to move files to a recycle bin (a Directory i created) and restore them. The problem is that i need to keep track of all the full filenames so that i can restore them to the right place. I did this by creating a file called delreg and putting the... (4 Replies)
Discussion started by: zoolz
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Can any one tell me how to restore back the deleted file in unix?
I know the file name.
If i know the inode number of the file does help more to restore back the file? (1 Reply)
Discussion started by: siba.s.nayak
1 Replies
6. Shell Programming and Scripting
Hello everyone,
I am new to unix shell.
I have a file called Path.txt....and i have data in that as
1 abhi
2 avi
3 ash so on.....
1 ,2 ,3 is the... (2 Replies)
Discussion started by: AbhijitIT
2 Replies
7. Solaris
Hello I use Solaris 10. I need to restore the root file system, but I don't know how . i can only boot the server in safe mode or with the cd (ok boot cdrom -s)
Do you guys know a good procedure, I don't want to break the mirrors.
( the server is not a cluster).
Its an emergency, i would... (4 Replies)
Discussion started by: feg
4 Replies
8. Red Hat
Post deleted. (0 Replies)
Discussion started by: Nobody_knows_me
0 Replies
9. Shell Programming and Scripting
Hello everyone,
I am attempting to make a recycling bin type application in shell script (tcsh). I have the whole part of the application done where someone can recycle files from one location to the recycling bin (the lower half of the program), this is not a problem. However I wanted to make... (7 Replies)
Discussion started by: tastybrownies
7 Replies
10. UNIX for Dummies Questions & Answers
Is there a way I could recover a deleted text file with "rm -rf" command.
Running CentOS 6.5.
Thank you. (5 Replies)
Discussion started by: galford
5 Replies
LEARN ABOUT OPENSOLARIS
acl_trivial
acl_trivial(3SEC) File Access Control Library Functions acl_trivial(3SEC)
NAME
acl_trivial - determine whether a file has a trivial ACL
SYNOPSIS
cc [ flag... ] file... -lsec [ library... ]
#include <sys/acl.h>
int acl_trivial(char *path);
DESCRIPTION
The acl_trivial() function is used to determine whether a file has a trivial ACL. Whether an ACL is trivial depends on the type of the ACL.
A POSIX draft ACL is trivial if it has greater than MIN_ACL_ENTRIES. An NFSv4/ZFS-style ACL is trivial if it either has entries other than
owner@, group@, and everyone@, has inheritance flags set, or is not ordered in a manner that meets POSIX access control requirements.
RETURN VALUES
Upon successful completion, acl_trivial() returns 0 if the file's ACL is trivial and 1 if the file's ACL is not trivial. If it could not be
determined whether a file's ACL is trivial, -1 is returned and errno is set to indicate the error.
ERRORS
The acl_trivial() function will fail if:
EACCES A file's ACL could not be read.
ENOENT A component of path does not name an existing file or path is an empty string.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
acl(5), attributes(5)
SunOS 5.11 6 Oct 2005 acl_trivial(3SEC)