09-10-2015
Depends what distribution, of course; but in general, a stock Linux installation doesn't use ACL's.
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
i have a script
compareFiles()
{
find /tmp/Satya -type f | \
while read filename1
do
echo "----------------------------------------$filename1"
find /tmp/Satya -type f | \
while read filename2
do
if diff $filename1 $filename2
then
echo "Both files... (3 Replies)
Discussion started by: Satyak
3 Replies
2. Shell Programming and Scripting
Hi, I am fairly new to writing scripts.
I am trying to write a script that moves either One or All of the files from one directory to another.
I know how to make the actual command to do it, but i don't quite know how to add operators to it, ie -i or -a.
I want -i to move one file from... (4 Replies)
Discussion started by: SirJoeh
4 Replies
3. UNIX for Advanced & Expert Users
Hello,
I have a directory and a list of files in it on which I'd like to set ACLs and quota.
To set ACLs regarding the UGO rights set at the moment, I haven't found any other way than grabbing the UGO rights set on the file with a shell cut command and then applying setfacl commands to that... (2 Replies)
Discussion started by: davchris
2 Replies
4. UNIX for Dummies Questions & Answers
Hey all,
i want to copy only the file names from an ftp server (directory and all sub directory) to a text file in another server (non ftp), i.e. i want to recursively move through directories and copy only the names to a text file.
any help is appreciated...thank you in advance (1 Reply)
Discussion started by: deking
1 Replies
5. UNIX for Dummies Questions & Answers
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
Discussion started by: nmakkena
3 Replies
6. Emergency UNIX and Linux Support
Hi guys,
There is a line in squid default configuration:
# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports
acls are applied from top down, so CONNECT acl will deny access to all non SSL and SSL ports. I mean it never reaches the second access rule. (0 Replies)
Discussion started by: majid.merkava
0 Replies
7. Programming
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
Discussion started by: jessy83
1 Replies
8. Shell Programming and Scripting
Hi Guys ,
I want create files Dire and Sub Dire. as same time using variable.
EX:
x1="/hk/Pt/put/NC/R1.txt"
x2="/hk/pt/Put/Ot/NC/RN.txt"
And i want delete all after done with my script.
Thanks (2 Replies)
Discussion started by: pareshkp
2 Replies
LEARN ABOUT OSF1
acl_get_file
acl_get_file(3) Library Functions Manual acl_get_file(3)
NAME
acl_get_file - Given the pathname to a file or directory, retrieve the designated ACL
LIBRARY
Security Library (libpacl.a)
SYNOPSIS
#include <sys/acl.h>
acl_t acl_get_file( char *path_p); acl_type_t type_d);
PARAMETERS
Designates the pathname to retrieve the ACL from. Designates the type of ACL to retrieve: ACL_TYPE_ACCESS, ACL_TYPE_DEFAULT, or
ACL_TYPE_DEFAULT_DIR.
DESCRIPTION
NOTE: This function is based on Draft 13 of the POSIX P1003.6 standard.
The acl_get_file() function retrieves the designated ACL via a pathname. The type of ACL being retrieved is designated in acl_type_t.
Working system storage is allocated as needed.
RETURN VALUES
Upon successful completion, the acl_get_file() function returns a pointer to the working storage internal representation copy of the ACL.
If the specified ACL type is ACL_TYPE_DEFAULT or ACL_TYPE_DEFAULT_DIR and the specified ACL doesn't exist for the given file descriptor a
value of NULL is returned. If the specified ACL type is ACL_TYPE_ACCESS and the given file descriptor doesn't have an access ACL a pointer
to the working storage internal representation copy of the permission bits in ACL format is returned. Otherwise, a value of NULL is
returned and errno is set to indicate the error.
ERRORS
If any of the following conditions occur, the acl_get_file() function sets errno to the corresponding value:
The required access to the file or directory was denied. The type_d argument is not a recognized ACL type. The path name is longer than
allowed. The object does not exist. There is not enough memory available to the process to allocate the working storage. The type_d
argument indicates a default ACL, and path_p does not point to a directory.
RELATED INFORMATION
acl_set_file(3), acl_get_entry(3), acl_get_file(3), acl_set_fd(3)
Security delim off
acl_get_file(3)