Both the K desktop environment (KDE), and the GNOME desktop allow you to explore remote Samba shares, or Microsoft windows shares. However there are times when you cannot use these - for example if you wished to backup a remote machine from a shell script.
For these jobs the Samba File System kernel module, and tools, are a much better fit.
To mount a remote system directly upon your current system you'll need:
- The cifs kernel module
- The smba-client package
- A mountpoint - this is just an empty directory.
- The Name/IP address of the host to connect to.
- Login credentials to the remote share - both username and password.
- Local root privileges to do the mount, and load the kernel module.
First check samba-client is install or not
Install modules through following commands
Create mount point and mount
Auto-mount through /etc/fstab
create credentials file
specifies a file that contains a username and/or password. The format of the file is:
username=value
password=value
username=value
password=value
fstab entry:
//192.168.0.13/test-logs /win-share cifs credentials=/root/passwdfile 0 0



0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.