LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-12-2009, 04:35 AM   #1
ashraflinux1@gmail.com
LQ Newbie
 
Registered: Sep 2009
Posts: 28

Rep: Reputation: 15
sambe share problem


hi guys
i have network of 40 pc all fedora desktop
i have windows xp pc in which i have a drive which is shared on linux
{note on winndows it is g driv }
that share is accessable to all the user
it is useing smb protocal
on linux when the user try to access that share
some time it ask for user name and password
and the share is not accessible
but there is no other user on windows xp other then administrator

so what is do is on windows xp
i go to "run"
type a command services.msc
and all services will be displayed
i restart the server service
and it works
but this problem hapns a lot of time
{NOTE: the problen is more when mutipul user try to access that share @ ONE TIME}

I CAN NOT CONVERT THAT SHARE TO NFS { SO THE OPTION OF NFS OS NOT THERE}

PLZ HELP ME OUT
 
Old 11-12-2009, 09:33 AM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,845

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
First of all, please use the shift key to capitalize each sentence, and us the period to end a sentence. Please don't shout by capitalizing. That is plain rude, and readers are not likely to want to help.

Now for your problem. I strongly think the problem is on the XP server system. You are only using client code on the linux systems, and it works. Some things to check.

Are all systems in the same workgroup?

Have you got updated /etc/hosts files on each linux client?

Have a look through the documentation here --> http://us1.samba.org/samba/docs/using_samba/ch05.html
to see if you have the XP host set up correctly. This document is as good as it gets for Samba doc.

Are you using DHCP for the clients on this network? Or are you using fixed IP addresses? DHCP is difficult to work when you have servers, they become moving targets. If you look in Ch 5 as I suggested, you will see you can run commands like this one to help with the PD.

Quote:
smbclient -L toltec
added interface ip=172.16.1.1 bcast=172.16.1.255 nmask=255.255.255.0
Password:
Domain=[METRAN] OS=[Unix] Server=[Samba 2.2.5]
However, if you do not know the IP addresses, or they change because of DHCP, you can not help yourself.

I'm guessing you are using a fat file system on the server for the shared partition, by the comment at the bottom. Since it is fat, you can not use Access Control lists.

Hope this helps...
 
Old 11-17-2009, 12:07 AM   #3
ashraflinux1@gmail.com
LQ Newbie
 
Registered: Sep 2009
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by camorri View Post
First of all, please use the shift key to capitalize each sentence, and us the period to end a sentence. Please don't shout by capitalizing. That is plain rude, and readers are not likely to want to help.

Now for your problem. I strongly think the problem is on the XP server system. You are only using client code on the linux systems, and it works. Some things to check.

Are all systems in the same workgroup?

Have you got updated /etc/hosts files on each linux client?

Have a look through the documentation here --> http://us1.samba.org/samba/docs/using_samba/ch05.html
to see if you have the XP host set up correctly. This document is as good as it gets for Samba doc.

Are you using DHCP for the clients on this network? Or are you using fixed IP addresses? DHCP is difficult to work when you have servers, they become moving targets. If you look in Ch 5 as I suggested, you will see you can run commands like this one to help with the PD.



However, if you do not know the IP addresses, or they change because of DHCP, you can not help yourself.

I'm guessing you are using a fat file system on the server for the shared partition, by the comment at the bottom. Since it is fat, you can not use Access Control lists.

Hope this helps...
Thanks for you advice
I think i have not spicifed my problem sorry for that
o k now
First Think we have static ip in our network.
i have a partition on xp i have shared it.
The workgroup of computer xp is "XXX" (i can not Display the workgroup name for Some Reason )

Now on on linux comp
I from the menu go to
Home --> go--> network folder---> add a network folder---> microsoft windows network drive--> next-->
Now it ask the following thing so fill the information.
name = h-drive
server = 192.168.1.3
folder = G
Here i spicify that i want to access the share of 192.168.1.3 the And
i am name of share is H-drive
And i am able to access the partition G on wnidows xp
As a network folder

But the Problem is
Some times when the users try to access the H-drive
It shows the content of H-drive
{Note:- let assume that a user have his file on H-drive in the following path
dir1/dri2/testfile
Here dir1 under dir1 we have dir2 in dir2 we have a file testfile}
Now when a user try a access testfile he goes successfully in dir1 & dir2 But when he click on testfile it ask for user id and password
I have not set any user id and password
After when it ask for user id and password Here i tryed giving the user name and password that is there on windows xp the also it is not working

So what is do is on XP
run --> services.msc-->server
it sipmly restart the server service on xp
That does the trick for me
now the user is able to see the testfile & able to every thing {e..i copy & paste the file }
i have notice that when many user try to access H-drive then only it is asking for user id and password

In my network all are fedora 8 & fedora 11 pc are there
in all pc i have normal user created user name is = user
Note the hostname of all comp is localhost

I think mounting of a server is not i issue over here.
It is Some think Else
Can u make out
 
Old 11-17-2009, 08:59 AM   #4
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,845

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Thank-you for the detailed explanation. I believe your problem is XP, not the linux clients. You can connect and access the user files, except when the network load is increased, and the request for User ID and Password is from XP.

With that said, have a look through Microsofts Knowledge base. I don't know all the ins and outs of windoze, I'm not sure M$ does either. There are a lot of fixes that are not mandatory, so even if you have automatic updates set, and that is 100% up to date, there may be fixes you do not have. Not many users have a lot of linux clients accessing XP as a server. I do it on a 1 or 2 user base, and it works.

