Linux - NewbieThis 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.
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.
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?
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?
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 :)
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.