04-05-2005
Sireesha,
Are you looking for something beyond the normal ownership bits? There is an
HTML introduction to UNIX in these forums that goes over the basics of permission bits. If you are looking for something more granular, you can use extended Access Control Lists (ACLs).
The following
thread shows an example of created an extended ACL using setfacl. You can search for more info in these forums.
Cheers,
Keith
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there a way not to display the password in the sys out when your korn shell script logs into sqlplus? (3 Replies)
Discussion started by: lesstjm
3 Replies
2. UNIX for Dummies Questions & Answers
I did a reveal hidden files in Terminal trying to get songs from my ipod. now i would like to turn that off and again hide the hidden files?????Help will be greatly appreciated
Thanks
Eric (3 Replies)
Discussion started by: unclejessie1967
3 Replies
3. Shell Programming and Scripting
Hi everybody,
Do you know how to hide the text for interactive unix shell script? Just like the case for inputting password during logon.
Patrick (1 Reply)
Discussion started by: patrickpang
1 Replies
4. Shell Programming and Scripting
Hi all,
i have a perl script for my users to run. My sys admin created an account for the users to log in and execute the script. They just type "perl myscript.pl" at the unix prompt to run it. Is there any way that i can hide my script? ,ie, do not allow my users to view the script. either... (5 Replies)
Discussion started by: new2ss
5 Replies
5. Shell Programming and Scripting
hello everybody,
i would like to hide visibility of the folders , i.e. not to giving any physically visibility to any users . Is there any way to do it other than changing the permission and adding "." post folder name .
by changing the permission , we cann't do any activity , but have... (1 Reply)
Discussion started by: manas_ranjan
1 Replies
6. Shell Programming and Scripting
Hi friends,
I want (a C++ code) to hide process in kernel 2.6, I don't want monitoring even in /proc.
please help me.
Regards,
Eilya (3 Replies)
Discussion started by: Eilya
3 Replies
7. Cybersecurity
Hi,
By reporting the process status with ps, any Unix user will see the command line arguments
#ps -ef
UID PID PPID C STIME TTY TIME CMD
lsc 13837 13825 0 May 11 pts/17 0:01 -ksh
oracle 4698 6294 0 12:00:40 ? 0:00 sqlplus -s system/manager
appluser 4229 4062 0 12:00:03... (2 Replies)
Discussion started by: bhagirathi
2 Replies
8. Shell Programming and Scripting
Hi,
I my unix we have one file that contains all the database credentials.
we are calling that file while connecting databse.
I need to hide that file....other user should not view that file.
How to do this. Please suggest me apart from permisstion(chmod) level suggestion.
Regards,... (3 Replies)
Discussion started by: rsivasan
3 Replies
9. Programming
Hi,
I need to somehow pipe the password to a command and run some SQL, for example, something like echo $password | sqlplus -s system @query01.sql
To make it not so obvious, I decided to try out writing a small C program that basically just do echo $password. So now I just do x9.out | sqlplus... (8 Replies)
Discussion started by: newbie_01
8 Replies
LEARN ABOUT CENTOS
acl_extended_file
ACL_EXTENDED_FILE(3) BSD Library Functions Manual ACL_EXTENDED_FILE(3)
NAME
acl_extended_file, acl_extended_file_nofollow -- test for information in ACLs by file name
LIBRARY
Linux Access Control Lists library (libacl, -lacl).
SYNOPSIS
#include <sys/types.h>
#include <acl/libacl.h>
int
acl_extended_file(const char *path_p);
int
acl_extended_file_nofollow(const char *path_p);
DESCRIPTION
The acl_extended_file() function returns 1 if the file or directory referred to by the argument path_p is associated with an extended access
ACL, or if the directory referred to by path_p is associated with a default ACL. The function returns 0 if the file has neither an extended
access ACL nor a default ACL.
An extended ACL is an ACL that contains entries other than the three required entries of tag types ACL_USER_OBJ, ACL_GROUP_OBJ and ACL_OTHER.
If the result of the acl_extended_file() function for a file object is 0, then ACLs define no discretionary access rights other than those
already defined by the traditional file permission bits.
Access to the file object may be further restricted by other mechanisms, such as Mandatory Access Control schemes. The access(2) system call
can be used to check whether a given type of access to a file object would be granted.
acl_extended_file_nofollow() is identical to acl_extended_file(), except in the case of a symbolic link, where the link itself is interro-
gated, not the file that it refers to. Since symbolic links have no ACL themselves, the operation is supposed to fail on them.
RETURN VALUE
If successful, the acl_extended_file() function returns 1 if the file object referred to by path_p has an extended access ACL or a default
ACL, and 0 if the file object referred to by path_p has neither an extended access ACL nor a default ACL. Otherwise, the value -1 is returned
and the global variable errno is set to indicate the error.
ERRORS
If any of the following conditions occur, the acl_extended_file() function returns -1 and sets errno to the corresponding value:
[EACCES] Search permission is denied for a component of the path prefix.
[ENAMETOOLONG] The length of the argument path_p is too long.
[ENOENT] The named object does not exist or the argument path_p points to an empty string.
[ENOTDIR] A component of the path prefix is not a directory.
[ENOTSUP] The file system on which the file identified by path_p is located does not support ACLs, or ACLs are disabled.
STANDARDS
This is a non-portable, Linux specific extension to the ACL manipulation functions defined in IEEE Std 1003.1e draft 17 ("POSIX.1e", aban-
doned).
SEE ALSO
access(2), acl_get_file(3), acl(5)
AUTHOR
Written by Andreas Gruenbacher <a.gruenbacher@bestbits.at>.
Linux ACL March 23, 2002 Linux ACL