Mount a SMB share in Redhat/Centos
Login or Register to Bookmark this snippet
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.
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
-
31st January, 2008 8:51 am JC
-
Recently, 'smbfs' is no longer supported. Using 'cifs' instead will work.
You must be registered and logged in to post a comment.
Login here to post a comment