On Saturday, January 17, 2015 4:59 PM, Nico Kadel-Garcia 
<[email protected]> wrote:
   
>What does 'not accessible' mean? Where is the content showing up, and
>what are the permissions of the mounted directory? If you have it
>mounted by a hardcoded entry in /etc/fstab, show your entyr.


Anyway.... I unmount the drive and remount for another user. Now there is a new 
problem and that is other users are able to read/write it!

1) The mount procedure

    Disk /dev/sde: 2000.4 GB, 2000365289472 bytes
    255 heads, 63 sectors/track, 243197 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x2a81c1e9

       Device Boot      Start         End      Blocks   Id  System
    /dev/sde1               1      243198  1953480704    7  HPFS/NTFS

    [root@tiger media]# mount -t ntfs-3g -o 
uid=mahmood,gid=mahmood,rw,umask=0000 /dev/sde1 /media/HDD
    [root@tiger media]# ls -l
    total 8
    drwxrwxrwx. 1 mahmood mahmood 4096 Jan 17 10:19 HDD


2) With the user, mahmood, everything is fine.

3) With another user, the folder is accessible also!!

    [root@tiger media]# su - hadoop
    [hadoop@tiger ~]$ mkdir /media/HDD/hfolder
    [hadoop@tiger ~]$


4) Thing is, chmod command doesn't work either

    [mahmood@tiger media]$ ls -l
    total 8
    drwxrwxrwx. 1 mahmood mahmood 4096 Jan 17 12:26 HDD
    [mahmood@tiger media]$ chmod -R 700 /media/HDD/
    [mahmood@tiger media]$ su - hadoop
    Password:
    [hadoop@tiger ~]$ mkdir /media/HDD/hfolder2
    [hadoop@tiger ~]$

Isn't strange?

 Regards,
Mahmood


   

Reply via email to