Full control on File


 
Thread Tools Search this Thread
Operating Systems AIX Full control on File
# 1  
Old 01-17-2010
Full control on File

Guy's
There is file in AIX called applog related to application and it's owned by root:system
I want normal user called appuser to mange this file without change the file owner and without add the appuser in root group
Is there any way to give this user appuser full Control in that file applog ?

---------- Post updated at 11:53 PM ---------- Previous update was at 05:55 AM ----------



is there any way to give full control for appuser (Normal user) on that file without change any thing in the owner or permission of the file .
ITHelper
# 2  
Old 01-17-2010
you can add an ACL allowing that user full access, if AIX supports it. See chmod. I am not familiar with AIX so I googled it and found this is might help you out

ACL usage in AIX - Dev Archives

http://unix.ittoolbox.com/documents/...s-in-aix-16751

http://lokams.blogspot.com/2009/02/a...ls-in-aix.html
# 3  
Old 01-17-2010
Guys

This is the file details

-rw-r--r-- 1 root system 2020 Jan 17 09:57 app.log

I want to give normal user not related to the owner file full Control on the file without change any thing on the file permission!

Is there any way?



ITHelper
# 4  
Old 01-17-2010
I could not determine if you did not want to change group ownership either.
If you do not mind, you could change the group ownership from system to a group that the appuser is a member of and issue
Code:
chgrp somegroup applog
chmod g+w applog

If the user has read only rights on the parent directory he will not be able to delete the file but he will be able to modify its contents.
# 5  
Old 01-17-2010
No if I change the chgrp and chmod of that file . File will not work it should to be on the same mode and permission

I want to things only from the normal user to do .....

1 - I want to give him control to be able to copy the file
2 - I want to let him able to clear the file make it 0 size

This is what I want to do without do any changing in the mode or the group of the file .
ITHelper
# 6  
Old 01-17-2010
Well with my suggestions the user will be able to make the file 0 byte size and copy the file to an other directory. Your saying it "will not work", can you elaborate what you mean by that, or do you mean you simply do not want that for some reason?
# 7  
Old 01-17-2010
Alternative would be to implement sudo to allw the commands you specify.

In order to let the user do what you wish he either needs to be the owner of the file or needs to be a member of the group that owns the file. If he isn't one of those then sudo is the simplest way of allowing what you want.

Unless you can tell us what will not work if you change the group ownership of the logfile as ITHelper suggested.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

100% Inode full with only 67% FS full.

AIX Version 6.1 and 7.1. I understand that when the OS initially creates the FS and inodes, its pretty strict, but not always tuned to a 1:1 ratio. I see the same thing when adding a whole disk LV to a separate device. It seems that when we expand a filesystem the inodes don't get tuned... (5 Replies)
Discussion started by: mrmurdock
5 Replies

2. Shell Programming and Scripting

Check whether file is processed in a control file list

I've a list of files which got processed in Target table A and stored in a control file(list of control files). I've want to trigger another process (later) based on this list of files and load into Target table B and continue running this process until this file list is exhuasted. How do I come... (1 Reply)
Discussion started by: manojg9
1 Replies

3. Shell Programming and Scripting

Formatting file data to another file (control character related)

I have to write a program to read data from files and then format into another file. However, I face a strange problem related to control character that I can't understand and solve. The source file is compose of many lines with such format: T_NAME|P_NAME|P_CODE|DOCUMENT_PATH|REG_DATE ... (3 Replies)
Discussion started by: hk6279
3 Replies

4. UNIX for Dummies Questions & Answers

getting the full permissions of a file

Hi I was wondering if it would be possible to get the full octal permissions of a file by using something in the stat() system call. Can this be done without going through all of the seperate permissions (e.g. read for user, write for user .... etc.)? also how can this octal permission be changed... (5 Replies)
Discussion started by: bjhum33
5 Replies

5. UNIX for Advanced & Expert Users

How to control remotely "full" Linux router in GUI ?

Hi, I mean Unix Linux general solution, so please don't move my question, as it's Unix specific. I would like to remotely control my "full" Linux router. Already succeeded to compile Linux Unix dialog, running some tests. The issue is dialog comes with a limited number of widget boxes for... (4 Replies)
Discussion started by: jack2
4 Replies

6. Shell Programming and Scripting

Checking for a control file before processing a data file

Hi All, I am very new to Shell scripting... I got a requirement. I will have few text files(data files) in a particular directory. they will be with .txt extension. With same name, but with a different extension control files also will be there. For example, Sample_20081001.txt is the data... (4 Replies)
Discussion started by: purna.cherukuri
4 Replies

7. Solaris

syslog file is full

dear all i have solaris 10 and it send mail into the file syslog file how can i stop this because is too big ........ and big day by day thanks to all murad jaber (6 Replies)
Discussion started by: murad.jaber
6 Replies

8. Solaris

File system full?

Hi, I just started working with UNIX on an old semi-fossilized Sun workstation which I use to process LOTS of images,however, I just started to get an error message that the file system is full and then my shell tool or/and text editor freeze up. Help? (8 Replies)
Discussion started by: Bend
8 Replies

9. UNIX for Advanced & Expert Users

Full File System

Hi All, There was a background process running on a Solaris 2.8 machine, and appeared to have filled all available disk-space. I done a killall, and upon re-booting found that the file system had filled up, and will not boot as normal as a result. For example, I'm getting /usr/adm/messages: No... (8 Replies)
Discussion started by: Breen
8 Replies
Login or Register to Ask a Question