PC Specs: Asus P6X58D Premium - Intel Core i7 930 - XFX Radeon 5750 HD Video Card - 12gb DDR3 Corsair XMS3 - (internal)750gb WD 6.0gbps - 1tb WD Green Caviar - NZXT Tempest Case - Dell 24" 1080p HD Monitor - Dell Stereo Soundbar.
Code:tim@tim:~$ sudo ls -l /media/tim/Home [sudo] password for tim: total 304 d-------w- 1 tim tim 0 Feb 19 2013 DCIM d-------w- 1 tim tim 4096 May 25 20:51 Documents d-------w- 1 tim tim 294912 Aug 27 19:29 Music d-------w- 1 tim tim 0 Feb 18 2012 PDF d-------w- 1 tim tim 12288 Jul 21 20:11 Pictures d-------w- 1 tim tim 0 Oct 2 2011 $RECYCLE.BIN d-------w- 1 tim tim 0 May 25 20:02 Videos
PC Specs: Asus P6X58D Premium - Intel Core i7 930 - XFX Radeon 5750 HD Video Card - 12gb DDR3 Corsair XMS3 - (internal)750gb WD 6.0gbps - 1tb WD Green Caviar - NZXT Tempest Case - Dell 24" 1080p HD Monitor - Dell Stereo Soundbar.
Now, when i click on that drive, i get a message saying i do not have the permission necessary to view the contents of "HOME".
PC Specs: Asus P6X58D Premium - Intel Core i7 930 - XFX Radeon 5750 HD Video Card - 12gb DDR3 Corsair XMS3 - (internal)750gb WD 6.0gbps - 1tb WD Green Caviar - NZXT Tempest Case - Dell 24" 1080p HD Monitor - Dell Stereo Soundbar.
It's easy to go back to the original. You just add this line back in...and comment out the line we are having trouble with. Like thisCode:/dev/sda1 /media/tim/Home ntfs defaults 0 0See the red hashes?Code:## UUID="F2ACF216ACF1D557" /media/tim/Home ntfs-3g rw,uid=1000,gid=1000,fmask=664,dmask=775 0 0
PC Specs: Asus P6X58D Premium - Intel Core i7 930 - XFX Radeon 5750 HD Video Card - 12gb DDR3 Corsair XMS3 - (internal)750gb WD 6.0gbps - 1tb WD Green Caviar - NZXT Tempest Case - Dell 24" 1080p HD Monitor - Dell Stereo Soundbar.
Change the permissions of dmask and fmask to fmask=137,dmask=027, `000` would give R-W-X
UUID=F2ACF216ACF1D557 /media/tim/Home ntfs-3g rw,auto,user,uid=1000,gid=1000,fmask=137,dmask=027 0 2
Your first step, learn the command line man intro man man man bash
Humm, mounting to a specif mount point, using fstab to set permissions (which could have just been done on a different mount point). Sounds suspiciously like what I stated to begin with......
The mounting to a specific mount point using fstab is not in question. The devil is in the details. Your statement is incorrect when you state "As far as I know, ALL file systems are owned by root.". That and lack of mentioning why the OP could not use chmod and chown on NTFS partitions were the 2 points I was making.
You (as root) can make mount points where ever you want in the file system. You can provide any owner to the mount point as long as you also provide at least read and execute (r-X) to the users "others" on the mount point. That way the all users will have access to that directory (mount point). On the other hand, if you don't specify the owner (UID/GID) and the explicit umask (fmask and dmask) when mounting an NTFS partition you may not have ownership and permissions as you expect them to be and you can't change them on the fly with chmod and chown.
I hope no one minds my usual interjection of comic relief but what further complicates this discussion is the unfortunate choice of /media/tim/moutpoint for the mountpoint location.
Look at the permissions of /media/tim ( remember this is Ubuntu 13.04 ) - and don't do it with a "ls -dl /media/tim" you will get the wrong answer, do it this way:
Only "tim" has access to that directory meaning only "tim" will have access to anything beyond it - doesn't matter what permissions are on the mount point itself.Code:getfacl -t /media/tim
Irrelevant side note at this point: this line in fstab did exactly what you told it to do:
umask, fmask, dmask represent permissions that you want removed from the mounted partition - not the permissions you want it to have. A newborn ntfs partition has all permissions set to 777 for both files and folders so what you told it to do is mount with folder permissions of:UUID="0E48C80248C7E715" /media/tim/Home ntfs-3g rw,uid=1000,gid=1000,fmask=664,dmask=775 0 0
777 - 775 = 002
You will have a directory that has no permissions at all for user and group and this odd write permissions for others which is what you ended up with.
Last edited by Morbius1; August 31st, 2013 at 01:48 PM.
Bookmarks