Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

file permissions

 
srini carry
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here are my files

-rw-r----- 1 oracle oinstall 329910 Oct 20 11:24 audit.log

-rw-r----- 1 oracle oinstall 133699 Oct 20 14:45 acf_domain.log

what are the permission for these two files. I can open these files using putty using vi editor but I cannot downlod this file to my windows machine why ?


my unix admin says its the problem with the file permisions i have to open through command line .I am using windows and connect to my server to view log files , I am not a vi guru and I prefer download these files in windows and open in text editor , please tell me what I can do to download these files ?




 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We need more details. How are you trying to "download" them? Are they on a shared file system? if so, which SMB, NFS, etc?
If not on a shared file system, what exactly are you trying to do?
 
srini carry
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pat Farrell wrote:We need more details. How are you trying to "download" them? Are they on a shared file system? if so, which SMB, NFS, etc?
If not on a shared file system, what exactly are you trying to do?


I am using winscp shared file system , if I double click on the file I get this permission denied attached is the image
2009-10-21_102234.png
[Thumbnail for 2009-10-21_102234.png]
 
srini carry
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pat Farrell wrote:We need more details. How are you trying to "download" them? Are they on a shared file system? if so, which SMB, NFS, etc?
If not on a shared file system, what exactly are you trying to do?


Sir, the response I gave is not enough , please tell me , we dont have any unix gurus and its very hard for us to look at log files, pease help us , pease let me know if the information I provided is not enough?
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using putty/vi, which account do you use? User oracle or an account which is in the group oinstall?

And for downloading?
 
srini carry
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stefan Wagner wrote:Using putty/vi, which account do you use? User oracle or an account which is in the group oinstall?

And for downloading?


my unix admin said

some files weblogic application creates on its own and , for thoese files others not orcale install user donot have permission to read , pelase tell me what I cqan i do to get read /wriite permissions for files created by weblogic
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can ask your admin to be added to the oinstall-group.
 
srini carry
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stefan Wagner wrote:You can ask your admin to be added to the oinstall-group.


If admin adds me to that group oinstall-group , what changes , he cannot give me admin rights , he can just give me read access , will he be able to give me read-only permissions to all weblogic files by adding me to oracle-install group ?
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With a little bit simplification, the filepermissions look like this:

There are 3 possible relations you can have to a file:
- you are the owning user (u)
- you are in the group (g)
- else, other. (o)

For all of these categories, there is a boolean permission-triple: rwx

so for those files:

the user oracle has rw (read, write)-permissions. Should you use the oracle account? Surely not.

The group oinstall has only read permissions. Well - you might become a member of that group, which would give you read permissions to those files.

For completeness: x means execute-permissions. Here nobody may execute the files, a common pattern for logfiles.

Everybody else doesn't have any permitssion on that files.

Whatever you mean by weblogic-file - created by weblogic, for weblogic, in some relation to weblogic - that's not a category that is usefull to discuss permission questions. Those files all have permissions set for ugo, and if you are the user, in the group or someone other, you have the permissions which are bound to the file.

The admin could of course change the permissions of the file in the section 'other', and give other people than oracle or those in the oinstall-group read permissions - for example. But that wouldn't apply to everybody else too.

And maybe the file is changed by some process, then the admin repeatedly had to change the permissions.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic