LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-06-2013, 01:33 AM   #1
jibujacob
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Rep: Reputation: Disabled
Sharing Linux filesystem using Samba - Client is windows


Hi,

Linux Server :

Red Hat Enterprise Linux Server release 6.2 (Santiago)

Samba Server Installed in above linux machine :

[root@rcat ~]# rpm -qa | grep samba
samba-3.6.9-151.el6.x86_64
samba-winbind-clients-3.6.9-151.el6.x86_64
samba-client-3.6.9-151.el6.x86_64
samba-winbind-3.6.9-151.el6.x86_64
samba-common-3.6.9-151.el6.x86_64
[root@rcat ~]#


I need to share a filesystem ( /backup ) in the above linux machine to be accessible to one windows server.

Windows server is : Windows server 2003 R2

I have opened the ports 137 / 138 / 139 / 445 in firewall between these machines.

While trying to access /backup from windows server, (STARUP->RUN->\\(IP of linux machine)\backup ) it is asking for USERNAME / PASSWORD in a pop-up window. Once i give it, it showing the error

"The specified Network Name is no longer available"

But i am able to succesfully share /backup to another linux machine ( with same USERNAME / PASSWORD)....This username is added to SAMBA (smbpasswd)

/etc/samba/smb.conf:

netbios name = rcat
workgroup = workgroup
security = user
server string = Samba Server Version %v
smb passwd file = /etc/samba/smbpasswd
guest account = smbguest
# encrypt passwords = yes

log file = /var/log/samba/log.%m
max log size = 50
cups options = raw


