Discover, Browse and Access the Windows Network with a Linux Host


December 24, 2007 12:10 pm





This construction makes is possible for every user logged in to browse the Windows and/or Samba network, and access shares on all hosts if granted with your Linux host.

To mount the shares on demand autofs and cifs or smbfs are used.

It works on every network, all hosts, domains/workgroups and shares are automatically detected. With this information a representation is build in the homedirectory of every user logged in.

In short, the construction does:

  • automatically detects all the smb hosts and their shares (with nbtscan and smbclient)
  • creates a directory in the homemap of the users logged in which represents the “windows networkneighbourhood”.
  • when entering a share, it is automatically mounted (with autofs and cifs and or smbfs)

I’ve published it on HowtoForge:

It lets you browse the networkneighbourhood, which is detected automatically, no matter where you are, and you can enter the shares whenever you want, if granted. This is done using automount and cifs. The latest is making sure that the properties on files are represented properly and ATTR/ACL’s, links and inotify are supported. which is not the case with other solutions I know like the kio slaves and Fusesmb.

Futher this solution is also usable in a NetWare environment (using other utilities to discover the hosts and shares and of course another mountprogram mount.ncpfs).

Stef Bon

homepage url:

download url:

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Categories: Free Tools, Technical Solutions

Disclaimer: As with everything else in the SUSE Blog, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.