Permission to a external user to a file


 
Thread Tools Search this Thread
Operating Systems AIX Permission to a external user to a file
# 1  
Old 09-29-2010
Permission to a external user to a file

Is there any possible way to give permission to a user to a file whose not a member of that group. Also the permission of the file shouls be given only to that USER but not all OTHERS.

Thanks in Advance for ur replies/suggestions...
# 2  
Old 09-29-2010
My crystal ball is out of order, so I'll guess: your OS does support ACL's - access control lists - for files. If so, your system will probably have one of these commands: chacl or setfacl.

ACL's provide very fine-grained file access, for example on a per-user basis.

If not, get back to us with full system information please.
# 3  
Old 09-29-2010
Thnxs a lot...

Unix server details:

AIX cdcaetl4-dev 3 5 00C542504C00

---------- Post updated at 08:48 PM ---------- Previous update was at 07:35 PM ----------

Jim- Can you please let me know the steps to do the same...
# 4  
Old 09-29-2010
I do not know AIX. It is markedkly different from other unixes. Moving this to AIX forum.
# 5  
Old 09-29-2010
this is possible for AIX. ACLs are enabled by default(no need to use a mount option). See Access Control Lists for details.
# 6  
Old 09-30-2010
I suggest staying away from ACLs. They tend to create bigger problems than they solve, but that is just my opinion.

Having said this: create a special group, give ownership of the file to this group, set the group rights to what you need and add the user you want to give access to the file to this group. This should achieve what you want.

Example:
Code:
file: /this/is/myfile owned by user:group
user to give access to: otheruser

# ls -l /this/is/myfile
-rwxr-----  1 user group 174080 Jun 15 12:14 /this/is/myfile
# mkgroup users=user,otheruser fileacc
# chown user:fileacc /this/is/myfile
# chmod 760 /this/is/myfile

# ls -l /this/is/myfile
-rwxrw----  1 user fileacc 174080 Jun 15 12:14 /this/is/myfile

This will give the ID "otheruser" read- and write-access to the file while changing nothing for UID "user". Set the filemode "740" for read-access only.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Permission error when "touch"ing file with different user

Hi, There are 2 users (T886072 & T864764) that need to be provided full (rwx) access to a directory. I made the changes to the directory permissions using chmod and setfacl : root@digidb2:# chmod 700 /u02/ftpfiles/MFRS16/discount_rates/ root@digidb2:# setfacl -s... (3 Replies)
Discussion started by: anaigini45
3 Replies

2. Red Hat

User permission access

Hi folks, I am trying to grant the access like below items using the setfacl command, but i couldn't achieve as what I required. any other possibility. username : testing Readonly access in /form_dl/system/prd/logs Write only access in /form_dl/system/prd/deploy No access to other... (0 Replies)
Discussion started by: gsiva
0 Replies

3. UNIX for Dummies Questions & Answers

Special Permission for a user

Hi, I'm newbie to unix. There is a directory, say Testing/ under /home/user1. I have created a user by the name check. I was looking for a way to give the above user read & execute access only to this directory Testing/ while for other remaining files,directories,etc this user... (2 Replies)
Discussion started by: penqueen
2 Replies

4. AIX

Change file permission by anothere user !

Guy's we are in AIX 5.3 We have created two users user1 and user2 and they are under same group Staff Group user1 will create file under /tmp/ and this is the permission of this file -rw-r--r-- 1 user1 staff 1 Jun 13 09:47 file user2 is under same group and when he... (14 Replies)
Discussion started by: ITHelper
14 Replies

5. UNIX for Dummies Questions & Answers

granting permission to file/directory to a specific user

hello, I would like to grant full access to a directory which is owned by root and the web application that created it. I have though of adding the permission to the whole world, but for security reason I would like to grant it to one more user. I have tried this 'chmod -U newUser+wrx... (2 Replies)
Discussion started by: run123
2 Replies

6. UNIX for Dummies Questions & Answers

How the /etc/passwd file is written when user does not have permission

Hi, /etc/passwd file has write permission only for the root user. Now when a normal user changes the its own password using passwd command, how this information has been written to the /etc/passwd file when the user is not having write permission to this file. ~santosh (2 Replies)
Discussion started by: santosh149
2 Replies

7. UNIX for Dummies Questions & Answers

User permission

Hi all, I created testuser. by following command. /usr/sbin/adduser -n test -d /disk05/collections/GET/testdata/ and then set its password by following command. passwd testuser When I login to system by testuser, it enters everything is ok. The problem is how to set permission to this... (3 Replies)
Discussion started by: mr_bold
3 Replies

8. Shell Programming and Scripting

help with user permission

hi everyone. iīve been burning my head for a week now with this problem and i couldnīt find a solution. iīve been looking for an answer in this forum but nothing either. so i decided to ask. the thing is, i want to create a users with permission to kill just a group of users. i know how to write... (6 Replies)
Discussion started by: lucasmarin
6 Replies

9. UNIX for Dummies Questions & Answers

How to give permission for a specified user

Hi All, How can i give permission for a specific user ( eg. admin ) ? I tried with chmod admin+r prog.sh which doesnt work. Is there any way i can specify a user's name and give the permission? Thanks in advance. Saneesh Joseph. (1 Reply)
Discussion started by: saneeshjose
1 Replies

10. OS X (Apple)

Help with copying files to external drive in single user mode

I'm a newbie to Unix and hoping that it will be my saviour when all else has failed. My "keys out of order" on my g4 laptop and neither Disk Util nor Disk Warrior can fix it. I'm experimenting in the unix command line (I figure I can't mess this laptop up anymore , and have figured out how... (3 Replies)
Discussion started by: mishostawn
3 Replies
Login or Register to Ask a Question