First share a folder in windows and give permission to everyone to access to that folder.
Go to linux machine and do the below steps
Prerequsties should be , all the packages for running SAMBA service should be installed on the Linux machine. And the SAMABA service should be running on the machine.
Please use below commands for checking about the SAMBA service.
[root@nav1 ~]# rpm -qa *samba*
sblim-cmpi-samba-0.5.2-31.el5_2.1
sblim-cmpi-samba-test-1-31.el5_2.1
samba-3.0.33-3.7.el5
samba-client-3.0.33-3.7.el5
sblim-cmpi-samba-devel-1-31.el5_2.1
system-config-samba-1.2.41-3.el5
samba-common-3.0.33-3.7.el5
samba-swat-3.0.33-3.7.el5
You have new mail in /var/spool/mail/root
[root@nav1 ~]# service smb status
smbd (pid 3635 3068 3029) is running...
nmbd (pid 3032) is running...
[root@nav1 ~]#
Prerequsties should be , all the packages for running SAMBA service should be installed on the Linux machine. And the SAMABA service should be running on the machine.
Please use below commands for checking about the SAMBA service.
[root@nav1 ~]# rpm -qa *samba*
sblim-cmpi-samba-0.5.2-31.el5_2.1
sblim-cmpi-samba-test-1-31.el5_2.1
samba-3.0.33-3.7.el5
samba-client-3.0.33-3.7.el5
sblim-cmpi-samba-devel-1-31.el5_2.1
system-config-samba-1.2.41-3.el5
samba-common-3.0.33-3.7.el5
samba-swat-3.0.33-3.7.el5
You have new mail in /var/spool/mail/root
[root@nav1 ~]# service smb status
smbd (pid 3635 3068 3029) is running...
nmbd (pid 3032) is running...
[root@nav1 ~]#
[root@nav1 ~]# smbclient -L WindowsIP -U APAC/WinUsrId
Password:
Domain=[APAC] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
D$ Disk Default share
ADMIN$ Disk Remote Admin
C$ Disk Default share
linux_share Disk
Domain=[APAC] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
--------- -------
[root@nav1 /]# smbclient \\\\WindowsIP\\linux_share -U APAC/WinUsrId
Password:
Domain=[APAC] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \> ls
. D 0 Thu Oct 13 21:29:35 2011
.. D 0 Thu Oct 13 21:29:35 2011
59616 blocks of size 2097152. 37993 blocks available
smb: \> ls
. D 0 Thu Oct 13 21:41:10 2011
.. D 0 Thu Oct 13 21:41:10 2011
sfsdf A 0 Thu Oct 13 21:41:07 2011
59616 blocks of size 2097152. 37993 blocks available
smb: \>
For Configuring through GUI use below option
go to places menu -> connect to server
it will open a connet to server configuration menu
1. select service type as "Windows Share"
2. Enter Windows Server name which u want to share in the server name option
3. Enter share folder name in the folder name option
4. Enter windows username in the username option
5. Enter windows Domain name in domain name option
6. Name to use for connection is optional and u can use whatever name u want
at last give connect it will ask for password for windows user id, give the passwd thats it !!
Password:
Domain=[APAC] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
D$ Disk Default share
ADMIN$ Disk Remote Admin
C$ Disk Default share
linux_share Disk
Domain=[APAC] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
--------- -------
[root@nav1 /]# smbclient \\\\WindowsIP\\linux_share -U APAC/WinUsrId
Password:
Domain=[APAC] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \> ls
. D 0 Thu Oct 13 21:29:35 2011
.. D 0 Thu Oct 13 21:29:35 2011
59616 blocks of size 2097152. 37993 blocks available
smb: \> ls
. D 0 Thu Oct 13 21:41:10 2011
.. D 0 Thu Oct 13 21:41:10 2011
sfsdf A 0 Thu Oct 13 21:41:07 2011
59616 blocks of size 2097152. 37993 blocks available
smb: \>
For Configuring through GUI use below option
go to places menu -> connect to server
it will open a connet to server configuration menu
1. select service type as "Windows Share"
2. Enter Windows Server name which u want to share in the server name option
3. Enter share folder name in the folder name option
4. Enter windows username in the username option
5. Enter windows Domain name in domain name option
6. Name to use for connection is optional and u can use whatever name u want
at last give connect it will ask for password for windows user id, give the passwd thats it !!
it will be connected to the windows share folder and u will be able to do whatever u want.
Reference:
http://mars.netanya.ac.il/~unesco/cdrom/LDP/Samba/HTML_FORMAT/SMB-HOWTO-7.html
Regards,
Navaneeth
No comments:
Post a Comment