Sponsored Content
Full Discussion: Unix Questions
Homework and Emergencies Homework & Coursework Questions Unix Questions Post 302623011 by itkamaraj on Friday 13th of April 2012 03:11:12 AM
Old 04-13-2012
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I have a few questions about Unix..

Hi I have just a few questions about the Unix aka NIX operating system. 1. Is it a free Operating System and if so where can I obtain it. 2. Where can I start out for a newbies guide to the OS. Thanks (1 Reply)
Discussion started by: SolidWing68
1 Replies

2. UNIX for Dummies Questions & Answers

Some UNIX Questions!

1. Someone pings a server from another location and gets a different result than if you ping the same server onsite. What is going on? 2. You know the reason the server won't boot is because of ODS, but the root partition isn't on ODS. How do you go about fixing it? 3. How would you truncate... (1 Reply)
Discussion started by: JoeTheMan
1 Replies

3. UNIX for Dummies Questions & Answers

unix mail questions

Hi All, Im trying to send a .ZIP file in an email message using mail or mailx. What is the easiest way to do this? Thanks! UPDATE: I used the following command which didnt work mailx -s {my subject} {xxxxx@ssss.com} < /var/tmp/file.zip (3 Replies)
Discussion started by: lewisoco
3 Replies

4. UNIX for Dummies Questions & Answers

New To Unix - Some Questions!

1) Can a script be made to ignore all signals. 2) Does the parent process always picks up the exit status of its children. 3) Can one program give rise to multiple processes. 4) Is a file is synonymous with a process. 5) Is the kill command only used to kill a running process. (1 Reply)
Discussion started by: yahoo14
1 Replies

5. What is on Your Mind?

Questions about Unix/Linux

Hello all. Im a young lad with very limited experience with computers, even though I have been playing with them the past 5 years. I have the experience of the random World of Warcraft player that plays games all day. I have a huge interest in learning everything about computers and I was... (5 Replies)
Discussion started by: Vallzi
5 Replies

6. UNIX for Dummies Questions & Answers

2 Unix questions

If I wanted to do the following things to all the files in a directory how could I do it. Make all the files in a directory and in its sub directories to hidden status and make a different directory and all its sub directories copy inhibit. I am really stumped and have been looking through the... (8 Replies)
Discussion started by: kaka
8 Replies

7. SCO

some questions about UNIX 5.0.6 , Help me please

Dear friends I'm really new comer to this place and to this subject you will make me so happy if you help me about these questions: 1- I must install UNIX 5.0.6 because one of my work software will works ONLY on this version , so , I want to know WHERE CAN I DOWNLOAD A COMPELETE PACKAGE OF... (2 Replies)
Discussion started by: mrr53
2 Replies

8. UNIX for Dummies Questions & Answers

unix questions

Hi I got asked over the phone for interview can anyone answer the following #1 What is the command to copy files from 1 Unix machine to another Unix machine, providing that the 2 machines are in the same network. I think its cp, what is the one machine to another machine thing #2... (4 Replies)
Discussion started by: ccp
4 Replies

9. Shell Programming and Scripting

unix questions

Hello, Hello, Can any one tell me the answer of these questions attached in the document. The competition was over and I wanted to know correct answers. (6 Replies)
Discussion started by: bits1904
6 Replies
ARCHIVE_ENTRY_ACL(3)					   BSD Library Functions Manual 				      ARCHIVE_ENTRY_ACL(3)

