LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-26-2009, 11:36 PM   #1
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Ubuntu Mate 18.04, Mint 19.1
Posts: 360

Rep: Reputation: 45
Smile 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 ?
 
Old 07-26-2009, 11:59 PM   #2
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
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.
 
Old 07-27-2009, 04:44 AM   #3
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Ubuntu Mate 18.04, Mint 19.1
Posts: 360

Original Poster
Rep: Reputation: 45
Cool

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 ?
 
Old 07-27-2009, 01:06 PM   #4
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
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.

Last edited by micxz; 07-27-2009 at 01:08 PM. Reason: added ofcourse ...whoever...
 
Old 07-28-2009, 02:22 PM   #5
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Ubuntu Mate 18.04, Mint 19.1
Posts: 360

Original Poster
Rep: Reputation: 45
Thumbs up

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 ?
 
Old 07-28-2009, 03:16 PM   #6
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
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.
 
Old 07-28-2009, 03:20 PM   #7
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

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


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to edit files with the ntfs-3g and Windows XP in a multiple boot system james2b Linux - Newbie 2 08-12-2009 11:21 PM
Group Permissions and Ownership of files and folders bugeyemonster Linux - General 1 04-19-2006 01:52 AM
permissions of files and folders binary_dreamer Linux - General 2 04-05-2006 11:13 PM
view/edit Windows folders/files in Fedora 2 or 4 kkeith Linux - Networking 3 10-13-2005 01:19 PM
NTFS- cannot alter permissions of files, only folders tomranson Linux - General 2 10-19-2003 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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