Thursday, August 27, 2015

RHEL7 - Samba client info


Samba client package
cifs-utils

How to identify smb shares on a server

smbclient -L //serverX


Mount SMB share on client machine

# mkdir -p <mp>
# mount -t cifs -o guest //<server>/<share> /<mountpoint>

Mount SMB share with user authentication
# mount -t cifs -o username=<username> //<server>/<share> /<mountpoint>

Mount SMB share with credentical file
# mount -t cifs -o credentials=<file_location> //<server>/<share> /<mountpoint>

SMB credential file entry

# cat ~/userinfo
username=username
password=password
domain=domain


SMB autofs mapping file syntax

<mp> -fstype=cifs,credentials=<file> ://serverX/<mp>

No comments:

Post a Comment