SMB through FUSE (fusesmb)

Translation of the original in Catalan. Read it in: CatalàCastellano

FUSE as you surely already know loads as a kernel module and lets us access the file system through a user application, that is, an application that doesn't necessarily have to have administrator permissions. Well then in this case it's about browsing the WORKGROUPS, hosts, shared folders and printers published on the network through the SMB protocol. So that we understand each other, the protocol windows has used forever to share network resources. So with the small application I'm talking about we'll be able to browse all these network resources as if they were directories of our linux file system. Really useful and comfortable, that of being able to access network resources without having to mount these resources from our CLI.

If the shared network resources are under authentication, when accessing the directory that represents the resource it will deny us access. For this not to happen we have to pass as parameters of fusesmb our user and password of the network resource. The bad thing is that if we have several users to authenticate depending on the resource we won't be able to express it from the same instance of the program. So, to my taste it's missing some small workaround that interactively launches the question of user and password when entering a protected resource.

Despite that I consider fusesmb to be a very comfortable tool for accessing network resources especially if we can access with the same user and password, that is, what usually happens if the network we're on is ours.

3 comments

Comments from the old blog, as they were written. Comments are closed.

  1. sunbit

    Fa temps l'havia utilitzat, i estic d'acord amb tu que és molt pràctic. Potser et vols mirar aquesta aplicació, que tot i que crec que no fa servir fuse, sino que munta els shares de la manera tradicional fent servir smbfs, tot desde una GUI. Es diu smb4k, i per fer un resum aixi rapid, et llista les comparticions de la xarxa, i just clicant les monta, a dins del teu home, demanant-te user/pass si s'escau, i llavors tens les opcions de muntar unitats de xarxa automaticament al llança el programa.

    No és el workaround que buscaves, és una altra aproximació, però ho trobo força útil també :)

  2. pfreixes

    Be Fuse és realment un driver de sistema d'arxius corrent en espai d'usuari, en certa mesura la comunicació es la seguent, tu fas un cp /src /dst i el vfs del kernel crida a les funcions de lectura/escriptura que estan corrent en espai d'usuari.

    Basicament la gran diferencia amb un driver de vfs normal i corrent és en quin espai de memoria i sota quins privilegis de cpu corre

    Vinga salut

  3. —

    Un parell de comentaris:

    - Gràcies Pau per l'aclariment tècnic, tot i que més o menys entenc que és el mateix que jo havia dit. O potser, m'he expresat malament. Però sempre va bé tenir una explicació més precisa.

    - Per altre banda, el smb4k ja el coneixia però malgrat en tinc una bona opinió no m'acabo d'acostumar perquè al ser una aplicació amb GUI sempre acabo usant el nautilus i no m'enrecordo d'obrir-lo. És un problema de costums.