Ce forum est maintenant fermé, seule cette archive statique reste consultable.
  FORUM Rue-Montgallet.com
  OS alternatifs
  Linux

  confidentialité d'un dossier

Bas de page
Auteur Sujet :

confidentialité d'un dossier

n°19444
sunshine12​1
Profil : Jeune recrue
Posté le 18-04-2006 à 15:26:14  
 

Bonjour,
J'ai un dossier sous windows que j'ai rendu accessible seulement aux groupes d'administrateurs. Le problème c'est que ce dossier est accessible depuis Linux (quand je monte la partition windows sous Linux). Y-a-t-il une solution pour que ce dossier soit inaccessible depuis Linux? (je suis sous RedHat Entreprise Linux Ver3)


---------------
Mieux vaut tard que jamais
mood
Pub
Posté le 18-04-2006 à 15:26:14  
 

n°19446
P-Y
Profil : Vieux de la vieille
Posté le 18-04-2006 à 18:24:59  
 

quand tu le montes sous linux, tu peux faire un petit script avec un find et un chmod pour mettre les bonnes permissions, afin qu'il ne soit lisible que par un certain groupe


---------------
Le trikapalanet
n°19448
sunshine12​1
Profil : Jeune recrue
Posté le 18-04-2006 à 18:28:44  
 

je suis assez débutante pour comprendre ces trucs, tu peux m'envoyer un exemple de script stp?


---------------
Mieux vaut tard que jamais
n°19452
P-Y
Profil : Vieux de la vieille
Posté le 18-04-2006 à 19:06:51  
 

supposant que la parition soit dans /mnt/win et que le groupe d'admins soit "wheel" , tu fais un truc du genre:
 
mount /dev/hdaX /mnt/win
chown -R root:wheel /mnt/win
find /mnt/win -type f -exec chmod 640 {} \;
find /mnt/win -type d -exec chmod 750 {} \;
 
ou bien alors, tu edites le /etc/fstab pour passer en parametre les droits lors du montage:
 
/dev/hdaX               /mnt/win      vfat            uid=X,gid=X,umask=027   0 0
 
en remplacant uid et gid par les bonnes valeurs


---------------
Le trikapalanet
n°19453
01iv'
Profil : Membre
Posté le 18-04-2006 à 19:09:39  
 

ou alors tu peux aussi utiliser les options gid,uid ou umask de mount ;)
 
Oliv'

n°19459
sunshine12​1
Profil : Jeune recrue
Posté le 19-04-2006 à 09:01:02  
 

merci à tous
Oliv', tu peux donner un exemple stp (avec umask de mount)?


---------------
Mieux vaut tard que jamais
n°19464
01iv'
Profil : Membre
Posté le 19-04-2006 à 18:21:09  
 

en fait c'est la deuxième solution que t'as proposé P-Y :p
en ligne de commande pour faire des tests avant de mettre le tout dans le /etc/fstab:

mount /dev/hdaX -t vfat -o uid=X,gid=X,umask=027 /mnt/win


à noter que umask fonctionne en complémentaire par rapport aux permissions de chmod. C'est à dire que "chmod 777" est équivalent à "umask=000"
 
Oliv'

n°19517
sunshine12​1
Profil : Jeune recrue
Posté le 26-04-2006 à 15:01:53  
 

P-Y a écrit :


find /mnt/win -type f -exec chmod 640 {} \;


j'ai les messages d'erreur suivants
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.
chmod: too few arguments
Try `chmod --help' for more information.


---------------
Mieux vaut tard que jamais
n°19518
P-Y
Profil : Vieux de la vieille
Posté le 26-04-2006 à 17:23:32  
 

et si tu fais juste un find /mnt/win -type f ca donne quoi?


---------------
Le trikapalanet
n°19522
sunshine12​1
Profil : Jeune recrue
Posté le 27-04-2006 à 10:01:54  
 

ça donne une liste de fichiers se trouvant sous ce répertoire


---------------
Mieux vaut tard que jamais
n°19523
P-Y
Profil : Vieux de la vieille
Posté le 27-04-2006 à 10:14:37  
 

Ben dans ce cas, je comprends pas pourquoi ca marche pas [:humanrage]


---------------
Le trikapalanet
n°19524
sunshine12​1
Profil : Jeune recrue
Posté le 27-04-2006 à 10:50:02  
 

excusez-moi, j'ai commis une grave erreur, j'ai oublié un espace dans ma commande


---------------
Mieux vaut tard que jamais
  FORUM Rue-Montgallet.com
  OS alternatifs
  Linux

  confidentialité d'un dossier

© 2000-2024 Forum.rue-montgallet.com - Tous droits réservés