NAME
archive_entry_acl_add_entry, archive_entry_acl_add_entry_w, archive_entry_acl_clear, archive_entry_acl_count, archive_entry_acl_next, archive_entry_acl_next_w, archive_entry_acl_reset, archive_entry_acl_text_w -- functions for manipulating Access Control Lists in archive entry descriptions LIBRARY
Streaming Archive Library (libarchive, -larchive) SYNOPSIS
#include <archive_entry.h> void archive_entry_acl_add_entry(struct archive_entry *a, int type, int permset, int tag, int qualifier, const char *name); void archive_entry_acl_add_entry_w(struct archive_entry *a, int type, int permset, int tag, int qualifier, const wchar_t *name); void archive_entry_acl_clear(struct archive_entry *a); int archive_entry_acl_count(struct archive_entry *a, int type); int archive_entry_acl_next(struct archive_entry *a, int type, int *ret_type, int *ret_permset, int *ret_tag, int *ret_qual, const char **ret_name); int archive_entry_acl_next_w(struct archive_entry *a, int type, int *ret_type, int *ret_permset, int *ret_tag, int *ret_qual, const wchar_t **ret_name); int archive_entry_acl_reset(struct archive_entry *a, int type); const wchar_t * archive_entry_acl_text_w(struct archive_entry *a, int flags); DESCRIPTION
An ``Access Control List'' is a generalisation of the classic Unix permission system. The ACL interface of libarchive is derived from the POSIX.1e draft, but restricted to simplify dealing with practical implementations in various Operating Systems and archive formats. An ACL consists of a number of independent entries. Each entry specifies the permission set as bitmask of basic permissions. Valid permis- sions are: ARCHIVE_ENTRY_ACL_EXECUTE ARCHIVE_ENTRY_ACL_WRITE ARCHIVE_ENTRY_ACL_READ The permissions correspond to the normal Unix permissions. The tag specifies the principal to which the permission applies. Valid values are: ARCHIVE_ENTRY_ACL_USER The user specified by the name field. ARCHIVE_ENTRY_ACL_USER_OBJ The owner of the file. ARCHIVE_ENTRY_ACL_GROUP The group specied by the name field. ARCHIVE_ENTRY_ACL_GROUP_OBJ The group who owns the file. ARCHIVE_ENTRY_ACL_MASK The maximum permissions to be obtained via group permissions. ARCHIVE_ENTRY_ACL_OTHER Any principal who doesn't have a user or group entry. The principals ARCHIVE_ENTRY_ACL_USER_OBJ, ARCHIVE_ENTRY_ACL_GROUP_OBJ and ARCHIVE_ENTRY_ACL_OTHER are equivalent to user, group and other in the classic Unix permission model and specify non-extended ACL entries. All files have an access ACL (ARCHIVE_ENTRY_ACL_TYPE_ACCESS). This specifies the permissions required for access to the file itself. Direc- tories have an additional ACL (ARCHIVE_ENTRY_ACL_TYPE_DEFAULT), which controls the initial access ACL for newly created directory entries. archive_entry_acl_add_entry() and archive_entry_acl_add_entry_w() add a single ACL entry. For the access ACL and non-extended principals, the classic Unix permissions are updated. archive_entry_acl_clear() removes all ACL entries and resets the enumeration pointer. archive_entry_acl_count() counts the ACL entries that have the given type mask. type can be the bitwise-or of ARCHIVE_ENTRY_ACL_TYPE_ACCESS and ARCHIVE_ENTRY_ACL_TYPE_DEFAULT. If ARCHIVE_ENTRY_ACL_TYPE_ACCESS is included and at least one extended ACL entry is found, the three non-extened ACLs are added. archive_entry_acl_next() and archive_entry_acl_next_w() return the next entry of the ACL list. This functions may only be called after archive_entry_acl_reset() has indicated the presence of extended ACL entries. archive_entry_acl_reset() prepare reading the list of ACL entries with archive_entry_acl_next() or archive_entry_acl_next_w(). The function returns either 0, if no non-extended ACLs are found. In this case, the access permissions should be obtained by archive_entry_mode(3) or set using chmod(2). Otherwise, the function returns the same value as archive_entry_acl_count(). archive_entry_acl_text_w() converts the ACL entries for the given type mask into a wide string. In addition to the normal type flags, ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID and ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT can be specified to further customize the result. The returned long string is valid until the next call to archive_entry_acl_clear(), archive_entry_acl_add_entry(), archive_entry_acl_add_entry_w() or archive_entry_acl_text_w(). RETURN VALUES
archive_entry_acl_count() and archive_entry_acl_reset() returns the number of ACL entries that match the given type mask. If the type mask includes ARCHIVE_ENTRY_ACL_TYPE_ACCESS and at least one extended ACL entry exists, the three classic Unix permissions are counted. archive_entry_acl_next() and archive_entry_acl_next_w() return ARCHIVE_OK on success, ARCHIVE_EOF if no more ACL entries exist and ARCHIVE_WARN if archive_entry_acl_reset() has not been called first. archive_entry_text_w() returns a wide string representation of the ACL entrise matching the given type mask. The returned long string is valid until the next call to archive_entry_acl_clear(), archive_entry_acl_add_entry(), archive_entry_acl_add_entry_w() or archive_entry_acl_text_w(). SEE ALSO
archive(3), archive_entry(3) BUGS
ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID and ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT are not documented. BSD
February 2, 2012 BSD
All times are GMT -4. The time now is 02:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy