Solved

modify

Posted on 2013-05-25
5
178 Views
Last Modified: 2013-06-03
When I am as oracle user in a vi editor I can only read contents
I cannot edit and save

I have to root to do so..
How I as an oracle user above thing is achieved..
0
Comment
Question by:walkerdba
5 Comments
 
LVL 5

Expert Comment

by:DOSLover
Comment Utility
A possible way is to try using 'sudo' access as root. Of course, you need sudo permissions. Logged in oracle user, try the following at command prompt:
   > sudo root
   > vi filename
0
 
LVL 23

Expert Comment

by:David
Comment Utility
It would help to see the results of the file permissions:
> ls -la

and whether your account shares a group with the file author:
> groups

In order to edit a file that you do not own, you must have write access on a world (all users) or group (similar users) basis.
0
 

Author Comment

by:walkerdba
Comment Utility
[oracle@mac ~]$ ls -la
total 172
drwx------ 19 oracle oinstall  4096 May 25 14:45 .
drwxr-xr-x  3 root   root      4096 Aug 26  2012 ..
-rw-------  1 oracle oinstall  1637 May 22 23:57 .bash_history
-rw-r--r--  1 oracle oinstall    24 Aug 26  2012 .bash_logout
-rw-r--r--  1 oracle oinstall  1088 Oct 18  2012 .bash_profile
-rw-r--r--  1 oracle oinstall   124 Aug 26  2012 .bashrc
drwx------  3 oracle oinstall  4096 Oct 22  2012 .config
-rw-r--r--  1 oracle oinstall   281 Oct 18  2012 db_env
drwxr-xr-x  7 oracle oinstall  4096 May 21 17:52 Desktop
-rw-------  1 oracle oinstall    26 Aug 26  2012 .dmrc
drwxr-x---  2 oracle oinstall  4096 Aug 26  2012 .eggcups
-rw-------  1 oracle oinstall    16 Jan  2 10:15 .esd_auth
drwx------  4 oracle oinstall  4096 May 25 14:45 .gconf
drwx------  2 oracle oinstall  4096 May 25 15:55 .gconfd
drwxr-xr-x  3 oracle oinstall  4096 Aug 26  2012 .gnome
drwx------  7 oracle oinstall  4096 May 13 17:44 .gnome2
drwx------  2 oracle oinstall  4096 Aug 26  2012 .gnome2_private
drwxr-xr-x  2 oracle oinstall  4096 Aug 26  2012 .gstreamer-0.10
-rw-r--r--  1 oracle oinstall    88 Aug 26  2012 .gtkrc-1.2-gnome2
-rw-------  1 oracle oinstall  4161 May 25 14:45 .ICEauthority
drwx------  3 oracle oinstall  4096 Aug 26  2012 .metacity
drwx------  3 oracle oinstall  4096 Jan  2 12:15 .mozilla
drwxr-xr-x  3 oracle oinstall  4096 May 13 17:44 .nautilus
drwxr-xr-x  3 oracle oinstall  4096 Aug 26  2012 .oracle
-rw-------  1 oracle oinstall 12288 Nov 12  2012 .profile.swp
-rw-------  1 oracle oinstall   269 Aug 26  2012 .recently-used
-rw-r--r--  1 oracle oinstall 22414 May 22 23:33 .recently-used.xbel
drwxr-xr-x  3 oracle oinstall  4096 Aug 26  2012 .redhat
drwx------  2 oracle oinstall  4096 Oct  8  2012 .ssh
drwx------  3 oracle oinstall  4096 Aug 26  2012 .thumbnails
drwx------  2 oracle oinstall  4096 May 21 17:53 .Trash
-rw-------  1 oracle oinstall  3306 May 24 09:29 .viminfo
-rw-r--r--  1 oracle oinstall  1059 May 25 14:45 .xsession-errors
-rw-r--r--  1 oracle oinstall   658 Aug 26  2012 .zshrc
[oracle@mac ~]$
0
 
LVL 19

Accepted Solution

by:
simon3270 earned 500 total points
Comment Utility
Which file are you trying to edit?  They all seem to be owned by "oracle", the files and the directory they are in, so should be fine.

Are you logged in as "oracle"?  (I can see that the prompt implies that, but prompts canlie!)
0
 

Author Closing Comment

by:walkerdba
Comment Utility
s
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Oracle Finace 3 43
levels for reporting 5 48
Oracle Subquery bad Join 11 42
report returning null 21 49
Users of Windows 10 Professional can disable automatic reboots using the policy editor. This tool is not included in the Windows home edition. But don't worry! Follow the instructions below to install (a Win7) policy editor on your Windows 10 Home e…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now