Bonjour,
Je voudrais monter mon HDD externe de façon à pouvoir lire/modifier/supprimer les fichiers qu’il contient sans devoir passer en root.
Voici ce que j’ai fait : [code]# fdisk -l
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa773a773
Device Boot Start End Blocks Id System
/dev/hda1 * 1 672 5397808+ 83 Linux
/dev/hda2 1294 4864 28684057+ 5 Extended
/dev/hda3 673 1293 4988182+ 83 Linux
/dev/hda5 1295 1425 1052257+ 82 Linux swap / Solaris
/dev/hda6 1426 4864 27623736 83 Linux
Partition table entries are not in disk order
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x12345678
Device Boot Start End Blocks Id System
/dev/sda1 * 1 30401 244196001 c W95 FAT32 (LBA)
$ mkdir /media/sda1
mkdir: ne peut créer le répertoire `/media/sda1’: Permission non accordée
$ su
Mot de passe :
mkdir /media/sda1
cd /media/sda1
chown pierre:pierre sda1
ls -l
total 16
lrwxrwxrwx 1 root root 6 avr 6 2008 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 avr 6 2008 cdrom0
lrwxrwxrwx 1 root root 7 avr 6 2008 floppy -> floppy0
drwxr-xr-x 2 root root 4096 avr 6 2008 floppy0
drwxr-xr-x 2 pierre pierre 4096 mar 21 11:36 sda1
mount /dev/sda1 /media/sda1/
chown -R -c pierre:pierre /media/sda1/
fichier : Opération non permise
.
.
.
[/code]Comment rendre mes fichiers contenus par mon HDD externe accessibles en simple utilisateur ?