|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Does ACL can only grant/deny access for specific command?
Dear AIX/UNIX experts:
I have a demand to restricted a file to be copy by others, but this file must can be read by others/Applications. As I tried, the chmod command cannot fulfill this requirement. But not sure if the ACL can achieve this function or not ? Could anybody give me your valuable advice ? Thanks a lot! David |
| Sponsored Links | |
|
|
|
#2
|
||||
|
||||
|
check this link http://en.wikipedia.org/wiki/File_system_permissions If u want to achieve this give read permission to all Code:
chmod 444 filename For full permision to the user and read permission to others & group. Code:
chmod 744 filename Last edited by amitranjansahu; 03-10-2010 at 04:10 AM.. |
| Sponsored Links | ||
|
|
|
#3
|
|||
|
|||
|
Hi amitranjansahu,
Thanks for your response. Your solution would allow the other user can copy the file! What I want is: allow the other user to read but restrict them to copy that file. |
|
#4
|
||||
|
||||
|
Just a question: how exactly should the system differentiate between a user reading the file, and a user reading the file and saving the contents to a different file? That would only work if you could restrict the read permission to a certain program, and only that program, which isn't possible with AIX ACLs as far as I know.
|
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Hi Pludi,
Thanks for explanations. I understand what is your concern. First, the file is not a text file(maybe compiled). Second, I just restrict it to be used on this system only. Thanks! |
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
If a file can be read, it can be copied.
Simple. If the file has read permission then the user with read permission can simply read the file and direct the output to another file, then they have a copy. I do not think you can stop a file with read permission from being copied. cat file > file2 Then you have a copy of file called file2. Even if it is a bin file cat -vet file > file2 will probably make a usable copy. How could you stop this? Permissions and even acl will not help here. |
| Sponsored Links | |
|
|
#7
|
||||
|
||||
|
devyfong have you tried restricted Shell?
|
| Sponsored Links | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how i can make one ip access to ftp account and deny others | elkadrey | Shell Programming and Scripting | 1 | 09-28-2009 09:43 AM |
| Restrict access to specific users. | nua7 | UNIX for Advanced & Expert Users | 6 | 08-27-2008 02:17 AM |
| how to deny ftp access | skully | Solaris | 10 | 06-17-2008 09:40 PM |
| how to deny someone to use ftp command ? | yarx | IP Networking | 4 | 12-03-2007 11:46 PM |
| Deny dba command to a user group!! | masquerer | UNIX for Dummies Questions & Answers | 3 | 06-20-2007 10:58 AM |
|
|