Change file permission by anothere user !


 
Thread Tools Search this Thread
Operating Systems AIX Change file permission by anothere user !
# 8  
Old 06-15-2009
Dear Ygor

Good idea but if the permission of the file like this

-rw------- 1 user1 staff 1 Jun 15 11:53 F2

We'll not be able to change the permission!

Is there any clue ?

Last edited by ITHelper; 06-15-2009 at 10:36 AM..
ITHelper
# 9  
Old 06-15-2009
what exactly is your problem and when/where you are getting issues...
So that we can try to solve it in some other way instead of chmod....

why dont you try as garethr said...

Quote:
Originally Posted by garethr
Why do you actually need to do? Would group-writeable permissions on the files and directories be sufficient?
# 10  
Old 06-15-2009
I have this File

-rw------- 1 user1 staff 1 Jun 15 11:53 File

The Owner of the file for user1 and the permissions read and write only for the Owner it self

The owner group of the file is staff , I want to let anyone in the group of staff to be able to change the permission or to take full control on the file to do what ever ..

I think my idea is clear is there any clue ?
ITHelper
# 11  
Old 06-15-2009
If you don't have read permission then you can't do much unless you are root.
# 12  
Old 06-16-2009
Is there any another clue will help us by Umask Option ?
ITHelper
# 13  
Old 06-17-2009
Quote:
Originally Posted by ITHelper
Is there any another clue will help us by Umask Option ?
Please stop posting same thing again & again. Read Bakunin's post regarding umask.
# 14  
Old 06-17-2009
is there any conifgration on user1 need to be done to let the permission of any file created by user1 to be like this -rw-rw-r--

-rw-rw-r-- 1 user1 staff 1 Jun 17 17:09 File

to be able to copy it to take the owner ?
ITHelper
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need a script to create file permission change restriction

Hello, I am looking for a UNIX shell script which can help me for access restriction. 1) /home/ram, there are number file with .txt extension, which should be only owned "ram" user. like as below ls -lrt *.txt -rwx------ 1 ram dba 11 Jan 4 2015 PASS1.txt -rwx------ 1 ram dba 10 Jan 4... (8 Replies)
Discussion started by: mr.trilok
8 Replies

2. Shell Programming and Scripting

Change file permission of mounted drive Linux

I got a problem with the permission of mounted 2TB drive in my Linux/Mint system. All the files in any folder are with 777, which is not what I want. my fstab line for this disk is: UUID=90803E0C803DF974 /media/grape/Workspace1_ntfs ntfs auto,users,permissions 0 0 and blkid gave me: $> blkid ... (4 Replies)
Discussion started by: yifangt
4 Replies

3. Shell Programming and Scripting

Change permission on a file recursively

Hi, this is the structure of the directory /local/home/app/cases under cases directory, below are the sub directories and each directory has files. /local/home/app/cases/1 /local/home/app/cases/2 /local/home/app/cases/3 /local/home/app/cases/4 File types are .txt .sh and so... (5 Replies)
Discussion started by: lookinginfo
5 Replies

4. UNIX for Dummies Questions & Answers

Change unix permission when I don't own the file

Hi, A file is transferred from a Windows server(say username : user1) to Unix server via ftp. In unix, the permission of the file for a user, say user2 will be "-rw-r-----". Since the user1 is the owner of the file, user2 is not able to change the file permission using chmod. Is there... (5 Replies)
Discussion started by: merin
5 Replies

5. Shell Programming and Scripting

Change the file permission

Guys, I need help. I need to change the .txt file permission after I have reset the file content to 0. The code that reset the file content to 0 is as follows: #!/bin/sh for i in /root/script/*.txt do echo "0" > $i done However, the file is generated by the apache application,... (3 Replies)
Discussion started by: jasperux
3 Replies

6. AIX

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... (5 Replies)
Discussion started by: ksailesh
5 Replies

7. Solaris

cant able to change permission in a DIR as root user

Hi my directory not accepting any commands. its simply telling permission denied. i tried ( cp, mv, rm ) as roor i want to set default permissons to this DIR please find the Logs below. dr-xr-xr-x 1 root root 1 Jun 1 09:04 AP1_ROP ( original dir) root> chmod 777... (5 Replies)
Discussion started by: vijayq8
5 Replies

8. 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

9. UNIX for Dummies Questions & Answers

How to change the default permission of a file

I am creating a file using the UTL_FILE command of oracle. This creates a file with the oracle user id. The file does not have permission for being read by any other user id. Is there a way that I can change this default permission. I tried using umask in the .login. Setting the umask to 022 works... (2 Replies)
Discussion started by: reachsamir
2 Replies

10. UNIX for Advanced & Expert Users

Timestamp of File permission change

Hi!! Experts, Is there any way to find the timestamp when the permission of a file was modified?? I mean no change to file contents.. Just the chnage of permissions. :) (1 Reply)
Discussion started by: jyotipg
1 Replies
Login or Register to Ask a Question