09-29-2010
My crystal ball is out of order, so I'll guess: your OS does support ACL's - access control lists - for files. If so, your system will probably have one of these commands: chacl or setfacl.
ACL's provide very fine-grained file access, for example on a per-user basis.
If not, get back to us with full system information please.
10 More Discussions You Might Find Interesting
1. OS X (Apple)
I'm a newbie to Unix and hoping that it will be my saviour when all else has failed.
My "keys out of order" on my g4 laptop and neither Disk Util nor Disk Warrior can fix it.
I'm experimenting in the unix command line (I figure I can't mess this laptop up anymore , and have figured out how... (3 Replies)
Discussion started by: mishostawn
3 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
How can i give permission for a specific user ( eg. admin ) ?
I tried with chmod admin+r prog.sh
which doesnt work.
Is there any way i can specify a user's name and give the permission?
Thanks in advance.
Saneesh Joseph. (1 Reply)
Discussion started by: saneeshjose
1 Replies
3. Shell Programming and Scripting
hi everyone.
iīve been burning my head for a week now with this problem and i couldnīt find a solution. iīve been looking for an answer in this forum but nothing either. so i decided to ask.
the thing is, i want to create a users with permission to kill just a group of users. i know how to write... (6 Replies)
Discussion started by: lucasmarin
6 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
I created testuser. by following command.
/usr/sbin/adduser -n test -d /disk05/collections/GET/testdata/
and then set its password by following command.
passwd testuser
When I login to system by testuser, it enters everything is ok.
The problem is how to set permission to this... (3 Replies)
Discussion started by: mr_bold
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
/etc/passwd file has write permission only for the root user.
Now when a normal user changes the its own password using passwd command, how this information has been written to the /etc/passwd file when the user is not having write permission to this file.
~santosh (2 Replies)
Discussion started by: santosh149
2 Replies
6. UNIX for Dummies Questions & Answers
hello,
I would like to grant full access to a directory which is owned by root and the web application that created it. I have though of adding the permission to the whole world, but for security reason I would like to grant it to one more user.
I have tried this 'chmod -U newUser+wrx... (2 Replies)
Discussion started by: run123
2 Replies
7. AIX
Guy's
we are in AIX 5.3
We have created two users user1 and user2 and they are under same group Staff Group
user1 will create file under /tmp/ and this is the permission of this file
-rw-r--r-- 1 user1 staff 1 Jun 13 09:47 file
user2 is under same group and when he... (14 Replies)
Discussion started by: ITHelper
14 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I'm newbie to unix.
There is a directory, say Testing/ under /home/user1.
I have created a user by the name check.
I was looking for a way to give the above user read & execute access only to this directory Testing/ while for other remaining files,directories,etc this user... (2 Replies)
Discussion started by: penqueen
2 Replies
9. Red Hat
Hi folks,
I am trying to grant the access like below items using the setfacl command, but i couldn't achieve as what I required. any other possibility.
username : testing
Readonly access in /form_dl/system/prd/logs
Write only access in /form_dl/system/prd/deploy
No access to other... (0 Replies)
Discussion started by: gsiva
0 Replies
10. Shell Programming and Scripting
Hi,
There are 2 users (T886072 & T864764) that need to be provided full (rwx) access to a directory. I made the changes to the directory permissions using chmod and setfacl :
root@digidb2:# chmod 700 /u02/ftpfiles/MFRS16/discount_rates/
root@digidb2:# setfacl -s... (3 Replies)
Discussion started by: anaigini45
3 Replies
LEARN ABOUT OPENSOLARIS
acltotext
acltotext(3SEC) File Access Control Library Functions acltotext(3SEC)
NAME
acltotext, aclfromtext - convert internal representation to or from external representation
SYNOPSIS
cc [ flag... ] file... -lsec [ library... ]
#include <sys/acl.h>
char *acltotext(aclent_t *aclbufp, int aclcnt);
aclent_t *aclfromtext(char *acltextp, int *aclcnt);
DESCRIPTION
The acltotext() function converts an internal ACL representation pointed to by aclbufp into an external ACL representation. The space for
the external text string is obtained using malloc(3C). The caller is responsible for freeing the space upon completion..
The aclfromtext() function converts an external ACL representation pointed to by acltextp into an internal ACL representation. The space
for the list of ACL entries is obtained using malloc(3C). The caller is responsible for freeing the space upon completion. The aclcnt argu-
ment indicates the number of ACL entries found.
An external ACL representation is defined as follows:
<acl_entry>[,<acl_entry>]...
Each <acl_entry> contains one ACL entry. The external representation of an ACL entry contains two or three colon-separated fields. The
first field contains the ACL entry tag type. The entry type keywords are defined as:
user This ACL entry with no UID specified in the ACL entry ID field specifies the access granted to the owner of the object.
Otherwise, this ACL entry specifies the access granted to a specific user-name or user-id number.
group This ACL entry with no GID specified in the ACL entry ID field specifies the access granted to the owning group of the
object. Otherwise, this ACL entry specifies the access granted to a specific group-name or group-id number.
other This ACL entry specifies the access granted to any user or group that does not match any other ACL entry.
mask This ACL entry specifies the maximum access granted to user or group entries.
default:user This ACL entry with no uid specified in the ACL entry ID field specifies the default access granted to the owner of the
object. Otherwise, this ACL entry specifies the default access granted to a specific user-name or user-ID number.
default:group This ACL entry with no gid specified in the ACL entry ID field specifies the default access granted to the owning group of
the object. Otherwise, this ACL entry specifies the default access granted to a specific group-name or group-ID number.
default:other This ACL entry specifies the default access for other entry.
default:mask This ACL entry specifies the default access for mask entry.
The second field contains the ACL entry ID, as follows:
uid This field specifies a user-name, or user-ID if there is no user-name associated with the user-ID number.
gid This field specifies a group-name, or group-ID if there is no group-name associated with the group-ID number.
empty This field is used by the user and group ACL entry types.
The third field contains the following symbolic discretionary access permissions:
r read permission
w write permission
x execute/search permission
- no access
RETURN VALUES
Upon successful completion, the acltotext() function returns a pointer to a text string. Otherwise, it returns NULL.
Upon successful completion, the aclfromtext() function returns a pointer to a list of ACL entries. Otherwise, it returns NULL.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO
acl(2), malloc(3C), attributes(5)
SunOS 5.11 10 Dec 2001 acltotext(3SEC)