smbmount als Benutzer

Florian Lohoff flo at rfc822.org
Tue Feb 4 11:37:01 CET 2003


On Tue, Feb 04, 2003 at 10:52:15AM +0100, Jan-Benedict Glaw wrote:
> On Tue, 2003-02-04 10:42:34 +0100, Ralph Meyer <ralph at schose.dyndns.org>
> wrote in message <1772.193.159.98.250.1044351754.squirrel at schose.dyndns.org>:
> > Hallo Liste,
> > 
> > ich versuche krampfhaft smbmount als normaler
> > Benutzer auszuführen. Google hat gesagt das das
> > suid - Bit gesetzt sein muß. Dann kommt allerdings folgende
> > Fehlermeldung :
> > 
> > libsmb based programs must *NOT* be setuid root.
> > 
> > Und es passiert nichts weiter.
> > Hat jemand eine Lösung parat ?
> 
> - Als root eine passende Zeile in /etc/fstab hinterlassen, die in den
>   options "user" eingetragen hat.
> - Dann kann der User mounten.
> - Je nachdem, wie mount kompiliert ist, kann mount das Mounten zulassen,
>   wenn der mount point selbst dem willigen user gehört

Grundsaetzlich ist das mit dem smbmount allerdings total scheisse. Denn
samba ist anders als nfs ein networking filesystem bei dem die
permissions auf dem server gesetzt werden d.h. jeder mount ist
personalisiert d.h. username/password. Man hat also die moeglichkeiten
das password in die fstab zu schreiben oder es insgesamt manuell zu
machen. Denn - wenn man in die /etc/fstab solch einen eintrag macht:

flo at touch:~$ grep samba /etc/fstab
//samba/homes           /mnt/samba      smb     noauto,user,username=flo 0       2


Passiert dieses:

flo at touch:~$ mount /mnt/samba
Password:
cannot mount on /mnt/samba: Operation not permitted
smbmnt failed: 1


Also fstab kann man knicken ...

Flo
-- 
Florian Lohoff                  flo at rfc822.org             +49-5201-669912
                        Heisenberg may have been here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20030204/71bfb626/attachment.sig>


More information about the Linux mailing list