Sponsored Content
Full Discussion: Help with ACL on dir/files
Operating Systems Solaris Help with ACL on dir/files Post 302481125 by NOTORIOUS VR on Thursday 16th of December 2010 05:53:35 PM
Old 12-16-2010
Help with ACL on dir/files

Hello,

I'm looking for some insight on ACL's in particular in regards to directories (but I guess files as well).

Here is what I would like to achieve.

A shared directory (by samba) that is mapped on a Windows box as a netowrk drive, any members of a specific domain group should have complete access to this share and anything in it, while everyone else who is not in the group doesn't. User auth comes from a Windows DC.

The link between the Unix box and the DC is working correctly.

If I issue the following command:
Code:
chmod A=group:DOMAIN+'domain group':rwxpdDaARWcCos:fd:allow Accounting/

I am able to access the files and directories (first level) without issue.

I can create new directories and new files as well as rename and delete existing ones.

I cannot however figure out why after creating a new directory I cannot access it (general Access denied error under Win) or save to a new created file (txt doc as a test).

I cannot use the recursive option of chmod as it gives me an error of:

Code:
chmod: ERROR: Inheritance flags are only allowed on directories
See chmod(1) for more information on valid ACL syntax

Can anyone shed some light on the situation? I am a *nix n00b, I've "played around" for a few years in Linux but this is the first time I've really gotten my hands dirty with permissions.

I have searched numerous documents on google for answers, but I can't seem to find any relevance (most docs talk about this command for "files"). I've also searched this forum for ACL directory and didn't find anything useful.

OS ver. Sun Solaris 10

Cheers!
Sascha
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to copy specified files from list of files from dir A to dir B

Hello, fjalkdsjfkldsajflkajdskl (3 Replies)
Discussion started by: pmeesara
3 Replies

2. Shell Programming and Scripting

need to move files of particular day from one dir to another dir

Hi, I have hundered's of files of the name CMP_PORT_IN_P200903271623042437_20090328122430_err.xml in error directory of todays date ie 20090328 and in the file name 5th field specifies date only now i want to move all files of 20090328 to another directory i.e reprocess directory. So... (3 Replies)
Discussion started by: ss_ss
3 Replies

3. Shell Programming and Scripting

A script to find dir, delete files in, and then del dir?

Hello!! I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory: drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
Discussion started by: bigben1220
3 Replies

4. Shell Programming and Scripting

moving files from a dir in one machine to a dir in another machines

Hi, I am a unix newbie.I need to write a shell script to move my oracle READ WRITE datafiles from one serevr to another. I need to move it from /u01/oradata/W1KK/.. to /u01/oradata/W2KK, /u02/oradata/W1KK/.. to /u02/oradata/W2KK. That is, I actaully am moving my datafiles from one database to... (2 Replies)
Discussion started by: mathews
2 Replies

5. UNIX for Dummies Questions & Answers

How to list all files in dir and sub-dir's recursively along with file size?

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. Shell Programming and Scripting

Need a script to move the files from one dir to other other dir

Need a script to move the files from one dir to other dir and at the same time it has to read the log in the source dir. Please help me ASAP. (4 Replies)
Discussion started by: viswanathkishor
4 Replies

7. Shell Programming and Scripting

Copy files and subdirs from dir to a new dir

Hello Comunity I am trying to make a bash shell script that it copies files and subdirs(with files) to a new dir. I would like the dest_dir to contain only subdirectories with files not other subdirs inside. it called : cpflatdir src_dir dest_dir Pleaze help me! Thank you in... (2 Replies)
Discussion started by: BTKBaaMMM
2 Replies

8. Shell Programming and Scripting

KSH - Find paths of multiple files in CC (dir and sub-dir))

Dear Members, I have a list of xml files like abc.xml.table prq.xml.table ... .. . in a txt file. Now I have to search the file(s) in all directories and sub-directories and print the full path of file in a output txt file. Please help me with the script or command to do so. ... (11 Replies)
Discussion started by: Yoodit
11 Replies

9. Shell Programming and Scripting

Script to move all files in a dir into a certain dir

Hello all, I'm very new to shell scripting and need quite urgently to do this thing for my student job. I have a directory called "vectors" with a bunch of files all named ".vector". also i have for each of those files a directory with the name . I now want to move each of those *.vector files... (2 Replies)
Discussion started by: sherresh
2 Replies

10. AIX

Assign read write permission to the user for specific dir and it's sub dir and files in AIX

I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. I do not want to assign user the same group of that directories too.... (0 Replies)
Discussion started by: blinkingdan
0 Replies
acl_valid(3)						     Library Functions Manual						      acl_valid(3)

NAME
acl_valid - Checks an ACL for validity LIBRARY
Security Library (libpacl.a) SYNOPSIS
#include <sys/acl.h> int acl_valid( acl_t acl_d, acl_entry_t *entry_p); PARAMETERS
Specifies the working storage internal representation of an ACL. Pointer to the location that holds a returned ACL entry. DESCRIPTION
NOTE: This function is based on Draft 13 of the POSIX P1003.6 standard. The acl_valid() function checks the ACL for validity. An ACL is invalid if one or more of the following conditions are violated: The three required entries (ACL_USER_OBJ, ACL_GROUP_OBJ, and ACL_OTHER_OBJ) must appear exactly once in an ACL of type ACL_TYPE_ACCESS, and in a non- empty ACL of type ACL_TYPE_DEFAULT or ACL_TYPE_DEFAULT_DIR. The ACL must not contain a duplicate entry. An entry is duplicated if another entry in the same ACL has the same entry tag type and the same tag qualifier (sameness or difference in permissions is not relevant). RETURN VALUES
Upon successful completion, the acl_valid() function returns a value of 0 (zero). Otherwise, a value of -1 is returned, and the errno global variable is set to indicate the error. ERRORS
For the following condition, the acl_valid() function sets the location specified by the entry_p parameter with the value of the ACL entry for which one or more duplicates exist elsewhere in the ACL. The ACL contains entries that are not unique. For the following conditions, the acl_valid() function sets the location indicated by the entry_p parameter to the NULL value. The acl_d parameter does not refer to a valid ACL. One or more of the required entries is not present. RELATED INFORMATION
acl_create_entry(3), acl_init(3), acl_get_fd(3), acl_get_file(3), acl_set_fd(3), acl_set_file(3), acl(4) Security delim off acl_valid(3)
All times are GMT -4. The time now is 04:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy