LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-05-2008, 08:09 PM   #1
sungjoo.kim
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 0
Changing permission issue


Hello All,

I have a problem in modifying and copying one file.
First I see following permission for the file.

--> ls -l Testlib
-rwxr-xr-x 1 root root 9045 Apr 12 2007 Testlib

Then I tried,

--> chmod 777 Testlib
chmod: changing permissions of 'Testlib': Read-only file system

I also tried 'chmod -rw Testlib', but it shows same result.

I am not sure where to look.

Any comments welcome.
 
Old 11-05-2008, 08:20 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 387Reputation: 387Reputation: 387Reputation: 387
Your filesystem is mounted as read only. You can't change anything on a volume that's mounted ro.

This can happen for many reaons:
  • you added the "ro" option into the relevant line of your fstab
  • there was some problem while booting, and you booted on single user mode with / mounted ro
  • you are trying to change permissions on a media that is r/o by nature (i.e. a cdrom)
 
Old 11-06-2008, 04:13 PM   #3
sungjoo.kim
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your reply.

Yes, I had a booting problem and I could get to command prompt using rescue mode in linux cd.

I copied all folders and files except this 'Testlib' file onto my windowXP machine using Winscp to copy them into new HDD.

I am not sure what I can do at this moment. I've gooled my problem but I could not find any problem like mine.
 
Old 11-06-2008, 04:19 PM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 387Reputation: 387Reputation: 387Reputation: 387
Quote:
Originally Posted by sungjoo.kim View Post
Thanks for your reply.

Yes, I had a booting problem and I could get to command prompt using rescue mode in linux cd.
Where does this Testlib directory resides? And what type is the partition?

If it resides into the windows partition, then permissions are not relevant since these partitions will not support linux permissions. If it resides in the linux partition and you booted on single user, then the root partition will be mounted read only as I said above.

In this caes, you will need to boot from a livecd, mount your root partition anywhere and then change the permissions or do whatever from there.
 
  


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
Changing permission of Win2000. akihandyman Mandriva 1 05-05-2007 04:50 PM
changing permission Baghdad Linux - Newbie 3 01-20-2006 01:18 AM
Strange permission issue. Problems changing ownership. ExCIA Linux - Newbie 6 05-26-2005 05:17 AM
Changing permission jaakkop Slackware 1 09-29-2004 01:08 PM
Changing permission. jaakkop Slackware 1 09-17-2004 02:41 PM

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

All times are GMT -5. The time now is 03:11 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