09-03-2017
Did you check ACL's?
Edit: getfacl command does this.
Last edited by jim mcnamara; 09-04-2017 at 12:10 AM..
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies
2. AIX
--------------------------------------------------------------------------------
Hello, help me please.
I am trying to create a mksysb bakup using nim. I am geting this error, how to correct it ? :
Command : failed stdout: yes stderr: no... (9 Replies)
Discussion started by: astjen
9 Replies
3. AIX
I need help figuring out why I lose /usr/bin directory sometimes it goes down 3-4 times a day and I have to link them back using ln - /usr/bin bin I cannot figure out why this is happenning (23 Replies)
Discussion started by: smatherly
23 Replies
4. UNIX for Advanced & Expert Users
hi i have some perl scripts with shebang line as (#! /usr/bin/env perl ) instead of actual absolute path of perl ( i know why its that way ) everything works fine from command line , the problem is when i am trying to run those scripts from web ( local web tool ) it throws error as /usr/bin/env :... (6 Replies)
Discussion started by: zedex
6 Replies
5. Shell Programming and Scripting
Usually we use !/usr/bin/ksh at the start of the script.But if I am having this stuff in the scripts and calling one script from other its not working.What may be the reason behind it ?
xyz.ksh
#!/usr/bin/ksh
echo "Hi"
abc.ksh
#!/usr/bin/ksh
echo "I am fine"
ksh xyz.ksh
Its... (4 Replies)
Discussion started by: dr46014
4 Replies
6. OS X (Apple)
Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself.
But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies
7. UNIX and Linux Applications
I am installing lxml module for python on redhat
I have installed libxml2 already.
When I run for libxslt:
./configure --prefix=libxslt_folder --with-libxml-prefix=libxml2_folder
It is ok
the I run :
make
I have error:
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
I... (4 Replies)
Discussion started by: AIX_30
4 Replies
8. Shell Programming and Scripting
I have this scp script running,
/usr/bin/scp -r /cerner/mgr --exclude-from=/atg/move_exclude.dat 102.126.112.68:/cerner
but am getting an error:
--exclude-from=/atg/move_exclude.dat: No such file or directory
I am wondering if the syntax is incorrect...
I also have additional... (3 Replies)
Discussion started by: Daniel Gate
3 Replies
9. Shell Programming and Scripting
Hi.
In thread https://www.unix.com/shell-programming-and-scripting/265878-date-format-problem.html , Aia and I were discussing the usefulness of using #!/usr/bin/env bash (or ksh, or perl, or ...) as the shebang line. The exchange was good, but it was getting beyond the scope or the thread, so I... (4 Replies)
Discussion started by: drl
4 Replies
LEARN ABOUT FREEBSD
getfacl
GETFACL(1) BSD General Commands Manual GETFACL(1)
NAME
getfacl -- get ACL information
SYNOPSIS
getfacl [-dhinqv] [file ...]
DESCRIPTION
The getfacl utility writes discretionary access control information associated with the specified file(s) to standard output. If the
getconf(1) utility indicates that {_POSIX_ACL_EXTENDED} is not in effect for a file then the standard discretionary access permissions are
interpreted as an ACL containing only the required ACL entries.
The following option is available:
-d The operation applies to the default ACL of a directory instead of the access ACL. An error is generated if a default ACL cannot be
associated with file. This option is not valid for NFSv4 ACLs.
-h If the target of the operation is a symbolic link, return the ACL from the symbolic link itself rather than following the link.
-i For NFSv4 ACLs, append numerical ID at the end of each entry containing user or group name. Ignored for POSIX.1e ACLs.
-n Display user and group IDs numerically rather than converting to a user or group name. Ignored for POSIX.1e ACLs.
-q Do not write commented information about file name and ownership. This is useful when dealing with filenames with unprintable char-
acters.
-v For NFSv4 ACLs, display access mask and flags in a verbose form. Ignored for POSIX.1e ACLs.
The following operand is available:
file A pathname of a file whose ACL shall be retrieved. If file is not specified, or a file is specified as -, then getfacl reads a list
of pathnames, each terminated by one newline character, from the standard input.
For an explanation of the ACL syntax, see the setfacl(1) manual page.
EXIT STATUS
The getfacl utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
getfacl /
Retrieve ACL for the directory /.
getfacl -d /
Retrieve the default ACL for the directory /, if any.
SEE ALSO
setfacl(1), acl(3), getextattr(8), setextattr(8), acl(9), extattr(9)
STANDARDS
The getfacl utility is expected to be IEEE Std 1003.2c compliant.
HISTORY
Extended Attribute and Access Control List support was developed as part of the TrustedBSD Project and introduced in FreeBSD 5.0.
AUTHORS
Robert N M Watson
BSD
September 4, 2009 BSD