LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-30-2012, 10:53 AM   #1
gopinathnatarajan
LQ Newbie
 
Registered: Sep 2012
Location: Bangalore
Distribution: Red Hat, CentOs
Posts: 16
Blog Entries: 1

Rep: Reputation: Disabled
Error


I am getting the error

touch: cannot touch '1': Read-only file system

when i run the command touch 1 inside /home.
 
Old 09-30-2012, 10:57 AM   #2
firstfire
Member
 
Registered: Mar 2006
Location: Ekaterinburg, Russia
Distribution: Debian, Ubuntu
Posts: 709

Rep: Reputation: 428Reputation: 428Reputation: 428Reputation: 428Reputation: 428
Hi.
Quote:
I am getting the error

touch: cannot touch '1': Read-only file system

when i run the command touch 1 inside /home.
That is because /home is usually owned by root. Directories inside /home (one per user) are owned by corresponding users. Run
Code:
ls -lha /home
and look at description of the `.' directory, which is a current dirrectory, i.e. /home.

Or try
Code:
stat /home
You will notice that both Uid and Gid are zero (which means root).

Last edited by firstfire; 10-01-2012 at 12:08 PM. Reason: I meant ls -lha /home, not ls -lha /root
 
1 members found this post helpful.
Old 10-01-2012, 02:22 AM   #3
gopinathnatarajan
LQ Newbie
 
Registered: Sep 2012
Location: Bangalore
Distribution: Red Hat, CentOs
Posts: 16

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thank you firstfire.
 
  


Reply



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
Error 502 : Display Fatal Error Message, Error pushing image, dbpaCT failed! HaloCheng Linux - Newbie 1 09-12-2012 12:02 PM
[SOLVED] Google-Chrome Error (Error 9 (net::ERR_UNEXPECTED): Unknown error) smoooth103 Slackware 4 12-04-2010 07:42 PM
[SOLVED] php5 ./configure error: (FILENAME=- FNR=27) fatal error: internal error richinsc Linux - Software 2 07-08-2010 09:20 AM
Memory error: extended error chipkill ecc error rajivdp Linux - Hardware 1 12-07-2009 08:26 AM
Sendmail: eocket wedge , 504 error , dsn error, mail relay connection error djcs Debian 0 03-03-2009 12:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:13 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
Open Source Consulting | Domain Registration