[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
print ok = Yes
browseable = No

[backup]
comment = sharing Backup
path = /backup
valid users = rman, root, sysadmin, testfs
read only = No

[test_sharing]
comment = test sharing folder
path = /testfs
valid users = root, testfs
read only = No
guest ok = Yes
browseable = yes
public = yes
#



I an not able to figure out why it is not permitted in windows but am succesfuly able to share to a linux box...

Also, my understanding is that WINDOWS2003R2 have a samba client and i don't need to install anoter one....

Regards,
jibu

Last edited by jibujacob; 06-06-2013 at 05:16 AM.
 
Old 06-06-2013, 12:28 PM   #2
jibujacob
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Someone..please help me...

Regards,
Jibu
 
Old 06-06-2013, 02:42 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
What happens when you do this in windows file or explorer?

\\IP address of server (just the ip address not the netbios name) don't add in /backup


Posting to yourself stops a LQ method to help you. Zero replies get bumped up for more people to try to help. Now your post will sink in the lineup. Hopefully someone else will be more helpful than I.

All cifs/samba shares ought to be able to be searched and viewed from 2003.

"How to Connect to a Shared Folder by Using My Network Places

Open My Network Places. To do so, click Start, click My Computer, and then click My Network Places under Other Places. Or, start Windows Explorer, and then click My Network Places.
Click Entire Network.
Double-click Microsoft Windows Network, and then double-click DomainName, where DomainName is the name of your domain.
Double-click ComputerName, where ComputerName is the name of the computer that contains the files that you want to access.

A list of shared folders and printers on that computer is displayed.
Double-click the shared folder to which you want to gain access.

If your user account has permission to access this share, you can see the subfolders and files in that shared folder. What you can do with those subfolders and files depends on the level of permission that you have been granted.

How to Connect to a Shared Folder by Using Universal Naming Convention (UNC) Format

Click Start, and then click Run.
In the Open box, type the share name by using the following UNC format, where ComputerName is the name of the computer to which you are trying to connect and ShareName is the name of the shared folder on that computer:
\\ComputerName\ShareName
Click OK.

If you are prompted to do so, type the user name and password that you have to use to gain access to the computer.

The contents of the shared folder are displayed.

How to Connect to a Shared Folder by Using a Mapped Network Drive

Start Windows Explorer.
On the Tools menu, click Map Network Drive.
In the Drive box, click the drive letter that you want to use for this mapped drive. You cannot use any of the drive letters that your computer currently uses.
In the Folder box, type the name of the share to which you want to connect by using Universal Naming Convention (UNC) format, where ComputerName is the name of the computer to which you are trying to connect, and ShareName is the name of the shared folder on that computer:
\\ComputerName\ShareName
You can also map drives to subfolders of the shared folder. For example:
\\ComputerName\ShareName\SubfolderName
Or, you can click Browse, and then locate the computer to which you want to connect, the share on that computer, and optionally the subfolder in that share.

Click Finish.

Notes About Connecting to Shared Folders

By default, Windows tries to reconnect mapped drives the next time that you log on. If you do not want to reconnect to the mapped drive the next time that you log on (for example, if you want this mapped drive to be effective only for your current logon session), click to clear the Reconnect at Logon check box.
By default, you are connected to the remote computer using the logon credentials that you are currently using. If you want to use other credentials, click Connect using a different user name, and then type the appropriate user name and password to connect to the network resource.
The mapped drive that you create is visible in the Folders pane in Windows Explorer, and so are all the other drives on your computer. You can access the files in the shared folder through any program on your computer by using the mapped drive letter.

Troubleshooting
You Cannot Connect to a Server by Using a Computer Name
When you type \\computername in the Open box, you may receive an error message that indicates that the network path was not found. This behavior can be caused by a number of issues that are related to network connectivity and name resolution.

Try these steps to determine whether your computer can communicate on the network:

Click Start, and then click Run.
In the Open box, type cmd, and then click OK.
At the command prompt, type ping ComputerName, where ComputerName is the name of the computer to which you want to connect, and then press ENTER. You receive one of the following responses:
Unknown Host: This indicates that your computer cannot determine the IP address of the computer from the computer name that you typed. Check the configuration for your WINS and DNS services to make sure that you can use these services to translate computer names to IP addresses.
The IP address of the computer to which you want to connect followed by four "Request timed out" messages: This indicates that name resolution is working, but you cannot communicate with the remote computer. Investigate possible network connectivity issues between your computer and the computer you are communicating with, such as broken or disconnected cables or problems with hubs and switches. There may also be issues with the IP address configuration on either your computer or the computer to which you want to connect.
The IP address of the computer you are connecting to followed by four "Reply from IP Address" messages: This indicates that TCP/IP communication between the two computers is working. Determine whether the Server service is running on the computer to which you want to connect.

You Do Not See the Computer That You Are Trying to Connect to in My Network Places
My Network Places collects its data from the Browser service, which relies on periodic announcements from computers on your network. If you do not see a computer in My Network Places, the computer may have been recently restarted. As a result, the computer may not appear on the browse list. You can either wait for the browse list to automatically update (typically within a few minutes), or use one of the other methods discussed earlier in this article to connect to the remote computer.
"

http://support.microsoft.com/kb/323386

Last edited by jefro; 06-06-2013 at 02:50 PM.
 
Old 06-07-2013, 02:47 AM   #4
jibujacob
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Startup-RUN->\\10.250.9.23

Prompts for username/password.

When i give user name pwd (the username added to samba), it shows following msg:

"\\10.250.9.23\ is not accessible. You don't have permission to access this resource...Try contacting the admisnistrator of this server...

The network resource is no longer available "

Regards,
jibu
 
Old 06-20-2013, 11:54 PM   #5
jibujacob
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi,

I had disabled the following policy in WINDOWS and then restarted the machine. Later the shares in linux box were accessible from windows machine.

Chnages in gpedit.msc
-------------------------

gpedit.msc->computer configuration->WindowsSettings->SecuritySettings->LocalPolicies->security Options->

1) Microsoft network server: Digitally sign communications (always) - Diabled
2) Microsoft network client: Digitally sign communications (if server agrees) - Diabled
3) Microsoft network server: Digitally sign communications (always) - Disabled
4) Microsoft network server: Digitally sign communications (if client agrees) - Disabled
5) Network security: LAN Manager authentication level -> Send LM & NTLM - use NTLMv2 session security if negotiated
6) Network security: Minimum session security for NTLM SSP based (including secure RPC) clients - Nominimum
7) Network security: Minimum session security for NTLM SSP based (including secure RPC) servers - No minimum


Don't forget...you need a system reboot after you change the above setting. ( It consumed my whole week, since i didn't reboot the machine ( it was a production machine ) eventhough I had changed the above setting....; Later my colleagues did the same thing in a test machine and they succeded after its reboot.)


Regards,
Jibu
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba-Linux and Windows sharing cwhiteacre Linux - General 2 01-20-2011 09:32 PM
CentOS /Samba server- XP Windows client file sharing issue 3phoenix Linux - Server 7 11-06-2009 11:05 AM
internet connecion sharing between windows host and linux client pdwivedi Linux - Networking 8 04-16-2009 11:09 AM
Samba windows client sharing Linux.Learner Linux - Networking 11 02-20-2007 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration