The plus sign is an indication of ACL (access control list) which is an extension to the normal POSIX permissions system which increases security by allowing the system more fine-tuning to a access for a file/folder in system. The ACL's can be implemented using setfacl command, we will see about ACL in our coming posts. Please tune in for more stuff on this Permissions.
So it may not be giving you permissions to check contents. Please check your script for other paths it should work fine.
Hi,
For my bash script, terminal with bash is generate an OK output and program works right.
already,
terminal with ash have "line 48: syntax error: Bad substitution" output and program don't work.
:confused: (0 Replies)
Hi All,
I need to pass a variable to perl script from bash script, where in perl i am using if condition. Here is the cmd what i am using in perl
FROM_DATE="06/05/2008"
TO_DATE="07/05/2008"
"perl -ne ' print if ( $_ >="$FROM_DATE" && $_ <= "$TO_DATE" ) ' filename"
filename has... (10 Replies)
hi,
i have a script that runs on bash and would like to run it on a machine that has csh and bash. the default setting on that machine is csh. i dont want to change my code to run it with a csh shell. is there any way i can run the script (written in bash) on this machine? in other words is there... (3 Replies)
Hey guys, i'm having trouble complete one of my bash scripts
I'm hoping to ---
1. Modify bash so that then the user types "ls" the command that is executed is "ls -al"
2. Modify the point of entry in bash when the user accesses it, moving the initial location to /var
I've somewhat done #2,... (9 Replies)
Hi everybody,
Lets say, I have two bash scripts named down.sh and up.sh located in two different folders named ~/home/a/ and ~/home/b/
Now I want to write another bash script, located in ~/home/ which runs these other two scripts, so that I only have to execute this one comprehensive script... (1 Reply)
# check host value regex='^(||1|2|25)(\.(||1|2|25)){3}$' if ')" != "" ]; then if ]; then echo host $host not found exit 4 fi elif ]; then echo $host is an invalid host address exit 5 fi
espeacailly the top regex part?
---------- Post updated at 06:58 PM ---------- Previous update was... (1 Reply)
I want to give my long scripts to customer. The customer must not be able to read the scripts even if he has the password. The following command locks and unlocks the script but the set +x is simply ignored.
The code:
read -p 'Script: ' S && C=$S.crypt H='eval "$((dd if=$0 bs=1 skip=//|gpg... (7 Replies)
So I'm trying to pass certain json elements as env vars and use them later on in a script.
Sample json:
JSON='{
"Element1": "file-123456",
"Element2": "Name, of, company written in, a very weird way",
"Element3": "path/to/some/file.txt",
}'
(part of the) script:
for s... (5 Replies)
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ?
--- Post updated at 08:39 AM ---
in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Discussion started by: i4ismail
3 Replies
LEARN ABOUT HPUX
acl
acl(2) System Calls Manual acl(2)NAME
acl() - set a file's Access Control List (ACL) information (JFS File Systems only)
SYNOPSIS DESCRIPTION
The system call is used to manipulate ACLs on JFS file system objects.
pathp points to a path name naming a file.
nentries specifies how many ACL entries are pointed to by aclbufp.
aclbufp is a pointer to the first element of an array of This type is defined in as follows:
The values for are:
Permissions for the owner of the object.
Permissions for additional users.
Permissions for members of the owning group of the object.
Permissions for members of additional groups.
Maximum permissions granted to the file group class.
Permissions for other users.
Default permissions for the object owner.
Default permissions for additional users.
Default permissions for members of the owning group of the object.
Default permissions for members of additional groups
Default maximum permissions granted to the file group class.
Default permissions for other users.
cmd The following values for cmd are available:
nentries ACL entries, specified in buffer aclbufp, are stored in the file's ACL. Any existing ACL on the file is replaced by
the new ACL. All directories in the path name must be searchable.
Buffer aclbufp is filled with the file's ACL entries. Discretionary read access to the file is not required, but all directo-
ries in the path name must be searchable.
The number of entries in the file's ACL is returned. Discretionary
read access to the file is not required, but all directories in the path name must be searchable.
For command the call will succeed if and only if all of the following are true:
There is exactly one entry each of type and
If pathp points to a directory, there is at most one entry each of type and
Entries of type or do not contain duplicate entries. A duplicate entry is one of the same type containing the same numeric ID.
If the ACL contains no entries of type and no entries of type then the entries of type and have the same permissions.
If the ACL contains no entries of type and no entries of type and an entry of type is specified, then an entry of type is also spec-
ified and the two entries have the same permissions.
Security Restrictions
The value for cmd can only be executed by a process that has an effective user ID equal to the owner of the file, or by the superuser, or
by a user with the privilege.
See privileges(5) for more information about privileged access on systems that support fine-grained privileges.
RETURN VALUE
returns the following values:
n Successful completion. Returns the number of ACL entries for cmd and
Successful completion.
Returns for cmd
Failure.
is set to indicate the error.
ERRORS
If fails, the ACL is unchanged, and is set to one of the following values:
The caller does not have access to a component of the path name.
cmd is not or
cmd is and nentries is less than the number of mandatory ACL entries(4).
cmd is and the ACL specified in aclbufp is not valid [see above discussion, and aclsort(3C)].
A disk I/O error has occurred while storing or retrieving the ACL.
cmd is and the effective user ID of the caller does not match the owner of the file, and the caller is not the superuser or a
user with privilege.
A component of the path does not exist.
cmd is and nentries is less than the number of entries in the file's ACL.
cmd is and there is insufficient space to store the ACL.
cmd is and nentries is greater than which is defined in
A component of the path specified by
pathp is not a directory.
cmd is and an attempt is made to set a default ACL on a file type other than a directory.
cmd is the file specified by pathp resides on a local non-JFS file system, and additional entries were specified in the ACL.
cmd is the file specified by pathp resides on a non-local file system, and additional entries were specified in the ACL.
cmd is and the file specified by pathp resides on a file system that is mounted read-only.
aclbufp points to an illegal address.
SEE ALSO aclsort(3), getacl(1), setacl(1), privileges(5).
acl(2)