Ask a Question related to Linux / Unix Administration, Design and Development.
-
Troy Piggins #1
clients can access smb server, but only after some time
Hi. I posted this 22/5/04 in linux.samba, and there has not been any
replies there to date, so hope you don't mind me reposting here - this
is a much more active and useful group.
I have been running a samba shared file server (RedHat9 -
samba-3.0.0-2.rpm) for a few years. All has been working fine -
however ...
Lately a couple of the clients (WinXP) have been having trouble
reconnecting mapped network drives at bootup. After some time
(sometimes few minutes, sometimes longer?) they usually do connect.
This delay is not really acceptable in our workplace, obviously.
Extract from /etc/samba/smb.conf as example of one of the shares :
############################
[Projects]
comment = Projects Directory
path = /mnt/office2/projects
; ?? valid users = @staff
public = no
writable = yes
write list = @staff
; read only = No
create mask = 0775
; create mask = 0765
directory mask = 0775
; guest ok = Yes
##############################
All users have been added to staff group and staff has been made
their primary group (not sure if that was necessary, but it worked).
They have all been added to smbpasswd. There are no restrictions on
network addresses (all internal).
Thinking about it, the only thing that has changed before we started
having this connection problem is that I have installed a wireless
network and access point since we expanded into another office. The
samba server and about 10 clients are on a cat5 cable connection to
a switch ( subnet 192.168.0). The wireless access point is also
connected to that switch. The wireless lan pc's (4 of them) have
the same subnet. Didn't think that would be a problem.
The mapped network drive problem is happening to clients on both
wireless and cable connectors.
Any ideas? Similar experiences?
Let me know if you require further information.
--
T R O Y P I G G I N S
e : [email]troy@piggo.com[/email]
Troy Piggins Guest
-
How to give access to my clients?
Hi there, I'm currently developing a CF app with the Developer Edition and I'd like to give access to the files to my client so they can follow... -
determine the clients date & time
When someone submits a form I want to determine the _clients_ date and time. So I can't use now() since that gives me the date and time of the... -
Clients cannot access internet, but server can
Brand new PC with SBS2003. Domain server can access the internet, but client computers cannot. E-mail is all ok, local intranet works fine. ISA... -
difference between run-time, appdev & admin clients
What is the difference between the run-time, application developer and administration clients? I am mostly writing java apps that will use... -
WTT: NT Server w/ 10 Clients
Have Windows NT 4.0 Server with 10 Client licenses. Fully registerable. Wanted Dreamweaver/Flash/Fireworks package. Newest/Registerable only. ... -
Davide Bianchi #2
Re: clients can access smb server, but only after some time
Troy Piggins <troy@piggo.com> wrote:
WinXP has problems reconnecting network shares even if they are> Lately a couple of the clients (WinXP) have been having trouble
> reconnecting mapped network drives at bootup.
Windows Shares! In my network (150 clients) every now and then some
(l)user phones me because 'he can't access the X: disk' (they
can't say 'the directory such-and-such on the server'). And the usual
answer is reboot the fscking machine! And keep in mind that the server
is Winwows and the clients are Winwows and they _are_ updated regularly.
Davide
--
| Il brilgue: les t^oves libricilleux Se gyrent et frillant dans le
| guave, Enm^im'es sont les gougebosquex, Et le m^omerade horgrave.
| -- Lewis Carrol, "Through the Looking Glass"
|
Davide Bianchi Guest
-
Doug Freyburger #3
Re: clients can access smb server, but only after some time
Troy Piggins wrote:
Delay on connection is usually a DNS issue. Broken reverse>
> I have been running a samba shared file server (RedHat9 -
> samba-3.0.0-2.rpm) for a few years. All has been working fine -
> however ...
> Lately a couple of the clients (WinXP) have been having trouble
> reconnecting mapped network drives at bootup. After some time
> (sometimes few minutes, sometimes longer?) they usually do connect.
deligation NS records on the name server. Since these hosts
are Windows oriented that likely means the Active Directory's
DNS function rather than regular DNS.
Happened together with a change on an internal network, check.> Thinking about it, the only thing that has changed before we started
> having this connection problem is that I have installed a wireless
> network and access point since we expanded into another office.
Double check how your DNS is working from the Linux end. Make
sure the reverse zones are properly deligated. If your DNS
server is on Linux make double sure it is receiving complete
updates from DHCP. If your DNS server is the DHCP host make
sure it knows about both forward and reverse DNS and that all
of your static IP numbers are registered.
Doug Freyburger Guest
-
Troy Piggins #4
Re: clients can access smb server, but only after some time
* Doug Freyburger <dfreybur@yahoo.com> [comp.unix.admin]:
<snip>Aah, I think I might look at something. While I don't have an internal> Delay on connection is usually a DNS issue. Broken reverse
> deligation NS records on the name server. Since these hosts
> are Windows oriented that likely means the Active Directory's
> DNS function rather than regular DNS.
DNS set up, because all IPs are static, I think I did put entries in
most of the guys' winnt\sys32\drivers\etc\hosts file (sim to
/etc/hosts). Maybe the problem guys don't have that file yet. Thanks.
Thanks.>>> Thinking about it, the only thing that has changed before we started
>> having this connection problem is that I have installed a wireless
>> network and access point since we expanded into another office.
> Happened together with a change on an internal network, check.
>
> Double check how your DNS is working from the Linux end. Make
> sure the reverse zones are properly deligated. If your DNS
> server is on Linux make double sure it is receiving complete
> updates from DHCP. If your DNS server is the DHCP host make
> sure it knows about both forward and reverse DNS and that all
> of your static IP numbers are registered.
--
T R O Y P I G G I N S
e : [email]troy@piggo.com[/email]
Troy Piggins Guest
-
Troy Piggins #5
Re: clients can access smb server, but only after some time
* Doug Freyburger <dfreybur@yahoo.com> [comp.unix.admin]:
<snip>Found a wrong entry in windows hosts file, and that appears to be it.> Delay on connection is usually a DNS issue. Broken reverse
> deligation NS records on the name server. Since these hosts
> are Windows oriented that likely means the Active Directory's
> DNS function rather than regular DNS.
--
T R O Y P I G G I N S
e : [email]troy@piggo.com[/email]
Troy Piggins Guest
-
jpd #6
Re: clients can access smb server, but only after some time
On 2004-06-23, Troy Piggins <troy@piggo.com> wrote:
[snippety]You do realize that DNS was ment to ease centralized administration of>
> Aah, I think I might look at something. While I don't have an internal
> DNS set up, because all IPs are static, I think I did put entries in
> most of the guys' winnt\sys32\drivers\etc\hosts file (sim to
> /etc/hosts). Maybe the problem guys don't have that file yet. Thanks.
that hosts file[1], and has very little to do with staticness of IPs?
[1] Yes, there used to be a wide distribution of a hosts file, including
use of well-known ftp IPs where you always could get the latest.
Then people got sick of it and invented DNS.
--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
jpd Guest
-
Troy Piggins #7
Re: clients can access smb server, but only after some time
* jpd <read_the_sig@do.not.spam.it> [comp.unix.admin]:
<snip>Yes, I realise that. However I am not a sysadmin, I am an engineer with> You do realize that DNS was ment to ease centralized administration of
> that hosts file[1], and has very little to do with staticness of IPs?
>
>
> [1] Yes, there used to be a wide distribution of a hosts file, including
> use of well-known ftp IPs where you always could get the latest.
> Then people got sick of it and invented DNS.
an interest in things *nix and have set up this network at work in my
own time and at night (my company is too small for a full-time sysadmin)
DNS is probably next on the list now ;-) , although I have looked at it
in the past and got scared off. BIND seems too complicated/complex for the
network I have. I am running samba, and was thinking of the DNS/DHCP/WINS
combo, but since I am just teaching myself as I go (and I do have to
sleep some time) it is all too hard at the moment, and that is
another post ...
Thanks for the advice.
--
T R O Y P I G G I N S
e : [email]troy@piggo.com[/email]
Troy Piggins Guest
-
jpd #8
Re: clients can access smb server, but only after some time
On 2004-06-24, Troy Piggins <troy@piggo.com> wrote:
[snip: dns instead of hosts files everywhere]Well, IME it is one of the easier things to setup, given that it's very> DNS is probably next on the list now ;-) , although I have looked at it
> in the past and got scared off. BIND seems too complicated/complex for the
> network I have.
often distributed with the system already. All you need to do is feed it
the right zone files. Admittedly that can be a bit tricky at first, but
there are some good tutorials around (the ldp DNS HOWTO comes to mind).
Hope you slept when you read this. :-) DNS is still something you really> I am running samba, and was thinking of the DNS/DHCP/WINS
> combo, but since I am just teaching myself as I go (and I do have to
> sleep some time) it is all too hard at the moment, and that is
> another post ...
want to have. DHCP is useful for handing out lots of configuration data
like wins server ips. Don't know about wins integration but if you have
DHCP hand out hostnames as well I think you'll go a long way.
If you can take a few days off to figure it all you might want to
invest in setting up something like sauron[1]; it requires a PostgreSQL
database and a perl-cgi capable httpd (ie apache+mod_perl) but will
present nice forms to make changes and can then generate new forward and
reverse zones, and bind and dhcp configuration files from its database.
I have to say that it required a bit of sql-by-hand to coerce it into
working right (it complained it had no @ zone record and so refused to
let me put one in through its forms, but force-feeding one through the
command line PostgreSQL client was not hard). That may well be fixed now.
[1] [url]http://sauron.jyu.fi/[/url]
--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
jpd Guest
-
Doug Freyburger #9
Re: clients can access smb server, but only after some time
Troy Piggins wrote:
You have Windows on your network. Don't you have Active Directory or>
> However I am not a sysadmin ... BIND seems too complicated/complex for the
> network I have.
NT4 Domain? This will sound bizzare from a guy that is a regular on
comp.unix.admin, but the DNS service supplied by NT Domain or Active
Directory work just fine and it can be set up by SAGE Junior NT folks
like some MCSE from a job shop. Your Unix hosts won't care if the
DNS server runs BIND or if its running Active Directory with DNS
turned on. A server's a server on DNS.
Then again reading and learning and experimenting is good for the
soul, so running BIND on one of your Unix boxes is the religiously
correct way to do it ... from a guy that is a regular on comp.unix.admin.
Doug Freyburger Guest
-
Troy Piggins #10
Re: clients can access smb server, but only after some time
* Doug Freyburger <dfreybur@yahoo.com> [comp.unix.admin]:
<snip>I have no domain set up, just a workgroup (sorry if that offends> You have Windows on your network. Don't you have Active Directory or
> NT4 Domain? This will sound bizzare from a guy that is a regular on
> comp.unix.admin, but the DNS service supplied by NT Domain or Active
> Directory work just fine and it can be set up by SAGE Junior NT folks
> like some MCSE from a job shop. Your Unix hosts won't care if the
> DNS server runs BIND or if its running Active Directory with DNS
> turned on. A server's a server on DNS.
anyone). There are only about 15 machines on it (12 WinXP and 3 linux
servers - samba, imap, apache, iptables, squid, clamassassin,
spamassassin). Again, I may experiment with domain with DNS, but why
fix something that aint broke ...
Don't know about my soul, but it is fun. "Hello, my name is Troy and I> Then again reading and learning and experimenting is good for the
> soul, so running BIND on one of your Unix boxes is the religiously
> correct way to do it ... from a guy that is a regular on comp.unix.admin.
am a learn-a-holic".
--
T R O Y P I G G I N S
e : [email]troy@piggo.com[/email]
Troy Piggins Guest
-
Troy Piggins #11
Re: clients can access smb server, but only after some time
* jpd <read_the_sig@do.not.spam.it> [comp.unix.admin]:
<snip>Seen those tutorials, but I have dumb questions like this :> Well, IME it is one of the easier things to setup, given that it's very
> often distributed with the system already. All you need to do is feed it
> the right zone files. Admittedly that can be a bit tricky at first, but
> there are some good tutorials around (the ldp DNS HOWTO comes to mind).
In the examples they always use "user@example.com" or "domain.com".
Now my company has a domain name "lowstump.com.au", DNS servers on the
internet resolve that to our webhosting provider (not my network because
our IP is dynamically assigned from our cable ISP). That is fine. If I
want to set up a domain at work instead of workgroup, I assume I can't
use "lowstump.com.au", so can I use any name? Can I literally use
"domain.com"? I would like use something logical like
"brisbane.lowstump.com.au". I know some software *needs* FQDN.
Anyway, this was not my original post topic ...
<snip>Yep. Always sleep well, just not long enough.> Hope you slept when you read this. :-)
SQL etc doesn't scare me, but we are running mysql not postgresql and> DNS is still something you really
> want to have. DHCP is useful for handing out lots of configuration data
> like wins server ips. Don't know about wins integration but if you have
> DHCP hand out hostnames as well I think you'll go a long way.
>
> If you can take a few days off to figure it all you might want to
> invest in setting up something like sauron[1]; it requires a PostgreSQL
> database and a perl-cgi capable httpd (ie apache+mod_perl) but will
> present nice forms to make changes and can then generate new forward and
> reverse zones, and bind and dhcp configuration files from its database.
>
> I have to say that it required a bit of sql-by-hand to coerce it into
> working right (it complained it had no @ zone record and so refused to
> let me put one in through its forms, but force-feeding one through the
> command line PostgreSQL client was not hard). That may well be fixed now.
don't want to go down that path.
I will look into that, however. Always looking for new ideas.
Thanks.
--
T R O Y P I G G I N S
e : [email]troy@piggo.com[/email]
Troy Piggins Guest
-
jpd #12
Re: clients can access smb server, but only after some time
On 2004-06-25, Troy Piggins <troy@piggo.com> wrote:
[snip: domains stuff]> * jpd <read_the_sig@do.not.spam.it> [comp.unix.admin]:Yes, standard examples. Example.com is even reserved for examples.> Seen those tutorials, but I have dumb questions like this :
> In the examples they always use "user@example.com" or "domain.com".
Look up its whois entry for kicks.
Arr, wait, an NT domain NOT be the same as a domain-name-system-domain.> Now my company has a domain name "lowstump.com.au", DNS servers on the
> internet resolve that to our webhosting provider (not my network because
> our IP is dynamically assigned from our cable ISP). That is fine. If I
> want to set up a domain at work instead of workgroup,
Let me repeat that; windows notworking workgroups and domains are in
a different universe than the internet protocols. Even if SMB also-runs
over tcp. This is just another case of micros~1 uselessly overloading
terms for no good reason except trying to take over the world.
You can use example.com or domain.com but they're registrable, so> I assume I can't
> use "lowstump.com.au", so can I use any name? Can I literally use
> "domain.com"? I would like use something logical like
> "brisbane.lowstump.com.au". I know some software *needs* FQDN.
> Anyway, this was not my original post topic ...
better not. For test setups you can, ofcourse, but if you want to
really use it locally I suggest using lowstump.local, which both
makes really clear it's not a valid domain and that it is only
ment to be local.
OTOH, you can use brisbane.lowstump.com.au or
office.brisbane.lowstump.com.au or whatever other subdomain of the
domain you have you fancy.
You could even make a deal with your ISP that they AXFR the lowstump...
domain from your server and then duplicate it on theirs. However,
this is fairly advanced, and to get it to work you'll run into
your IP being dynamic, so I suggest using lowstump.local for the
time being. You won't be able to resolve those from the outside
but that isn't what you need right now anyway.
[snip]Don't think sauron will run on mysql (the developers run it on pgsql> SQL etc doesn't scare me, but we are running mysql not postgresql and
> don't want to go down that path.
> I will look into that, however. Always looking for new ideas.
and I haven't checked mysql supportedness lately) but there's another
such system around that might work with mysql. Forgot its name tho.
--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
jpd Guest
-
Troy Piggins #13
Re: clients can access smb server, but only after some time
* jpd <read_the_sig@do.not.spam.it> [comp.unix.admin]:
<snip>Aah, kerplunk. I was thinking they same.> Arr, wait, an NT domain NOT be the same as a domain-name-system-domain.
> Let me repeat that; windows notworking workgroups and domains are in
> a different universe than the internet protocols. Even if SMB also-runs
> over tcp. This is just another case of micros~1 uselessly overloading
> terms for no good reason except trying to take over the world.
I like the idea of lowstump.local for the reasons you mention, and will> You can use example.com or domain.com but they're registrable, so
> better not. For test setups you can, ofcourse, but if you want to
> really use it locally I suggest using lowstump.local, which both
> makes really clear it's not a valid domain and that it is only
> ment to be local.
>
> OTOH, you can use brisbane.lowstump.com.au or
> office.brisbane.lowstump.com.au or whatever other subdomain of the
> domain you have you fancy.
>
> You could even make a deal with your ISP that they AXFR the lowstump...
> domain from your server and then duplicate it on theirs. However,
> this is fairly advanced, and to get it to work you'll run into
> your IP being dynamic, so I suggest using lowstump.local for the
> time being. You won't be able to resolve those from the outside
> but that isn't what you need right now anyway.
try that when I get the time.
Thanks, mate. I have only just started reading this newsgroup and it is
way better than some of the others for both response time and detail.
My original post about samba sat on the *linux.samba* (no less)
newsgroup for over a month with no response. Reposted here and answers
within minutes almost.
You guys rock.
--
T R O Y P I G G I N S
e : [email]troy@piggo.com[/email]
Troy Piggins Guest
-
jpd #14
Re: clients can access smb server, but only after some time
On 2004-06-25, Troy Piggins <troy@piggo.com> wrote:
You're welcome. Can't guarantee this'll happen every time though. :-)> Thanks, mate. I have only just started reading this newsgroup and it is
> way better than some of the others for both response time and detail.
> My original post about samba sat on the *linux.samba* (no less)
> newsgroup for over a month with no response. Reposted here and answers
> within minutes almost.
> You guys rock.
--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
jpd Guest



Reply With Quote

