Bluehost.com Web Hosting $6.95

[Samba] Re: chdir (/root/tmp) failed - but why is it trying?

This is a discussion on [Samba] Re: chdir (/root/tmp) failed - but why is it trying? within the Samba forums, part of the Networking and Network Related category; Back in April I posted this. No-one replied. > I'm seeing this in the log.smbd file for ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-05-2008
Gordon Lack
 
Posts: n/a
Default [Samba] Re: chdir (/root/tmp) failed - but why is it trying?

Back in April I posted this. No-one replied.

> I'm seeing this in the log.smbd file for v3.0.28a.
>
> [2008/04/14 18:29:16, 0] smbd/service.c:set_current_service(184)
> chdir (/root/tmp) failed
>
> This happens straight after a server startup if I connect to my HOME
> directory (and I'm the only person using the server). It is noted in
> the log (debug level 1) *before* the entry about me connecting to my
> home.
>
> There is no mention of /root (or any tmp) in the config file.


Well - I've found out the reason. On the system in question
(Mandriva2007) TMPDIR is set to ~/tmp on login, and I was starting Samba
from the command line (rather than as a service at boot time). When I
unset TMPDIR in the startup script all is OK.

Not sure why Samba decides to chdir to TMPDIR (or rather, to the result
from tmpdir() in lib/util.c) when being queried for IPC$ (?), which
seems to be what is happening ("real" connexions worked OK - it was just
the behind-the-scenes one that failed). But letting this default to
/tmp lets things roll OK.


--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:49 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0