Samba Share on windows

Samba Share on windows

To Share a Samba Directory on Network with Windows (network mapped drive) -- Make sure Samba is installed on the linux box first.

a. Add the unix accounts on the server

To add the unix accounts, use the following commands:

useradd $USER 
passwd $USER

This will create the user and set the password. Run them individually. First add the user, then set the password.

    b. Add the user to Samba database

To add the user you just created to the samba database, you will run the following commands:

sampasswd -a $USER

Now edit the samb conf file. On RHEL6 it is located in /etc/samba/smb.conf. Add the following line to the specific Samba share, [example-share], in the conf file:

valid users = $USER1 $USER2 etc...

Now restart the Samba service

service smb restart

 

2. Second Step: Map the Share in Windows 7!

Disclaimer: Change these settings at your discretion.

Before you can proceed to adding the drive mapping, you need to first reconfigure some security policy settings on your local machine which may not apply to everyone; however, it's worth checking out. This will help ensure you can communicate with the unix machine running the Samba share. You may try to add it first before changing the settings, but if it fails this should do the trick.

    a. Edit the Security Policy Settings

shortcut!

start - run - secpol.msc - enter

or do this if you don't want to use the run command:

  1. Start - Control Panel - Administrative Tools
  2. Open Local Security Policies

..and here's what you do once the security policies screen is up:

  1. Expand Local Policies
  2. Open Security Options
  3. Open Network security: LAN Manager Authentication Level
  4. Set the drop-down to 'Send LM & NTLM (use NTLMv2 if negotiated)'
  5. Click apply and ok
  6. Open Network Security: Minimum session security for NTLM SSP
  7. Uncheck 'Require 128-bit encryption'
  8. Apply and OK
  9. Do the same for the other NTLM SSP Security directly underneath the first

    b. Map the Drive!

shortcut (again!)

start - Run - CMD - enter

net use x: \\address\share_name /u:$USER

When you hit enter after that, it will prompt for the users password. Just put it in. Also the 'x:' can be replaced with whatever drive letter you want to use.

long version

  • Open 'My Computer' (or just "Computer" from your start menu)
  • Click Map network drive
  • Set the drive letter
  • Enter the Folder Name (Samba share address)
\\address\share_name
  • Your choice for reconnect at logon. I'm assuming you won't want to do this every time, so just leave that checked.
  • Press finish and enter your user information as requested.
  • Your drive is mapped.
  •  
    • Related Articles

    • Setting up Remote Apps on Windows and Mac and IOs Devices

      Users have 2 options to fetch RDS Apps.  Log in directly to RDWeb CAD - https://rds-cad.dnpexchange.com USA - https://rds-usa.dnpexchange.com Users can log in utilizing their RDS users created in SolidCP (email address + password) and will grant ...
    • IIS URLrewrite - WINDOWS

      Is the IIS URLrewrite module supported? -------------------------------------- Yes, IIS urlrewerite is supported on all our Windows 2008/IIS7 servers. You can read more on this at http://www.iis.net/expand/URLRewrite. .
    • Auto-installing Windows Servers PsExec

      The Bacula4 Windows auto-installer works on PsExec functionality. https://technet.microsoft.com/en-us/sysinternals/bb897553.aspx Using this functionality, Bacula4 will auto-install and configure your Windows Servers and Virtual Machines with the ...
    • Creating RDP user under Windows

      in Order to create RDP user account under windows , RDP to the server/vm  Open Server Manager > hover tools > click on 'Computer Management' > click on users&groups > click on users > right click on it to create a new user > and click on user > enter ...
    • Bare Metal Restore for Windows

      Bare Metal Restore for Windows Step 1 Select rescue point, same way as for REAR: Next step download ISO image. Own image for every particular server but same for all rescue dates. You'll see problem to setup network. It's all you need to do there. ...