Sorry to not be more help than that, but that is my experienced opinion.
 
Old 11-17-2009, 09:09 AM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Quote:
Note the hostname of all comp is localhost
You need to change this. localhost is an alias for the loopback device. Another computer trying to reach a computer named localhost will only reach itself.
 
Old 11-17-2009, 10:42 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,899

Rep: Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746
Just my 2 cents...
Your posts are a little confusing. Not sure if the all of the linux PCs are trying to access the same share on the windows PC or if your the windows drive is being access through a samba share on a linux PC. But it appears the first is what really is happening.

I assume your windows computer is running XP desktop Pro version which only supports 10 concurrent connections at a time. I've seen some posts in other forums that say the registry can be modified that allow more then 10 but do not know if it really works or what the maximum number concurrent connections this allows. Is it possible to move the files to a linux PC?
 
Old 11-17-2009, 11:56 AM   #7
rohitmehta
LQ Newbie
 
Registered: Nov 2009
Posts: 9

Rep: Reputation: 1
http://funlinuxfun.blogspot.com/

http://funlinuxfun.blogspot.com/

How To configure a samba share on redhat/linux


Sometimes your network may consists of Windows and Linux system.Samba server is the viable solution for file and printer sharing between linux and windows machines. Samba allows files and printers to be shared by all the systems in a network.
For networks having only Linux system we should go forNFS server.On how to configure NFS share read this
Samba server uses the SMB protocol for sharing files and printers across the network.



For configuration for samba server we need to install samba rpm packages.
For installing package:
# rpm -ivh samba
If your system supports yum installation use:
# yum y install samba

If your system does not support yum installation you can configure yum server for your network. For

The default configuration file for samba is /etc/samba/smb.conf which allows users to view their home directories as a Samba share. It also shares all printers configured for the system as Samba shared printers.

If you change this configuration file, the changes do not take effect until you restart the Samba daemon with the following command .
# services smb restart.

To specify the Windows workgroup , edit the following lines in your smb.conf file:
workgroup = WORKGROUPNAME
If you want to restrict users to access samba share only form your domain then
In section1:
host allow = your domain ip-address

To create a samba share which can be accessed on windows.Go to the last section of the configuration file for samba and add the following lines

[sharename]
comment = Insert a comment here
path = /home/share/
valid users = tfox carole
public = no
writable = yes
printable = no

You then need to add samba password for the valid users which will access the samba share on the windows machine

#smbpasswd a username

#service smb restart

To enable service start after the reboot:

#chkconfig smb on

Samba also provides you with a utility called testparm for checking its default configuration file.
# testparm
The above command will show you all the shared folders and printers.

One can also login into the samba share on linux machine with the following command.

#smbclient //ip-address/share-name U username
Enter the password prompted for and access the samba share.

Posted by Rohit Mehta at 9:17 AM
 
Old 11-17-2009, 10:39 PM   #8
ashraflinux1@gmail.com
LQ Newbie
 
Registered: Sep 2009
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by michaelk View Post
Just my 2 cents...
Your posts are a little confusing. Not sure if the all of the linux PCs are trying to access the same share on the windows PC or if your the windows drive is being access through a samba share on a linux PC. But it appears the first is what really is happening.

I assume your windows computer is running XP desktop Pro version which only supports 10 concurrent connections at a time. I've seen some posts in other forums that say the registry can be modified that allow more then 10 but do not know if it really works or what the maximum number concurrent connections this allows. Is it possible to move the files to a linux PC?


Hey thaks a lot for you are advice
And for it is not possible to move file on linux comp
I will be really helpfull if u Show me how to modify registry to increase
the number of user to file @ one time
Thanks a lot Again
 
Old 11-18-2009, 08:55 AM   #9
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,595

Rep: Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569
Quote:
Originally Posted by ashraflinux1@gmail.com View Post
Hey thaks a lot for you are advice
And for it is not possible to move file on linux comp
I will be really helpfull if u Show me how to modify registry to increase
the number of user to file @ one time
Thanks a lot Again
Your posts are still confusing...please write clearly.

Also, the registry is a Windows XP thing. Perhaps you'd have better luck getting an answer from a Windows forum. This is LinuxQuestions...I think you've come across something that's Windows-related, and would be better of on a Windows forum.
 
Old 11-25-2009, 04:56 AM   #10
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
To increase the maximum number of clients at a time that XP allows, you may want to resort to Google or Microsoft's site to find the answer. I don't know if there is a registry setting for that. It is possible that MS put in an artificial limitation to encourage you to purchase a Windows server (and pay the higher license fees). Such a limitation may not have a registry workaround.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
getting sambe to set the proper permissions on the client, help lhorace Linux - Newbie 2 10-26-2009 11:40 AM
Sambe Login, passsword not requested rcrosoer Linux - Networking 3 02-26-2009 05:23 AM
Networking with windows using sambe Micik Linux - Networking 8 06-21-2006 01:37 PM
Share problem Al_666 Linux - Hardware 3 11-28-2005 06:57 AM
Is there a comprehensive Sambe user tutorial? Sophist Linux - Networking 1 09-14-2004 11:13 AM


All times are GMT -5. The time now is 01:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration