Monday, January 4, 2016
Sharing & Accessing Samba Share (Part 4)
Sharing & Accessing Samba Share
Step1: Accessing shared Resources from Windows machine:
Double Click on My Network Place → Click “Entire Network”→ Microsoft Windows Network → Double Click on ALPHABD icon → here you will show the Samba Server & all Windows machine → Double Click Samba Server → Double click your Share resources & create, delete, copy/paste everything you can do now.
You can also use your home directory by using Network Drive to do this Double Click on My Computer icon → Follow the Network Device Section → Double click a Drive then put you necessary documents in to it.
Step-2: Accessing share resources by mounting Linux share on windows machine:
Samba is a program which allows you to share your files between Linux and Windows. Your Statistics Samba share contains all of your Linux files. By mounting the Samba share on your Windows machine, you will be able to access your files across the operating systems.
Suppose you have some confidential files that exist on a Windows machine are not backed up by the department and are subject to be erased without notice. If your Windows machine crashes, you could permanently lose your files. Only files saved in your Samba share are backed up. Please make it a practice to keep your Windows files on your Samba share.
You must first enable security protocol on windows machine. In order to mount Linux shares (such as \\samba, Z: drive) on a Windows XP system, you must force XP to use the NTLM protocol as well as NTLM2.
1. Select Start → Run and type “secpol.msc”. Press “Enter” or Start → Program → Administrative Tools → Local Security Policy.
2. Expand the Local policies Container → Security Options.
3. Locate “Network Security: LAN Manger authentication level” → Double Click.
4. Change the setting it from “Send LM & NTLM responses” to “Send LM & NTLM – useNTLMv2 session security if negotiated” → OK.
5. Open My Computer → Tools → Map Network Drive.
6. Click on “Drive: “drop down menu & choose A drive Letter (Z :)
7. Click Browse → Select Entire Network → Microsoft windows Network → Choose you workgroup/domain name → Select Samba Machine → Select A share folder that you want to map with windows → OK.
8. Make Sure the “Reconnect at Logon” box is checked → Finish.
9. Samba should now be Visible in “My Computer”.
Step-3: Sharing windows Resources that you can access from Linux machine
You can also share so many Resources of windows machine for accessing from Linux machine. You can share CD-ROM, DVD, floppy or hard disk drive installed on a Windows machine. In this section I'll show you how to share a CD-ROM drive from windows machine & also how to access it from Linux machine.
The Windows client machine should be setup first as a member of a Samba domain or workgroup. The next step is to make the CD-ROM drive shared. The steps you used depend on which version of Windows you have.
For Windows XP
1. Double click 'My Computer'
2. Right click on the CD-ROM drive and choose ' Properties' then Sharing
3. Set the Share Name as 'cdrom' and the appropriate access control
4. Logout and login again as normal using your current login
After you have completed this task, you'll have to go to the next step of testing your configuration.
Step-4: Mount the shared CD-ROM drive on Linux machine and put a share definition on smb.conf file that you can access it from both Linux & all other windows machine. To do it follow the below.
[root@ srv1]# mkdir /opt/CDROM
[root@ srv1]# chown root:samba-users /opt/CDROM
[root@ srv1]# smbmount //IP or machine name/Share_name /opt/CDROM
[root@ srv1]# mount –t smbfs //IP or machine name/share_name /opt/CDROM
After that you should permanently mount the drive that it can load the share on every restart.
[root@ ~]# vi /etc/fstab
Then type this path following by space or tab key
//windows_IP/Share_name /opt/CDROM smbfs username=nobody 0 0
Now put a share definition in to the share section on smb.conf
From Linux machine:
[root@ srv1]# smbclient –L //Win_IP
Now you can use various command like: - dir, cd, put, get, pwd, ls, mget, q etc
Testing the Samba Configuration File
To test the configuration file for syntax errors, use the “testparm” command. It will also list all settings currently in place, including defaults that may not appear in the configuration file.
[root@samba ~]# testparm –v
Testing Share Configuration:
Use the smbclient command to test your share. You should substitute the name of your Windows client PC for "Client1," and in place of "username" provide a valid workgroup/domain username that normally has access to the Windows client. You should get output like this when using the username's corresponding password:
[root@srv1 ~]# smbclient -L Client1 -U user1
Related Articles :
- Accessories ( 33 )
- ACER ( 16 )
- AMD ( 3 )
- ANDROID 2015 ( 1 )
- ASUS ( 10 )
- BLOGGER ( 37 )
- CANON PRINTER ( 1 )
- CD DVD RW ( 23 )
- CMD ( 18 )
- DOWNLOAD ( 24 )
- EPSON PRINTER ( 2 )
- FTP Server Linux ( 6 )
- GAMES ( 34 )
- HACK ( 46 )
- HARD DRIVE ( 23 )
- Hardwaer ( 88 )
- HOME ( 6 )
- HOW TO WORKIN ( 84 )
- HP ( 1 )
- HP PRINTER ( 1 )
- INTEL ( 13 )
- INTERNET ( 64 )
- INTERNET CAFE ( 4 )
- IP-ADDRESS ( 11 )
- LAPTOP ( 29 )
- LINUX ( 45 )
- Linux as a Router ( 2 )
- LINUX LAB ( 14 )
- MICROSOFT ( 43 )
- Mobile ( 947 )
- MOTHERBOARD ( 65 )
- MOTHERBOARD DELL ( 3 )
- MOTHERBOARD GIGABYTE ( 23 )
- NETWORKING ( 31 )
- NEWS ( 998 )
- PC Support ( 13 )
- PCI CARD ( 1 )
- Printer ( 6 )
- QUESTION AND ANSWER ( 12 )
- REDHAT 5 ( 16 )
- REGISTRY EDTOR ( 20 )
- RESET Bios Password ( 1 )
- SAMBA-SERVER ( 4 )
- Samsung ( 56 )
- SERVER ( 15 )
- SERVER CONFIG ( 17 )
- SERVICE MANUAL ( 40 )
- Snapdragon ( 2 )
- SOFTWAER ( 136 )
- Softwaer exporla ( 6 )
- squid proxy server Linux ( 3 )
- TUTORIALS ( 24 )
- USB ( 3 )
- VIDEO ( 3 )
- VNC server Linux ( 2 )
- Window XP ( 167 )
- Window10 ( 27 )
- Windows 8.1 ( 11 )
- Windows Shortcuts ( 26 )
- Windows XP ( 23 )
- YouTube ( 4 )
- Yum Server Linux ( 5 )
How to configure the front panel. the cabniet has the following pin 1. GND 2, MIC in 3 Mic power 4 R-out R-r...
Apple K94 chopin 820-3069-a_ra_schematics Apple k94 chopin Apple Ipad 2 (K94 Chopin MLB 820-3069-A) Free Download Laptop Mother...
SOCKET LGA 775 PIN REPAIR METHOD. SOCKET 775 DAMAGED PIN REPAIR METHOD. Tools: 1 pair of angle point tweezers - others work but I ...
Like the BrTurbo links... there's a little bit to know what the links from Yahoo/Geocities do... or how they work... Maybe this...
Additional configuration for Samba Server Creating & Managing Users & Groups: Step-1: Create A Group Named “ sam...
Here you can find how to set up your Outpost firewall. Most of this rules I found on the internet, but some of them are mine. I...
If you wish to install php and mysql to run a phpBB installation on your computer, first you will need installers. Most of you have window...
1-10 minute guide to lotus notes mail 4.5 http://www.parsian.net/set1252/pages/books.htm 2 -10 minute guide to Microsoft exchange 5.0 h...
DELL 1545 LAPTOP BIOS PASSWORD RESET STEPS DELL INSPIRON 1545 LAPTOP BIOS RESET. PASSWORD RES...
Acer eMachines D725-WISTRON HM40-MV CPU : Intel Penryn North Bridge : Intel Cantiga South Bridge: Intel ICH9M VGA: UMA Clock G...