Mount a SMB share in Redhat/Centos

Description Bash

This is the command to mount a share. It's not directly related to Bash scripting, but I needed to put it somewhere.

You may need to install smbfs first.

The Code Download

  1. mount -t smbfs -o username=share_user,password=share_pass //netbios_name/share_path /mnt/local_mnt_name


Added by JC on 31st January 2008


JC 31st January 2008, 1:51 pm

Recently, 'smbfs' is no longer supported. Using 'cifs' instead will work.

Post Comment Github Markdown Supported

You must be logged in to post a comment.

Login here to post a comment