LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-15-2005, 02:05 PM   #1
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
File permissions under NTFS


After installing Debian on a 2nd HD I tried to change some file permissions(as root) on the 1st HD (mounted as /mnt/hda5 - it's a logical partition): chmod 555 /mnt/hda5/some_file
but it keeps saying:
chmod: changing permissions of some_file: Read-only file system
The actual permissions are:
-r-------- 1 root root 21381 2005-01-01 21:18 some_file

Why? I think it has to do with the fact that the file system on hda5 is NTFS (it has on it Win XP). After all, I'm not changing permissions to rwx, only to rx. The same message I get with any code (444, 500, etc.)
I want to do this because I want to be able to read the file as a regular user, not only as root. Is there any way around?
 
Old 01-15-2005, 02:38 PM   #2
haoscar
LQ Newbie
 
Registered: Jul 2004
Posts: 24

Rep: Reputation: 15
I think, ntfs partitions are mounted read-only in Linux.

I use RH9 and have observed that they are mounted as read-only. I think only FAT-32 can be made rx but not ntfs.
 
Old 01-15-2005, 03:00 PM   #3
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Original Poster
Rep: Reputation: 30
I know that NTFS volumes are by default mounted as read-only (you can enable write access, but at your own risk). I was wondering why I can't change the permissions on a file for another user. After all, why the root can modify access levels on other files stored on an ext3 partition but on a NTFS one not?
 
Old 01-15-2005, 03:22 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Because NTFS knows nothing about Linux'
permissions ... to achieve what you want
one would have to re-write the ntfs driver
to store separate info about perms in some
other file and/or database which would be
a major pain in the neck :)



Cheers,
Tink
 
Old 01-15-2005, 03:22 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Because the partition is mounted read only. Changing permissions on a file requires being able to write to the partition (where do you think file permissions are stored?). Therefore, you can't change permissions on read only file systems. You can remount the permission with a different umask setting, though, which will have the same effect to all file on the permission.
 
Old 01-16-2005, 02:27 AM   #6
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Original Poster
Rep: Reputation: 30
Thanks, got it. Yet it would be nice to be able to listen to my favourite music(stored on NTFS drive) in Linux.
 
Old 01-16-2005, 12:30 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Well, that's not a big deal, and doesn't require
write-access to ntfs ... edit fstab and give the thing
a specific uid/gid in the mount parameters or change
the umask ... e.g.
/dev/hda3 /share ntfs user,rw,uid=1001,umask=000 0 0


Have a play with that...


Cheers,
Tink
 
Old 01-16-2005, 03:08 PM   #8
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Original Poster
Rep: Reputation: 30
Got it! Thanks Tinkster.
 
  


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
ntfs partition permissions trawler Linux - General 2 10-23-2005 06:27 PM
NTFS Permissions DirtyDan Linux - Networking 11 09-11-2005 10:03 PM
ntfs permissions Palamides Slackware 6 02-23-2005 08:42 PM
Permissions for NTFS partition MikTheUser Slackware 5 07-08-2004 08:41 PM
Preserve file permissions when copying from NTFS to a Samba share? somedude Linux - Software 4 06-11-2004 10:20 AM

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

All times are GMT -5. The time now is 03:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration