OVH Cloud OVH Cloud

FSTAB et DROITS

1 réponse
Avatar
Rasmey SAETH
Salut a tous,
Je tourne sur Gentoo/Linux et sur Windows2000, je partage un dossier sur
une partition FAT32. Mon probleme est qu'a chaque fois que je veux
modifier un fichier, j'ai des problemes de permissions. On m'affiche une
fenetre d'erreur et je dois clicker OK sans cesse dessus. Voila mon fstab:


# Partitions Windows
#/dev/hda1 /mnt/win2k ntfs user,exec,auto,ro,default,umask=000 0 0

/dev/hda1 /mnt/win2k ntfs user,auto,ro,umask=022 0 0

/dev/hda5 /mnt/fat-a vfat user,exec,auto,rw,default,umask=000 0 0

/dev/hdb7 /mnt/fat-b vfat user,exec,auto,rw,default,umask=000 0 0

/dev/hdb5 /mnt/fat-c vfat user,exec,auto,rw,default,umask=000 0 0

# Cles USB
/dev/sda1 /mnt/pendrive vfat user,exec,noauto,ro,default,umask=000 0 0

# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none /dev/shm tmpfs defaults 0 0

1 réponse

Avatar
thierry.rouillon
Rasmey SAETH nous a gentiment écrit:


# Partitions Windows
#/dev/hda1 /mnt/win2k ntfs user,exec,auto,ro,default,umask0 0 0

/dev/hda1 /mnt/win2k ntfs user,auto,ro,umask2 0 0

/dev/hda5 /mnt/fat-a vfat user,exec,auto,rw,default,umask0 0 0

/dev/hdb7 /mnt/fat-b vfat user,exec,auto,rw,default,umask0 0 0

/dev/hdb5 /mnt/fat-c vfat user,exec,auto,rw,default,umask0 0 0

# Cles USB
/dev/sda1 /mnt/pendrive vfat user,exec,noauto,ro,default,umask0 0
0

# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none /dev/shm tmpfs defaults


Pense à mettre des espaces entre les chiffres après umask=.
exemple umask=0 0 0 voir man fstab
Amitiés
--
Thierry de Champagne.