LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-29-2012, 02:47 PM   #1
jhenry
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
Write permissions


I can sudo su - as root into a directory and create a file but I can't write in the file w/o it giving me an error. I try to vi test.txt and I get a warning message "E297: Write error in swap file". If I continue to save in the file I get the error message E514: Write Error (file system full). But this is not the case because I am only using %8 of space in my home directory with I check the df -kh.


Help ...
 
Old 11-29-2012, 03:12 PM   #2
steelneck
Member
 
Registered: Nov 2005
Distribution: Slackware, Arch
Posts: 43

Rep: Reputation: 8
When you do "su -" you wont be around in your home dir anymore. When you have done su - the home is /root. If you just do "su" without the dash you will still be around in your normal home. It sounds as your root filesystem is full. See the manpage for su.

Last edited by steelneck; 11-29-2012 at 03:18 PM.
 
Old 11-29-2012, 03:17 PM   #3
jhenry
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
I sudo into root and cd /home/henry/.....From there I do a ls -la and create a test file.....But I can't write in the test file.
 
Old 11-29-2012, 03:21 PM   #4
steelneck
Member
 
Registered: Nov 2005
Distribution: Slackware, Arch
Posts: 43

Rep: Reputation: 8
You wrote "sudo su -". Do either sudo, su or su - depending on what you want. How big is the test file you are trying to create? You may have a problem with a full root filesystem if the program you are using is using /tmp. What is the output of df -h?
 
  


Reply


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
No Write Permissions? Masrad Ubuntu 2 06-03-2006 03:48 PM
'write permissions einstien Linux - General 1 03-28-2005 07:47 AM
write permissions ScottCamp Linux - Newbie 0 10-20-2004 09:13 AM
Write permissions kougar Linux - Newbie 13 06-04-2004 11:43 AM
Write permissions nuttiernu Linux - General 4 02-03-2003 08:04 AM


All times are GMT -5. The time now is 08:01 PM.

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