Results 1 to 10 of 10
Hi,
I would appreciate someone could help me on changing access right of file system.
I log in as root but whenever I tried to edit a file in the ...
- 02-05-2007 #1Just Joined!
- Join Date
- Feb 2007
- Posts
- 5
Changing access right to file system
Hi,
I would appreciate someone could help me on changing access right of file system.
I log in as root but whenever I tried to edit a file in the /etc directory, I got error msg indicating that the file permission is read only. When I tried to the the file permission with command " chmod 777 filename", the same error appear. I also can't change the rights for the /etc directory. Which belongs to root. Current the permission for /etc directory is drwxr-xr-r.
Appreciate someone could provide some advice. Thank you in advance.
Francis
- 02-05-2007 #2Linux User
- Join Date
- Jan 2007
- Location
- cleveland
- Posts
- 452
welcome to the forum
> I log in as root but whenever I tried to edit a file in
> the /etc directory, I got error msg indicating that the
> file permission is read only.
with a normal installation, this will not happen. SFIK, only Ubuntu
fails to create a root user: "sudo passwd root" is the fix.the sun is new every day (heraclitus)
- 02-05-2007 #3
Are you in "Rescue" mode? If so, files are read only.
- 02-06-2007 #4Just Joined!
- Join Date
- Feb 2007
- Posts
- 5
When I tried to change the password, I got "Cannot lock password file: already locked"
I am not in rescue mode.
- 02-06-2007 #5Just Joined!
- Join Date
- Jan 2007
- Location
- South Africa
- Posts
- 22
Check if your filesystem is mounted read-write or read-only
- 02-07-2007 #6Just Joined!
- Join Date
- Feb 2007
- Posts
- 5
I am new in Linux. please advise how can I check?
Thanks
- 02-07-2007 #7Linux Enthusiast
- Join Date
- Jul 2005
- Location
- Maryland
- Posts
- 521
type:
Originally Posted by francisleesc
and look for line that refers to / .Code:mount
It looks something like this:
The "rw" means it is mounted with "read and write" permissions.Code:/dev/hda1 on / type ext3 (rw,errors=remount-ro)
If it's "ro" then it's mounted with "read only" permissions
- 02-07-2007 #8Just Joined!
- Join Date
- Feb 2007
- Posts
- 5
Yes it was mounted with read-only permission on those directories/files that I need to change.
So how can I change to read-write?
thank again
- 02-07-2007 #9Just Joined!
- Join Date
- Feb 2007
- Location
- South Africa
- Posts
- 5
I dont see any mention of your distro - is it a "Live CD"??
In other words are you booting into Linux from a CD.
- 02-08-2007 #10Just Joined!
- Join Date
- Feb 2007
- Posts
- 5
thanks all, I managed get around by issue 'mount -o remount,rw /'


Reply With Quote