Smbnetfs
smbnetfs is a FUSE-based filesystem for SMB/CIFS shares. It enables each user to mount Window's based network shares within their own userspace.
Installation[edit | edit source]
Kernel[edit | edit source]
See the Kernel section of the FUSE article for kernel confirmation.
USE flags[edit | edit source]
USE flags for net-fs/smbnetfs FUSE filesystem for SMB shares
gnome-keyring
|
Enable support for storing passwords via gnome-keyring |
Emerge[edit | edit source]
Install the userspace utilities:
root #
emerge --ask net-fs/smbnetfs
Configuration[edit | edit source]
Files[edit | edit source]
Import files related to smbnetfs include:
- ~/.smb/smbnetfs.conf - The local (user-specific) configuration file. This file is not installed in user home directories by default (see below).
Credentials[edit | edit source]
Create the ~/.smb directory, then copy the configuration file to the configuration location. Note: depending on which version of the software was installed, the filesystem path could change. Determining the version of the software Portage installed will help determine the name of the first network path in the bunzip2 command:
user $
mkdir ~/.smb
user $
bunzip2 -c /usr/share/doc/smbnetfs-0.6.0/smbnetfs.conf.bz2 > ~/.smb/smbnetfs.conf
Next, modify the configuration file in order to gain network authentication. There are different methods of inputting authentication credentials: GNOME Keyring (which can be effective if the GNOME desktop environment is being used) or username/password fields in the smbnetfs.conf file itself.
For example, when entering username/password in the configuration file, uncomment the following line and add appropriate values. guest
should be substituted with the username and the next set of quotes should include the password:
~/.smb/smbnetfs.conf
#auth "guest" ""
Anyone who has access to read the files in the user's home directory will be able to see the username/password information contained in the ~/.smb/smbnetfs.conf file above. Lock down the /home directory for maximum security.
Usage[edit | edit source]
Invocation[edit | edit source]
smbnetfs needs to know where to mount the shares. If a directory for them does not yet exist create one, then mount things there:
user $
mkdir ~/mnt
user $
smbnetfs ~/mnt
Removal[edit | edit source]
Unmerge[edit | edit source]
root #
emerge --ask --depclean --verbose net-fs/smbnetfs
See also[edit | edit source]
- Samba — a re-implementation of the networking protocol, a Microsoft Windows alternative to Network File System (NFS).