LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Windows XP NTFS files and folders edit permissions (https://www.linuxquestions.org/questions/linux-general-1/windows-xp-ntfs-files-and-folders-edit-permissions-743005/)

james2b 07-26-2009 11:36 PM

Windows XP NTFS files and folders edit permissions
 
When the windows XP partition is mounted during most of my Linux boot up, it is by root. So if I want to edit or create a text file in my ntfs XP, from a Linux, the XP mount folder must have the full read, write, execute permissions, right ? If it is not that, then access is denied error comes up when attempting to save a file. Do I do this in a terminal as root, with the chmod command either for the whole windows folder which is the mount point, or for each separate file I wish to edit, right ?

micxz 07-26-2009 11:59 PM

I thought this article was interesting:
http://bisqwit.iki.fi/story/howto/ntfs/
From last year so things may have changed. But I would do some more research before trying to write to NTFS. And always make a backup.

james2b 07-27-2009 04:44 AM

I do have the ntfs-3g driver and support files installed in all 5 of my Linux. When I did try to edit a windows XP text file from PCLinux 08 it did work, since the permissions are set to all 3, r,w,x, (read write, execute) for the mount point folder. But in the Open SUSE 11 it has some other user group security settings to change with the Yast Configuration tool. I did find out that I needed to add the "disk group" to my user to have mount access rights in SUSE. And so now it said online at; http://www.ntfs-3g.org/ , to make the ntfs-3g binary set to this here; setuid-root, and then gave the chown and chmod commands in a way that I did not really understand fully. So in a terminal as root how do I set that ntfs-3g to setuid-root in order to have my unprivileged user be able to mount and unmout my windows XP partition, and hopefully edit files ?

micxz 07-27-2009 01:06 PM

To setuid: "chmod u+s binaryfile" and of course the file must be owned by root if you want it to run as root. Whoever it's own by it runs as.

But I would suggest you just use sudo instead for this rather then making binaries execute as root.

james2b 07-28-2009 02:22 PM

Edit XP files and save changes from Open SUSE does now work. I did edit my /etc/fstab file for the windows XP partition mount permissions. And thanks for the help. And after adding the NTFS configuration tool into my Fedora 9, it also allowed this XP file edit to succed. Next I will test my Ubuntu 8.04 for this full ntfs-3g write support, then Slackware too. Is there a terminal command to check if the ntfs-3g is setuid-root ?

micxz 07-28-2009 03:16 PM

As I said before have a backup. I'm not sure I trust writting to ntfs yet from what I've read.

ls -l /bin/ntfs-3g will show you the permissions on the file then look for "rws" instead of the first "rwx" if it's there it's setuid.

micxz 07-28-2009 03:20 PM

Also checkout this thread:
http://www.linuxquestions.org/questi...-drive-743459/


All times are GMT -5. The time now is 06:13 PM.