[gull] smbmnt

Pierre Maitre maitre at cdg.ch
Sun Oct 5 00:04:01 CEST 2003


Bonsoir

Ce n'est pas un bien grave problème, mais ça m'agace de ne pas comprendre.
Quelqu'un peut-il m'expliquer pourquoi je ne peux pas monter une 
partition en tant que user alors que le point de montage, appartenant à 
root, a 777 comme permission:

maitre at anesth1:/$ cat /etc/fstab | grep bloc
\\svr01\agenda  /bloc  smbfs
      noauto,user,username=maitre,passwd=blabla 0 0
maitre at anesth1:/$ ls -ld /bloc
drwxrwxrwx  2 root root  4096 fév 8 2003   /bloc
maitre at anesth1:/$ mount /bloc
cannot mount on /bloc: Operation not permitted
smbmnt failed: 1
maitre at anesth1:/$ su
Password:
anesth1:/# chown maitre.anesth /bloc
anesth1:/# exit
exit
maitre at anesth1:/$ ls -ld /bloc
drwxrwxrwx  2 maitre anesth  4096 fév 8 2003  /bloc
maitre at anesth1:/$ mount /bloc
maitre at anesth1:/$ ls /bloc
AGENDA2003



Petite vexation supplémentaire: pour umount, je croyais avoir compris 
que l'option "user" dans fstab permettait aussi à l'utilisateur de 
"dé-monter" le volume.
Eh bien il semble que non:

maitre at anesth1:/$ umount /bloc
umount: /bloc mount disagrees with the fstab
maitre at anesth1:/$
maitre at anesth1:/$ su
Password:
anesth1:/# umount /bloc
anesth1:/#

Merci d'avance aux gourou[sx]

Pierre Maitre


-- 
Dr Pierre-O. Maitre
Privat Docent
FMH Anesthésiologie
FMH Pharmacologie Clinique
Cabinet médical / A la Joy
CH-1272 Genolier Switzerland

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: InterScan_Disclaimer.txt
URL: <http://forum.linux-gull.ch/pipermail/gull/attachments/20031005/b967b64d/attachment.txt>


More information about the gull mailing list