Step 1:
Install samba from source or repository in your linux machine
Step 2:
a) Backup the current settings
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
b) vi /etc/samba/smb.conf and add a service as mentioned below
[testsamba]
comment = TEST
path = /share-path
read only = Yes
guest only = Yes
c) Run below command as root
#testparm
Step 3:
Mouting the Drive
Windows:
c:\net use j: \\Linux-ip\testsamba
Note : Choose any drive letter which does not exists in your machine, like j: in my machine
The above command should display "Command successfully completed"
Testing the mount from linux machine
Linux :
$smbclient //20.252.139.51/testsamba, this will take you to smb prompt.Issue command like ls or l to see the list of files, for more info type help
I will be sharing samba security options in next article
Install samba from source or repository in your linux machine
Step 2:
a) Backup the current settings
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
b) vi /etc/samba/smb.conf and add a service as mentioned below
[testsamba]
comment = TEST
path = /share-path
read only = Yes
guest only = Yes
c) Run below command as root
#testparm
Step 3:
Mouting the Drive
Windows:
c:\net use j: \\Linux-ip\testsamba
Note : Choose any drive letter which does not exists in your machine, like j: in my machine
The above command should display "Command successfully completed"
Testing the mount from linux machine
Linux :
$smbclient //20.252.139.51/testsamba, this will take you to smb prompt.Issue command like ls or l to see the list of files, for more info type help
I will be sharing samba security options in next article
How to unmount the windows drive ?
ReplyDeletenet use j: /delete
The above command should say "j" deleted