on 05-29-2008 7:17 AM
Hi Friends,
I am working on AIX operating system ,sap4.7 & oracle DB.
Can any one tell me how can i check the ownership of a file in AIX.And how can change the owner of a file .
Thanks & Regards
Karan
if you logon as root and go to the directory where the file is located then just use command ls -la to list files and attributes like this
<permissions> <owner> <group> <size> <date> <file>
drwxrwxrwx 2 ora<sid> dba 512 May 23 14:47 test
to change the owner use command chown <user>:<group> <file>
Regards
Juan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Logon to the AIX system via telnet or X-terminal.
Go to the directory where the file is located with cd /<your_directory/<your_sub_dir>
give command: ls -ls <filename> to see owner and group for file.
to change owner:
chown <new_owner> <filename>
to change group:
chgrp <new_group> <filename>
some shells (not all) even allow to change owner and group at the same time:
chown <new_owner>:<new_group> <filename>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.