I'm a little confused. I have all my data on a hard disk that is NTFS. Partly because it's a left over from Win7 and partly to be able to dual boot back into Win7. (Yeah, I use it for Sony Vegas Pro. There nothing like that in Linux yet.) Mostly that works very well with no problems. However, I have one program with a quirky problem.
CmapTools is a Java program for concept mapping - that I love. It runs just fine. I even saves files to the NTFS disk without problems. However, it won't export to the disk. It has the ability to export PDF, JPG, SVG, and several other formats. It thinks that the permissions are wrong. Well, everything on the NTFS drive shows owned by root. This doesn't seem to be a problem for anything but this program's export.
I'm just wondering if there is some special permission issues with Java and programs that run under it. Is anything special or different going on here?
Thanks,
Clyde
Java, permissions, & NTFS
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Java, permissions, & NTFS
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Java, permissions, & NTFS
Yes, me too. Edit /etc/fstab. Your NTFS line should look similar to this:LughClyde wrote:It thinks that the permissions are wrong.
UUID=02782D66782D59A5 /e-windows ntfs defaults 0 0
Re: Java, permissions, & NTFS
Thanks for the reply.
That line looks like this:
#Entry for /dev/sdb1 :
UUID=389C10599C10144A /media/Stuff ntfs-3g defaults,nosuid,nodev,locale=en_US.utf8 0 0
What parts should I delete?
Thanks,
Clyde
That line looks like this:
#Entry for /dev/sdb1 :
UUID=389C10599C10144A /media/Stuff ntfs-3g defaults,nosuid,nodev,locale=en_US.utf8 0 0
What parts should I delete?
Thanks,
Clyde
Re: Java, permissions, & NTFS
nosuid,nodev. If you want to know what they are/do see here. Mine looks like this:
And something else. Check the ownership of the mount point "/media/Stuff", and If it is owned by root, change the ownership to your login name. Assuming your login name is clyde, do
altair4 correctly reminded me (please see next post) that "chown" or "chmod" has no affect on NTFS partitions. So, the above would only be correct if the drive had been formatted with ext2 or ext3 file system.
Code: Select all
UUID=9498234498232468 /d-windows ntfs-3g defaults,nls=utf8 0 0
Code: Select all
sudo chown -R clyde:clyde /media/Stuff
touch /media/Stuff/testing
ls -la /media/Stuff
Last edited by mads on Tue Dec 14, 2010 12:25 pm, edited 1 time in total.
Re: Java, permissions, & NTFS
There's something I don't understand in all this.
Can you export to something in your home folder or some other linux formatted partition and see what the resulting ownership / permissions are?
That will produce a mount point at /media/Stuff which has ownership:group = root:root and permissions of 777 meaning everyone has read / write access. And apparently it works:UUID=389C10599C10144A /media/Stuff ntfs-3g defaults,nosuid,nodev,locale=en_US.utf8 0 0
Not having any idea what CmapTools is or what it does, I'm wondering if CmapTools is attempting to alter the permissions on the export. That's not going to work. Linux can't change the ownership or permissions on an NTFS partition without an explicit mount or in fstab. "chown" or "chmod" has no affect on NTFS. If you wanted to take ownership of the mount point for example you would have to alter the fstab entry to look like this:CmapTools is a Java program for concept mapping - that I love. It runs just fine. I even saves files to the NTFS disk without problems. However, it won't export to the disk.
Where uid=1000 would be you.UUID=389C10599C10144A /media/Stuff ntfs-3g defaults,uid=1000,nosuid,nodev,locale=en_US.utf8 0 0
Can you export to something in your home folder or some other linux formatted partition and see what the resulting ownership / permissions are?
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Java, permissions, & NTFS
altair4 wrote:Linux can't change the ownership or permissions on an NTFS partition without an explicit mount or in fstab. "chown" or "chmod" has no affect on NTFS.
Sorry, you are quite right. What I wrote in the last part of my previous post, would only have been correct if the drive was formatted with ext2 or ext3 file system.
Re: Java, permissions, & NTFS
Thank everyone.
Alas, it didn't work. I added "uid=1000" and for good measure "gid=100" so my wife can get to /media/Stuff too. The whole partition is now 777 for me and "users". OK, it partially worked. All the text based export formats will now export just fine into Stuff. However, JPG, PDF, SVG, and other more complex exports still won't work.
However, this tells me that it's a problem with CmapTools and not Julia. So, I'm going to call this one solved, as it is from the viewpoint of this forum.
Thanks,
Clyde
PS - My daughter is named "Julia". Alas, Julia doesn't use Julia, but her husband does.
Alas, it didn't work. I added "uid=1000" and for good measure "gid=100" so my wife can get to /media/Stuff too. The whole partition is now 777 for me and "users". OK, it partially worked. All the text based export formats will now export just fine into Stuff. However, JPG, PDF, SVG, and other more complex exports still won't work.
However, this tells me that it's a problem with CmapTools and not Julia. So, I'm going to call this one solved, as it is from the viewpoint of this forum.
Thanks,
Clyde
PS - My daughter is named "Julia". Alas, Julia doesn't use Julia, but her husband does.