Solved

Mount NTFS Drive - Permission Denied to Open

Posted on 2004-10-11
14
1,315 Views
Last Modified: 2008-01-09
I am trying to find a way to mount my NTFS drive under my standard user ID.  I can mount it and access it under root with no problems.  When I mount it under my standard user ID I don't have sufficient permissions to view the contents of the drive.  I have tried to change the permissions of the device by typing chmod 666 /dev/hda, but that didn't fix the issue.  I don't have to access data very often, but it is very inconvenient to log in as root just to access a file.
0
Comment
Question by:aaeandcee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 6
14 Comments
 
LVL 10

Expert Comment

by:Luxana
ID: 12283088
Hi

One is that you need to configure /etc/fstab
For example entry in my /etc/fstab :
/dev/hda4          /mnt/ntfs                            ntfs           noauto,users               0     0

cause mount and unmount  /dev/hda4 for all users.
so

option users allows any user to mount and unmount the filesystem.
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12283508
just for more info about how to mount NTFS here is link:

http://www.justlinux.com/nhf/Filesystems/Mounting_NTFS_Filesystems.html
0
 

Author Comment

by:aaeandcee
ID: 12285517
I can successfully mount the drive, what I am having problems doing is gaining access to the mount folder.  The message I get as an ordinary user is:  

"The folder contents could not be displayed"  "You do not have the permissions necessary to view the contents of "ntfs".

0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 10

Expert Comment

by:Luxana
ID: 12285673
what is you absolute path for mounting ntfs partition?

make sure that your users have parmition in parrent directories as well !! When you get into mounted directory like root to who belongs files and directories?
0
 

Author Comment

by:aaeandcee
ID: 12286287
I've tried creating the mount point under /home/myname/ntfs as well as /mnt/ntfs and both have given me denied messages.  
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12286562
for mount use command :

# mount /dev/hdaX -t ntfs -o ro,users,umask=0007,gid=1000 /mnt/ntfs

or

/etc/fstab options like this?

ro,user,noauto,umask=0007,gid=1000

so whole line will look like :

/dev/hdaX       /mnt/ntfs      ntfs    ro,users,noauto,umask=0007,gid=1000        0       0


then

#mount /mnt/ntfs

0
 

Author Comment

by:aaeandcee
ID: 12291629
I still can't access the drive.  
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12292129
paste here exactly what you doing and output from
# fdisk -l
and also error message what you get when you attempt accese mountet ntfs filesystem.
0
 

Author Comment

by:aaeandcee
ID: 12292468
The line in the FSTAB that references the NTFS drive is exactly as follows:
/dev/hda1             /mnt/ntfs                  ntfs    ro,users,noauto,umask=0007,gid=1000      0 0

I have created a directory under /mnt named ntfs

From a comand prompt I issue mount /mnt/ntfs

When I go to access the drive I get the following error:

"The folder contents could not be displayed"  "You do not have the permissions necessary to view the contents of "ntfs"

If I log in as root I have full access to the drive, but when I log in as an ordinary user I am able to map but unable to access.

The fdisk command refuses to run under my user account.
0
 

Author Comment

by:aaeandcee
ID: 12292493
I logged in as root and was able to execute the fdisk command.

[root@localhost root]# fdisk -l
 
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1        9729    78148161    7  HPFS/NTFS
 
Disk /dev/hdb: 30.7 GB, 30736613376 bytes
16 heads, 63 sectors/track, 59556 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1       59556    30016192+  83  Linux
 
Disk /dev/sda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3315    26627706    7  HPFS/NTFS
/dev/sda2            3316       13004    77826892+   7  HPFS/NTFS
/dev/sda3           13005       13017      104422+  83  Linux
/dev/sda4           13018       14946    15494692+   f  W95 Ext'd (LBA)
/dev/sda5           13018       14692    13454406   83  Linux
/dev/sda6           14693       14946     2040223+  82  Linux swap
 
Disk /dev/sde: 8 MB, 8110080 bytes
2 heads, 16 sectors/track, 495 cylinders
Units = cylinders of 32 * 512 = 16384 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sde1   *           1         494        7891+   1  FAT12
[root@localhost root]#

0
 
LVL 10

Expert Comment

by:Luxana
ID: 12295020
did try get in to /mnt/ntfs directory like normal user before you mount ntfs filesystem? try if you have read read write permitions.
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12296643
hi

this permitions problems appears only with ntfs filesystem?
0
 

Author Comment

by:aaeandcee
ID: 12296991
Yes, I have full read and write ability to the folder--just tested it.

Yes, only with the NTFS partition.  I have a memory card and memory stick drive (both formatted with fat), as well as an ext3 formatted drive.  I can access all those drives with no problems.
0
 
LVL 10

Accepted Solution

by:
Luxana earned 50 total points
ID: 12297267
try different umask for other read and write:

# mount /dev/hdaX -t ntfs -o ro,users,umask=0000,gid=1000 /mnt/ntfs  

and also try without gid

# mount /dev/hdaX -t ntfs -o ro,users,umask=0000 /mnt/ntfs  



0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
perl/awk/sed 7 27
can i read my emails on lamp ftp 4 71
ossec: how to extend rules 1002 and 1003 2 46
change password for AD retention policy and Citrix 2 91
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question