The Samba-Bugzilla – Attachment 357 Details for
Bug 259
smbclient can resolve netbios name as root, but not as a normal user
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixes root problem - gives each user own lock and pid dirs
samba-3.0.0-userpidlockfiles.patch (text/plain), 861 bytes, created by
George J Karabin
on 2004-01-09 18:47:43 UTC
(
hide
)
Description:
Fixes root problem - gives each user own lock and pid dirs
Filename:
MIME Type:
Creator:
George J Karabin
Created:
2004-01-09 18:47:43 UTC
Size:
861 bytes
patch
obsolete
>--- samba-3.0.0/source/param/loadparm.c.nouser 2004-01-09 17:06:57.000000000 -0800 >+++ samba-3.0.0/source/param/loadparm.c 2004-01-09 17:04:42.000000000 -0800 >@@ -1341,8 +1341,20 @@ > > string_set(&Globals.szPasswdProgram, ""); > string_set(&Globals.szPrintcapname, PRINTCAP_NAME); >- string_set(&Globals.szPidDir, dyn_PIDDIR); >- string_set(&Globals.szLockDir, dyn_LOCKDIR); >+ if(!getuid()) { >+ string_set(&Globals.szPidDir, dyn_PIDDIR); >+ string_set(&Globals.szLockDir, dyn_LOCKDIR); >+ } else { >+ char *user, *td; >+ >+ user = getenv("USER"); >+ asprintf(&td, "/tmp/samba-piddir-%s", user); >+ string_set(&Globals.szPidDir, td); >+ free(td); >+ asprintf(&td, "/tmp/samba-lockdir-%s", user); >+ string_set(&Globals.szLockDir, td); >+ free(td); >+ } > string_set(&Globals.szSocketAddress, "0.0.0.0"); > pstrcpy(s, "Samba "); > pstrcat(s, SAMBA_VERSION_STRING);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 259
:
60
|
357
|
358