LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-16-2004, 04:28 PM   #1
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Rep: Reputation: 52
read-only access to my own /home files


okay. I'll start by saying that this is a problem of my own making. I'm sure of that
I wiped Mandrake 10 from my system and replaced it with Debian --- all is fine excpet for my /home files. I have moved them around a lot ----- from hdb to hda but now they are secure on / ---- also they are copied to /oldhome. I want to remove all of /home and mount /dev/hda3 as /home and copy /oldhome to /home. I feel it is necessary to remove the contents of /home before I do this ----- but I can't. I'm told I only have read-only access to the files ---- this happens as user and as root. I can' t get rid of any of the files. It's very frustrating. I've tried {chown root /home/user} where user is the user account name of the files in question. I've tried {chown user /home/user} --- is this because I created my home in Mandrake 10??? Please advise before I go bonkers. Thanks
 
Old 07-16-2004, 04:32 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You should be able to do it as root - IF YOU ARE VERY SURE YOU WANT TO DO THIS!
rm -rf /home

If you get an error - can you post the exact output.
 
Old 07-16-2004, 04:40 PM   #3
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
I realise that -rf is very frightening --- can I do rm -rf /home/whatever ??
 
Old 07-16-2004, 04:42 PM   #4
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
Well --- I tried rm -rf /home/user but was told ----- "can't --- Read Only" or words to that effect.
 
Old 07-16-2004, 04:52 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Considering you didn't actually give any more information than we already got from your first post it's pretty difficult to tell what went wrong - just check your file permmissions and see if the partition is mounted in read write.
 
Old 07-16-2004, 05:00 PM   #6
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
well -- at the moment, the partition is / and it is the default /home of a new install. i just copied the old /home files there from /hdb1. The problem is with my own user account --- everyone else (two other users!) has been removed. I'll check whether /home/user is mounted rw but there are other files there --- such as kde-user kde-userrSOdn6 ksocket-user ksocket-userabU464 mcop-user user --- where user = errr user I've never noticed these files in /home before.
 
Old 07-16-2004, 05:54 PM   #7
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
look at your ls -laF and see what the responce is. if you only have r straight across then there is something fishy going on as once you chown root path and then chmod 777 or 755 or how ever you want to set it for root you should be set.
 
Old 07-16-2004, 10:27 PM   #8
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Esteeven,
It seens you have this file system mounted read only. As root, enter "mount". It will show you all the mounted partitions, In the end of the line, you will see (rw) or (ro). If it's ro neither root can do anything.
If it is this case, you must look "/etc/fstab" to see if you are ordering this, or there are any problem during the system start up, which remounts the partition as (ro).
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mozzla problems-can not read files online, can not read attachments sarajevo Linux - Software 1 09-20-2005 06:58 PM
access to read only files absalon Linux - Newbie 4 06-22-2005 06:31 AM
home directory files gone, hidden files remain Grasshopper Linux - Security 12 04-10-2005 08:23 PM
/home partition changed to read-only file system! Echo Kilo Linux - Software 1 03-30-2005 01:59 PM
How program to read files with extension .dat y .cfg files COMTRADE in fedora 1? ivonne Linux - Software 0 11-22-2004 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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