I was wondering if users can be restricted from invoking sqlplus in unix from certain directories. In other words certain users should be able to invoke sqlplus only through certain directories (1 Reply)
Hello Everyone,
if we log on to unix server how do we find that what permissions/roles and priveleges are assigned to any particular user.
Here i am not talking about the file permissions.
Thanks (1 Reply)
Is there a way to set the size of the home directory for every single user in a specific group, in more details:
I have a group & i will have to add about 20 users to it to be their home directories. i want each of the home directories for this group to be limited to 50 MB
Help? (11 Replies)
Hi,
A simple and silly question on Unix.
I have a directory named "a" and I would like to grant permission to group name "text" to access, read and execute my directory.
Could anyone help me?
Thanks. (2 Replies)
here's the case :
almost of php/html file on my site has added the text :
<iframe src="http://google-analyze.cn/count.php?o=1" width=0 height=0 style="hidden" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe>I don't know how this happen, so i want to remove above text from all... (16 Replies)
I am trying to get a summary of filetypes in a directory, but the total count of symbolic links is not working. I am stuck at the results of the file command. I have used the find command to confirm my expectations, but my bash function is not giving the results I want.
Here is my function:... (2 Replies)
Hello, i would like to find huge files and group them by owners.
To find big files i use this command:
ls -lR | sort -bnr +4 | head -n 75
which give me 75 biggest files, then i need to see in which subdirectory is every file.
second thing i dont know is how to group those files by owner, could... (6 Replies)
Hi!
I created a group HACKERS and made the user "demo" its member.
$ id demo
uid=500(demo) gid=500(demo) groups=500(demo),502(HACKERS)
$
Next, I granted read and execute permissions to the group "HACKERS" on /var/log/httpd as shown below:
setfacl -m "g:HACKERS:r-x"... (2 Replies)
Hi experts,
I want to group by average, for multiple columns starting column $7 until NF,
group by ($1-$5), please help
For just 7th column, I can do
awk '
NR>1{
arr += $7
count += 1
}
END{
for (a in arr) {
print a, arr/count
... (10 Replies)
I am part of the group group1. The directory permission I am trying to cd into are 770 for both the parent directory and child directory but I still can not cd into. What am I doing wrong?
$ ls -l /NAS/infa/
drwxrwxr-x. 22 user1 group1 506 Jun 6 17:05 infa_shared
$... (5 Replies)
Discussion started by: cokedude
5 Replies
LEARN ABOUT CENTOS
acl_valid
ACL_VALID(3) BSD Library Functions Manual ACL_VALID(3)NAME
acl_valid -- validate an ACL
LIBRARY
Linux Access Control Lists library (libacl, -lacl).
SYNOPSIS
#include <sys/types.h>
#include <sys/acl.h>
int
acl_valid(acl_t acl);
DESCRIPTION
The acl_valid() function checks the ACL referred to by the argument acl for validity.
The three required entries ACL_USER_OBJ, ACL_GROUP_OBJ, and ACL_OTHER must exist exactly once in the ACL. If the ACL contains any ACL_USER or
ACL_GROUP entries, then an ACL_MASK entry is also required. The ACL may contain at most one ACL_MASK entry.
The user identifiers must be unique among all entries of type ACL_USER. The group identifiers must be unique among all entries of type
ACL_GROUP.
RETURN VALUE
The acl_valid() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indi-
cate the error.
ERRORS
If any of the following conditions occur, the acl_valid() function returns -1 and sets errno to the corresponding value:
[EINVAL] The argument acl is not a valid pointer to an ACL.
The argument acl does not point to a valid ACL.
One or more of the required ACL entries is not present in acl.
The ACL contains entries that are not unique.
STANDARDS
IEEE Std 1003.1e draft 17 ("POSIX.1e", abandoned)
SEE ALSO acl_check(3), acl_set_file(3), acl(5)AUTHOR
Derived from the FreeBSD manual pages written by Robert N M Watson <rwatson@FreeBSD.org>, and adapted for Linux by Andreas Gruenbacher
<a.gruenbacher@bestbits.at>.
Linux ACL March 23, 2002 Linux ACL