Forums Rue-Montgallet.com
Rue-Montgallet.comRue-Hardware.comRue-Occasion.comRue-DVD.comRue-Jeuxvideo.comRue-AudioVideo.comRue-Telephone.comForums
S'inscrire | S'identifier |
| Recherche avancée | Aide
 
 

9 utilisateurs inconnus

 Mot :   Pseudo :  
 
Bas de page
Auteur
 Sujet :

confidentialité d'un dossier

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

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
n°19446
P-Y
Intermittent du troll
Profil : Vieux de la vieille
Posté le 18-04-2006 à 18:24:59  profilanswer
 

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


---------------
"Comme la Hongrie, le monde informatique a une langue qui lui est propre. Mais il y a une différence. Si vous restez assez longtemps avec des Hongrois, vous finirez bien par comprendre de quoi ils parlent."
[:zzzinv][url=http://www.mozilla-europe.
n°19448
sunshine12​1
Profil : Jeune recrue
Posté le 18-04-2006 à 18:28:44  profilanswer
 

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
Intermittent du troll
Profil : Vieux de la vieille
Posté le 18-04-2006 à 19:06:51  profilanswer
 

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


---------------
"Comme la Hongrie, le monde informatique a une langue qui lui est propre. Mais il y a une différence. Si vous restez assez longtemps avec des Hongrois, vous finirez bien par comprendre de quoi ils parlent."
[:zzzinv][url=http://www.mozilla-europe.
n°19453
01iv'
Profil : Membre
Posté le 18-04-2006 à 19:09:39  profilanswer
 

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  profilanswer
 

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  profilanswer
 

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  profilanswer
 

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
Intermittent du troll
Profil : Vieux de la vieille
Posté le 26-04-2006 à 17:23:32  profilanswer
 

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


---------------
"Comme la Hongrie, le monde informatique a une langue qui lui est propre. Mais il y a une différence. Si vous restez assez longtemps avec des Hongrois, vous finirez bien par comprendre de quoi ils parlent."
[:zzzinv][url=http://www.mozilla-europe.
n°19522
sunshine12​1
Profil : Jeune recrue
Posté le 27-04-2006 à 10:01:54  profilanswer
 

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


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

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


---------------
"Comme la Hongrie, le monde informatique a une langue qui lui est propre. Mais il y a une différence. Si vous restez assez longtemps avec des Hongrois, vous finirez bien par comprendre de quoi ils parlent."
[:zzzinv][url=http://www.mozilla-europe.
n°19524
sunshine12​1
Profil : Jeune recrue
Posté le 27-04-2006 à 10:50:02  profilanswer
 

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


---------------
Mieux vaut tard que jamais

Aller à :
Ajouter une réponse