[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problemi di permessi con una partizione NTFS



Ciao a tutti, sto provando a montare una partizione NTFS da utente
normale.

Alcune informazioni preliminari:

stefano@geppetto ~> uname -a
Linux geppetto 2.6.26-1-686 #1 SMP Sat Oct 18 16:22:25 UTC 2008 i686 GNU/Linux
stefano@geppetto ~> cat /etc/debian_version 
lenny/sid

La versione di ntfs-3g è 1.2531-1.1.
stefano@geppetto ~> ntfs-3g -h

ntfs-3g 1.2531 integrated FUSE 27 - Third Generation NTFS Driver

stefano@geppetto ~> dmesg
[...]
[391035.846205] usb 5-5: new high speed USB device using ehci_hcd and address 8
[391035.995246] usb 5-5: configuration #1 chosen from 1 choice
[391036.001234] scsi8 : SCSI emulation for USB Mass Storage devices
[391036.001321] usb-storage: device found at 8
[391036.001327] usb-storage: waiting for device to settle before scanning
[391036.003222] usb 5-5: New USB device found, idVendor=0bc2, idProduct=2000
[391036.003230] usb 5-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[391036.003233] usb 5-5: Product: FreeAgent Go
[391036.003235] usb 5-5: Manufacturer: Seagate
[391036.003239] usb 5-5: SerialNumber:             5LZ2WMQY
[391041.011735] usb-storage: device scan complete
[391041.016824] scsi 8:0:0:0: Direct-Access     Seagate  FreeAgent Go     100F PQ: 0 ANSI: 4
[391041.033197] sd 8:0:0:0: [sdb] 234441648 512-byte hardware sectors (120034 MB)
[391041.036193] sd 8:0:0:0: [sdb] Write Protect is off
[391041.036202] sd 8:0:0:0: [sdb] Mode Sense: 1c 00 00 00
[391041.036207] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[391041.037318] sd 8:0:0:0: [sdb] 234441648 512-byte hardware sectors (120034 MB)
[391041.040185] sd 8:0:0:0: [sdb] Write Protect is off
[391041.040194] sd 8:0:0:0: [sdb] Mode Sense: 1c 00 00 00
[391041.040198] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[391041.040203]  sdb: sdb1
[391041.054682] sd 8:0:0:0: [sdb] Attached SCSI disk

stefano@geppetto ~> sudo fdisk -l /dev/sdb

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa4b57300

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       14593   117218241    7  HPFS/NTFS


In /etc/fstab metto la linea:
/dev/sdb1       /media/usbdisk  auto,ntfs-3g  user,defaults       0 0

Non ho problemi a montare da root, invece da utente normale ottengo:
stefano@geppetto ~> mount /dev/sdb1
Error opening '/dev/sdb1': Permission denied
Failed to mount '/dev/sdb1': Permission denied
Please check '/dev/sdb1' and the ntfs-3g binary permissions,
and the mounting user ID. More explanation is provided at
http://ntfs-3g.org/support.html#unprivileged

La risorsa linkata sopra riporta:

|Why can't unprivileged users mount block devices?
|or
|Why do I get "fusermount: option blkdev is privileged" error?
|
|    Unprivileged block device mounts work only if all the below
|    requirements are met:
|
|       1. ntfs-3g is compiled with integrated FUSE support
|       2. the ntfs-3g binary is at least version 1.2506
|       3. the ntfs-3g binary is set to setuid-root
|       4. the user has access right to the volume
|       5. the user has access right to the mount point 
|
|    The root user can make an ntfs-3g binary setuid-root as shown
|    below
|      chown root $(which ntfs-3g)
|      chmod 4755 $(which ntfs-3g)
|
|    In such case the driver will also be able
|
|        * to fix common FUSE kernel module loading problems
|        * to create the required but sometimes incorrectly removed or missing FUSE device file 

Ho provato a settare il setuid bit per ntfs-3g, ottenendo gli stessi
risultati.

Qualcuno sa suggerirmi dove sto sbagliando?

Inoltre: i permessi di tutti i file nella partizione NTFS risultano
con permessi 777, ho provato a cambiarli con chmod ma senza risultato,
penso dipenda dalle caratteristiche del FS/modulo, qualcuno può
confermare?

Grazie in anticipo.

Saluti.


Reply to: