LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-22-2005, 01:07 PM   #1
vbguru12000
Member
 
Registered: Jan 2005
Location: Indiana, USA
Distribution: Debian
Posts: 48

Rep: Reputation: 15
help with permissions


I have just copied some files off of a secondary hard drive using mv. The only problem is I can't access them now. I can look in the folder if I'm logged in as root, but I can't do anything else. The permissions are set at -r----... I've tried "chmod a+rw *" and it says: "chmod: changing permissions of 'filename': Read-only file system. I then check the permissions and it's still the same. Anyone know what I'm doing wrong?
 
Old 01-22-2005, 01:14 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
You file system is mount as read-only. You have to mount is as read-write. What is the file system that the reside in? If it is an NTFS, you probually do not want to write to it.
 
Old 01-22-2005, 01:16 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It sounds like you have mounted the filesystem in readonly mode - check the output of "mount"
 
Old 01-22-2005, 01:16 PM   #4
vbguru12000
Member
 
Registered: Jan 2005
Location: Indiana, USA
Distribution: Debian
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tangle
You file system is mount as read-only. You have to mount is as read-write. What is the file system that the reside in? If it is an NTFS, you probually do not want to write to it.
The hard drive (/dev/hdb1) is NTFS. I just want to get all my music off of it because I'm replacing it with a bigger drive. How do I mount it as read-write then?
 
Old 01-22-2005, 01:19 PM   #5
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
The drive your files are on is probably NTFS, as I ran into the same problem after I installed Linux and tried to access some files from my other HD otherwise than root.
You can anyway set the permissions on the entire drive to whatever you want by editing the /etc/fstab file. Add a line like this:

/dev/hda5 /mnt/hda5 ntfs ro,user,uid=1001,umask=000 0 0

Note that here is a line from my fstab file and hda5 is the other HD in my situation. So change the line accordingly.
And be careful if you add the line at the end of the file, leave another line blank as the last line.
 
Old 01-22-2005, 01:21 PM   #6
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Looks like we posted at the same time
In this case, the line should be:
/dev/hdb1 /mnt/hdb1 ntfs ro,user,uid=1001,umask=000 0 0

P.S. check if the /mnt/hdb1 directory exists. If not, create it.

Last edited by harken; 01-22-2005 at 01:22 PM.
 
Old 01-22-2005, 01:21 PM   #7
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Just copy the music. You do not need write premission to copy.

To answer your question, /etc/fstab is where the mounting is handled.
 
Old 01-22-2005, 01:23 PM   #8
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Also, check the file permissions on the directory that the partition is mounted. That is if you want to enter it as non-root.
 
Old 01-22-2005, 01:26 PM   #9
vbguru12000
Member
 
Registered: Jan 2005
Location: Indiana, USA
Distribution: Debian
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tangle
Just copy the music. You do not need write premission to copy.

To answer your question, /etc/fstab is where the mounting is handled.
This is what I'm trying to do. Like I said though, I can't do anything with the copied music. Konquer shows the icons all with a little lock on them. And ls -l says they only have -r--- permission. And I can't change the permission (of the copied files).
 
Old 01-22-2005, 01:34 PM   #10
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
tangle, are you gonna celebrate the 1000th post? Maybe we get invited
 
Old 01-22-2005, 04:56 PM   #11
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Nah, 1000 posts is 1000 posts. My luck half of them where bad advice anyways, lol.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
Permissions jymmi Linux - Newbie 3 04-14-2005 11:43 PM
Permissions help reddog64 Linux - Newbie 1 04-22-2004 05:23 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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