LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-18-2003, 01:54 PM   #1
nyroc
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Rep: Reputation: 0
why is my mounted drive read only?


User cannot write or delete anything from my second hard drive.

it is a 45 gb drive on the secondary ide ribbon, formatted with ext3. Only root can write to it. I can't find the answer to why a user cant write. The user can read. When I su and chmod, chown, and even chgrp files and folders to "user, user and, 777", user can't delete anything. Root can delete. user's uid is 500 and his account does not have any special changes made to it.

This is all done from the console, from a shell, in RH8. There is one other drive mounted a / that has /boot and swap on it too.



here is my fstab entry the mount point is /data:

/dev/hdc1 /data ext3 defaults 1,1

the entry for / is similar, and "user" can write or delete anything that is 777 (for exampe), or he owns (with 755 for example) or anything the is group "user" and is 775. Everthing is fine on this drive, but not the other one.

rm file.txt
rm: remove write-protected regular file `file.txt'? y
rm: cannot remove `file.txt': Permission denied


this is the file's long listing
ll file.txt
-rwxrwxrwx 1 user user 1331200 Sep 16 11:20 file.txt

id -a user
uid=500(user) gid=48(apache) groups=48(apache),25(named),501(sudoers)


Thanks.
 
Old 01-18-2003, 04:23 PM   #2
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
You must have write permission on the directory containing the file(s) to delete them.
 
Old 01-18-2003, 07:24 PM   #3
nyroc
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Original Poster
Rep: Reputation: 0
Hmm, your right. It works. I am new to linux and the parent directory's permission never crossed my mind. I noticed /tmp is 777.

Thanks very much.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba mounted drive to read-only (???) JordanH Linux - Software 0 07-31-2004 10:27 PM
root fs is mounted read only after adding new drive PPaladin Linux - Hardware 0 03-02-2004 11:25 AM
Why partimage cannot read a mounted drive? browny_amiga Linux - General 4 02-06-2004 11:33 AM
Can't read mounted drive mabarnes Linux - Newbie 4 12-19-2003 11:36 PM
Mounted drive read-only! MultiMike Linux - Newbie 8 06-09-2003 05:21 PM

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

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