LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-01-2017, 09:54 PM   #16
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 142Reputation: 142

I'm trying to learn the Sun system of roles, privileges, authorizations, and I think a bunch of other stuff my mind is blown for tonight just trying to figure out their
ACL implementation, if you can call it that.
 
Old 05-31-2017, 12:31 PM   #17
rpittala
Member
 
Registered: Jan 2012
Location: PUNE
Distribution: SunOS sun4v sparc sun4v Solaris
Posts: 82
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
I have been working on these ACLs now. So, I did some hands on with the commands and a little bit of understanding of using the ACLs in my project.

We can find the man page as I find it more helpful here :

Finally, got stuck at inheriting the ACLs when we copy the files from some one location to the other directory where we had set the permission to a and shared with some one.

lets say:
ACCOUNT creates Directory1 and Directory2. Sets permissions to only allow ACCOUNT and USER access, with inheritance only on Directory 1. ACCOUNT copies file from Directory2 into Directory1.

Expectation:

Only ACCOUNT and USER should have access to directory & files in Directory1, the file shall receive new permissions from Directory1. Others get permission denied.

tried with:

Code:
chmod  A=user:ACC123:rwxaAcCpdDRWo:fd:allow,user:USR123:rwxaAcCpdDRWo:fd:allow,owner\@:rwxaAcCpdDRWo:fd:allow,everyone\@:rwxaAcCpdDRWo:fd:deny DIR1
So, when I copy a file from "out side the DIR1" to "DIR1", my expectation was that the copied file should inherit the exact permissions of DIR1. But, when I see permissions of the created file inside the DIR1 and copied file permissions are little different.

How can we make the copied file inherit the exact permissions ?

Last edited by rpittala; 05-31-2017 at 12:33 PM.
 
Old 09-13-2017, 01:04 AM   #18
rpittala
Member
 
Registered: Jan 2012
Location: PUNE
Distribution: SunOS sun4v sparc sun4v Solaris
Posts: 82
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Now, I understand that the main source to understand the ACL`s is the manual page for "chmod".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bastion Host: Implementing ACL with user group and permission TashiDuks Linux - Security 36 04-13-2017 02:18 AM
ACL permission doesn't work for me (?) makupl Red Hat 4 09-20-2013 04:52 AM
[SOLVED] ACL - permission denied KillaSmooth Linux - General 4 05-18-2011 07:46 AM
deny permission in acl michael_f Linux - Security 4 01-31-2011 04:29 PM
ACL problem? permission denied issue! teamgsi Linux - Enterprise 5 10-16-2009 05:47 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration