RSS
 

Quick Commandline on SMB Client (SAMBA, CIFS) and mounting procedure

13 Dec

To install on
Centos:
yum install samba-client
Ubuntu:
sudo apt-get install smbclient

View remote share

smbclient -L <ipaddress>

To mount:

mount -t cifs -o guest //server/share /path_to/mount

or

mount -t cifs -o username=server_user,password=secret //192.168.44.100/share /path_to/mount

parmanent mount in fstab.

//<server ipaddress>/share   /path_to/mount   cifs   guest,_netdev   0 0

//<server ipaddress>/share   /path_to/mount   cifs username=server_user,password=secret,_netdev   0 0

//<server ipaddress>/share   /path_to/mount   cifs credentials=/path_to/.creds,_netdev,uid=client_user,gid=users   0 0

man page on smbclient: http://linuxcommand.org/man_pages/smbclient1.html

Related Posts in Category:

  • No Related Posts
 

Leave a Reply

 

 
 

Effects Plugin made by Ares Download