10 More Discussions You Might Find Interesting
1. AIX
Hi.
My example:
I have a filesystem /log. Everyday, log files are copied to /log. I'd like to set owner and permission for files and directories in /log like that
chown -R log_adm /log/*
chmod -R 544 /log/*It's OK, but just at that time. When a new log file or new directory is created in /log,... (8 Replies)
Discussion started by: bobochacha29
8 Replies
2. AIX
Dears
it is normal that the below binaries stay without any owner and group
I have checked it in many servers and the like the below
/usr/lpp/bos.net/inst_root/etc/ipsec# ls -lrt
total 248
-r-xr-xr-x 1 987 987 13589 Jun 29 2005 default_group
-r-xr-xr-x ... (5 Replies)
Discussion started by: thecobra151
5 Replies
3. Solaris
i need to do the following operations in solaris 10:
1.change owner and group owner for files which are not owned by the current user and user group
2.to can delete files in the /tmp directory which are not of the current user
3. allow to a standard user the deletion of files in the /tmp... (1 Reply)
Discussion started by: sirmark
1 Replies
4. Shell Programming and Scripting
Hi,
Thanks for looking into this.
I am running into below situation in free BSD.
I have a file in /tmp/sample.txt with owner as 'xyz' and group as 'wheel'
I am moving it to my home dir/newsample.txt whihc has owner 'xyz', but group 'someother' with below command, getting warning, but it is... (2 Replies)
Discussion started by: ramanaraoeee
2 Replies
5. Solaris
Where to look owner's configuration files?
For example: -r-xr-xr-x 1 103 staff 2723 Jun 17 1999 user_init
I need to look owner 103 behavior. (3 Replies)
Discussion started by: wolfgang
3 Replies
6. Shell Programming and Scripting
i have written a script in which i have to go to a dir and search there for files belonging to owner pipe and then delete them
Can anyone tell me how to find files by owner pipe. below some of the files belonging to owner pipe
-rw------- 1 pipe pipe 163840 Mar 18 2008 ... (7 Replies)
Discussion started by: ali560045
7 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I have a problem, I need to find files in folder by owner, not using find command at all and ls -R parameter. Thanx a lot.
Best regarts (1 Reply)
Discussion started by: Boliakas
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I need a command to find a files under particular owner ?All the files in the system for the particular user id is the owner?
Please help me on this? (2 Replies)
Discussion started by: jayaramanit
2 Replies
9. UNIX for Dummies Questions & Answers
How to set the name of the group and the owner while creation of the file?
-rwxrwxr-x 1 root sys 1202 Dec 5 2002 abc.awk
like here i need to set the name of root and sys to xxx xxx
Any help is appreciated.
Thanks. (2 Replies)
Discussion started by: nehak
2 Replies
10. Solaris
Hi Folks,
I know that changing users and groups is pretty basic admin, but this one has got me stumped. When I try to change the group of a file for which I am the owner for, it still gives me a 'Not owner' error.
For example, when I am logged in as 'webadmin', I have the following file:
... (4 Replies)
Discussion started by: brizrobbo
4 Replies
getacl(1) General Commands Manual getacl(1)
NAME
getacl - list access control lists (ACLs) for files (JFS File Systems only)
SYNOPSIS
file...
DESCRIPTION
For each argument that is a regular file, special file, or named pipe, displays the owner, group, and the Access Control List (ACL). For
each directory argument, displays the owner, group, and the ACL and/or the default ACL. Only directories contain default ACLs.
With the option specified, the filename, owner, group, and the ACL of the file will be displayed. With the option specified, the filename,
owner, group, and the default ACL of the file, if it exists, will be displayed. With options not specified, the filename, owner, group,
and both the ACL, and the default ACL, if it exists, will be displayed.
This command may be executed on a file system that does not support ACLs. It will report the ACL consisting of only the owning user, own-
ing group, class and other entries, based on the permission bits.
When multiple files are specified on the command line, a blank line will separate the ACL for each file.
Options
The command recognizes the following options:
Displays the filename, owner, group, and the ACL of the specified file.
Displays the the filename, owner, group, and the default
ACL of the file, if it exists.
Operands
The command recognizes the following operand:
file The file or directory from which retrieves the access control information.
ACL Format
The format of an ACL is:
The first three lines show the filename, the file owner, and the file owning group. Note that when only the option is specified, and the
file has no default ACL, only these three lines will be displayed.
The entry without a user ID indicates the permissions that will be granted to the owner of the file. One or more additional entries indi-
cate the permissions that will be granted to the specified users. The entry without a group identifier indicates the permissions that will
be granted to the owning group of the file. One or more additional entries indicate the permissions that will be granted to the specified
groups. The entry indicates the permissions that will be granted to others.
The entries and may only exist for directories, and indicate the default user, group, and other entries that will be added to a file cre-
ated within the directory.
The uid is a login name, or a user ID if there is no entry for the uid in the system's password file; gid is a group name, or a group ID if
there is no entry for the gid in the system's group file; and perm is a three character string composed of the letters representing the
separate discretionary access rights: (read), (write), (execute/search), or the placeholder character The perm will be displayed in the
following order: If a permission is not granted by an ACL entry, the placeholder character will appear.
The ACL entries will be displayed in the order in which they will be evaluated when an access check is performed. The default ACL entries
that may exist on a directory have no effect on access checks.
The file owner permission bits represent the access that the owning user ACL entry has. The file group class permission bits represent the
most access that any additional user entry, additional group entry, or the owning group entry may grant. The file other permission bits
represent the access that the other ACL entry has. If a user invokes the command and changes the file group class permission bits, the
access granted by the additional ACL entries may be restricted.
In order to indicate that the file group class permission bits restrict an ACL entry, will display, after each affected entry, text in the
form , where perm will show only the permissions actually granted.
EXAMPLES
Given file with an ACL six entries long, the command
would print:
Given file with an ACL six entries long, after the command was issued, the command
would print:
Given directory with an ACL containing default entries, the command
would print:
Given directory the command
would print:
NOTICES
The output from will be in the correct format for input to the command. If the output from is redirected to a file, the file may be used
as input to In this way, a user may easily assign one file's ACL to another file.
FILES
for user IDs
for group IDs
SEE ALSO
chmod(1), ls(1), setacl(1). acl(2), aclsort(3C).
getacl(1)