Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-16-2005, 07:16 PM   #1
Registered: May 2004
Distribution: SuSe 10.0
Posts: 154

Rep: Reputation: 30
Write access denied in Vi

Last night one of my pets walked on my keyboard while I was editing a file in the vi editor. Ever since then I have not been to write to any files. I am able to write to files as root but not as a regular user. I really don't remember what keys were pressed.

How can I get write access back on my user acount for the vi editor?

Old 07-16-2005, 10:53 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,891

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Best advice I can offer: Try to write to a file as user. If write fails, then check the permissions. If user doesn't have permission, then su to root and change the permissions to allow user to write.

Since the permissions changes were random (a pet walking across the keyboard), the solution will have to be random as well.

Of course, you can also try to write a bash, python, or perl script to search for file access and change dates which have changed recently.

Last edited by bigrigdriver; 07-16-2005 at 10:55 PM.
Old 07-16-2005, 11:03 PM   #3
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Rep: Reputation: 30
most likey, you somehow accidently changed the permissions of the files in question. if they are suppsed to owned by users, log in as root and do

chown user file

if you still cant edit it, chmod it 777.

one of thoes has gotta do it for ya


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
grip : no write access to write encoded file bidouilleur Linux - Software 5 10-09-2010 09:23 PM
Partition: write access denied linmix Linux - Software 7 10-08-2005 06:11 PM
NFS write access denied on one of two filesystems TomF Linux - Security 2 02-23-2005 08:48 PM
Permission denied when trying to write to ttyS0 thepoint Linux - General 0 06-03-2004 09:36 PM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 02:30 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration