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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-15-2005, 01:05 PM
|
#1
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Rep:
|
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?
|
|
|
01-15-2005, 01:38 PM
|
#2
|
LQ Newbie
Registered: Jul 2004
Posts: 24
Rep:
|
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.
|
|
|
01-15-2005, 02:00 PM
|
#3
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Original Poster
Rep:
|
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?
|
|
|
01-15-2005, 02:22 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
01-15-2005, 02:22 PM
|
#5
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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.
|
|
|
01-16-2005, 01:27 AM
|
#6
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Original Poster
Rep:
|
Thanks, got it. Yet it would be nice to be able to listen to my favourite music(stored on NTFS drive) in Linux.
|
|
|
01-16-2005, 11:30 AM
|
#7
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
01-16-2005, 02:08 PM
|
#8
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Original Poster
Rep:
|
Got it! Thanks Tinkster.
|
|
|
All times are GMT -5. The time now is 01:59 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|