LinuxQuestions.org
Help answer threads with 0 replies.
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, 11: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, 11:57 AM   #2
firstfire
Member
 
Registered: Mar 2006
Location: Ekaterinburg, Russia
Distribution: Debian, Ubuntu
Posts: 702

Rep: Reputation: 423Reputation: 423Reputation: 423Reputation: 423Reputation: 423
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 01:08 PM. Reason: I meant ls -lha /home, not ls -lha /root
 
1 members found this post helpful.
Old 10-01-2012, 03:22 AM   #3
gopinathnatarajan
LQ Newbie
 
Registered: Sep 2012
Location: Bangalore
Distribution: Red Hat, CentOs
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Thank you firstfire.
 
  


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


All times are GMT -5. The time now is 10:39 AM.

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