wood burning stoves 2.0*
The moose likes Linux / UNIX and the fly likes file permissions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "file permissions" Watch "file permissions" New topic
Author

file permissions

srini carry
Ranch Hand

Joined: Nov 30, 2007
Posts: 83
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

Joined: Aug 11, 2007
Posts: 4646
    
    5

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

Joined: Nov 30, 2007
Posts: 83
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


[Thumbnail for 2009-10-21_102234.png]

srini carry
Ranch Hand

Joined: Nov 30, 2007
Posts: 83
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

Joined: Jun 02, 2003
Posts: 1923

Using putty/vi, which account do you use? User oracle or an account which is in the group oinstall?

And for downloading?


http://home.arcor.de/hirnstrom/bewerbung
srini carry
Ranch Hand

Joined: Nov 30, 2007
Posts: 83
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

Joined: Jun 02, 2003
Posts: 1923

You can ask your admin to be added to the oinstall-group.
srini carry
Ranch Hand

Joined: Nov 30, 2007
Posts: 83
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

Joined: Jun 02, 2003
Posts: 1923

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.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: file permissions
 
Similar Threads
How do I avoid SocketTimeoutException: Read timed out
Changing run levels in Linux
multipart upload servlet timing out?
Problem running Tomcat 5.5.9 on OS X Tiger
File which is open should not be deleted?