LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 01: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, 01: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, 02: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, 02:22 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 02:22 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 01: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, 11:30 AM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 02: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



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

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

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