Re: [Samba] Fwd: Win 7 Pro

2011-10-05 Thread Oto BREZINA



On 2011-10-03 19:51, John Drescher wrote:

 On Mon, Oct 3, 2011 at 1:46 PM,   wrote:

 On 2011-10-03 19:40, John Drescher wrote:

 Is there anything else I may try ?

 Make sure you have your WINS settings in your windows 7 client so that
 the client can find the PDC.

 Any hint in this ? In ipconfig I see only WINS proxy disabled.


 I usually set the PDC as a WINS server and add that to the windows
 client. Or make sure your DNS servers have the PDC records so the
 windows client can find the PDC.

Is there any command to verify this ? e.g. nslookup for dns. I have DNS
not updated with WINS, DNS is running on other machine.

I can nslookup for server name but not domain. I think this is logical..

If I would like to WINS where to go ?

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


Re: [Samba] smbd: PANIC (pid xxxxx): internal error -- ? causes?

2011-10-05 Thread Linda W



This what you looking for?

(gdb) where
#0  0x7faa1b6b126e in waitpid () from /lib64/libc.so.6
#1  0x7faa1b64c491 in do_system () from /lib64/libc.so.6
#2  0x7faa1dba319a in smb_panic ()
#3  0x7faa1db93996 in sig_fault ()
#4  
#5  0x7faa1b654f54 in vfprintf () from /lib64/libc.so.6
#6  0x7faa1b67bea2 in vsnprintf () from /lib64/libc.so.6
#7  0x7faa1b65c3c3 in snprintf () from /lib64/libc.so.6
#8  0x7faa1db92e54 in dbghdrclass ()
#9  0x7faa1a166dcd in recycle_unlink ()
  from /usr/lib64/samba/vfs/recycle.so
#10 0x7faa1d9b9c36 in smb_vfs_call_unlink ()
#11 0x7faa1d9b50ca in close_file ()
#12 0x7faa1d98cfc5 in reply_close ()
#13 0x7faa1d9c94e8 in switch_message ()
#14 0x7faa1d9c970d in process_smb ()
#15 0x7faa1d9c9f02 in smbd_server_connection_handler ()
#16 0x7faa1dbb233b in run_events ()
#17 0x7faa1d9cb0d8 in smbd_process ()
#18 0x7faa1de68d85 in smbd_accept_connection ()
#19 0x7faa1dbb233b in run_events ()
#20 0x7faa1dbb2497 in s3_event_loop_once ()
#21 0x7faa1dbb2e20 in _tevent_loop_once ()
#22 0x7faa1de69fed in main ()

also had a bunch of these in messages log (not samba logs), but despite 
the claim on the
final line -- it wasn't dumping core (at least not where it said it 
was...maybe I'll find

a core stash someday...) ;-)


Oct  3 11:13:01 Ishtar smbd[16169]: [2011/10/03 11:13:01,  0] 
lib/fault.c:46(fault_report)
Oct  3 11:13:01 Ishtar smbd[16169]:   
===
Oct  3 11:13:01 Ishtar smbd[16169]: [2011/10/03 11:13:01,  0] 
lib/fault.c:47(fault_report)
Oct  3 11:13:01 Ishtar smbd[16169]:   INTERNAL ERROR: Signal 11 in pid 16169 
(3.5.11)
Oct  3 11:13:01 Ishtar smbd[16169]:   Please read the Trouble-Shooting section 
of the Samba3-HOWTO
Oct  3 11:13:01 Ishtar smbd[16169]: [2011/10/03 11:13:01,  0] 
lib/fault.c:49(fault_report)
Oct  3 11:13:01 Ishtar smbd[16169]:   
Oct  3 11:13:01 Ishtar smbd[16169]:   From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf

Oct  3 11:13:01 Ishtar smbd[16169]: [2011/10/03 11:13:01,  0] 
lib/fault.c:50(fault_report)
Oct  3 11:13:01 Ishtar smbd[16169]:   
===
Oct  3 11:13:01 Ishtar smbd[16169]: [2011/10/03 11:13:01,  0] 
lib/util.c:1468(smb_panic)
Oct  3 11:13:01 Ishtar smbd[16169]:   PANIC (pid 16169): internal error
Oct  3 11:13:01 Ishtar smbd[16169]: [2011/10/03 11:13:01,  0] 
lib/util.c:1572(log_stack_trace)
Oct  3 11:13:01 Ishtar smbd[16169]:   BACKTRACE: 24 stack frames:
Oct  3 11:13:01 Ishtar smbd[16169]:#0 /usr/sbin/smbd(log_stack_trace+0x1c) 
[0x7f7120093031]
Oct  3 11:13:01 Ishtar smbd[16169]:#1 /usr/sbin/smbd(smb_panic+0x55) 
[0x7f7120093134]
Oct  3 11:13:01 Ishtar smbd[16169]:#2 /usr/sbin/smbd(fault_setup+0) 
[0x7f7120083996]
Oct  3 11:13:01 Ishtar smbd[16169]:#3 /lib64/libc.so.6(+0x32b30) 
[0x7f711db31b30]
Oct  3 11:13:01 Ishtar smbd[16169]:#4 /lib64/libc.so.6(_IO_vfprintf+0x3944) 
[0x7f711db44f54]
Oct  3 11:13:01 Ishtar smbd[16169]:#5 /lib64/libc.so.6(vsnprintf+0xa2) 
[0x7f711db6bea2]
Oct  3 11:13:01 Ishtar smbd[16169]:#6 /lib64/libc.so.6(snprintf+0x83) 
[0x7f711db4c3c3]
Oct  3 11:13:01 Ishtar smbd[16169]:#7 /usr/sbin/smbd(dbghdrclass+0x18c) 
[0x7f7120082e54]
Oct  3 11:13:01 Ishtar smbd[16169]:#8 
/usr/lib64/samba/vfs/recycle.so(+0x2dcd) [0x7f711c3cadcd]
Oct  3 11:13:01 Ishtar smbd[16169]:#9 
/usr/sbin/smbd(smb_vfs_call_unlink+0x29) [0x7f711fea9c36]
Oct  3 11:13:01 Ishtar smbd[16169]:#10 /usr/sbin/smbd(close_file+0x13b4) 
[0x7f711fea50ca]
Oct  3 11:13:01 Ishtar smbd[16169]:#11 /usr/sbin/smbd(reply_close+0x188) 
[0x7f711fe7cfc5]
Oct  3 11:13:01 Ishtar smbd[16169]:#12 /usr/sbin/smbd(+0x16b4e8) 
[0x7f711feb94e8]
Oct  3 11:13:01 Ishtar smbd[16169]:#13 /usr/sbin/smbd(+0x16b70d) 
[0x7f711feb970d]
Oct  3 11:13:01 Ishtar smbd[16169]:#14 /usr/sbin/smbd(+0x16bf02) 
[0x7f711feb9f02]
Oct  3 11:13:01 Ishtar smbd[16169]:#15 /usr/sbin/smbd(run_events+0x25b) 
[0x7f71200a233b]
Oct  3 11:13:01 Ishtar smbd[16169]:#16 /usr/sbin/smbd(smbd_process+0x950) 
[0x7f711febb0d8]
Oct  3 11:13:01 Ishtar smbd[16169]:#17 /usr/sbin/smbd(+0x60ad85) 
[0x7f7120358d85]
Oct  3 11:13:01 Ishtar smbd[16169]:#18 /usr/sbin/smbd(run_events+0x25b) 
[0x7f71200a233b]
Oct  3 11:13:01 Ishtar smbd[16169]:#19 /usr/sbin/smbd(+0x354497) 
[0x7f71200a2497]
Oct  3 11:13:01 Ishtar smbd[16169]:#20 
/usr/sbin/smbd(_tevent_loop_once+0x82) [0x7f71200a2e20]
Oct  3 11:13:01 Ishtar smbd[16169]:#21 /usr/sbin/smbd(main+0x10ec) 
[0x7f7120359fed]
Oct  3 11:13:01 Ishtar smbd[16169]:#22 
/lib64/libc.so.6(__libc_start_main+0xfd) [0x7f711db1dbfd]
Oct  3 11:13:01 Ishtar smbd[16169]:#23 /usr/sbin/smbd(+0xf4ea9) 
[0x7f711fe42ea9]
Oct  3 11:13:01 Ishtar smbd[16169]: [2011/10/03 11:13:01,  0] 
lib/fault.c:326(dump_core)
Oct  3 11:13:01 Ishtar smbd[16169]:   dumping core in /var/log/samba/cores/smbd



[repeated 6 times w/same timest

[Samba] Access registry on remote Windows machine?

2011-10-05 Thread Ken D'Ambrosio
Hi, all.  I just bumped into an old script that used SambaTNG's rpcclient to
access a remote Windows machine's registry:

rpcclient -S $ip -U administrator\%pwd -c 'registry key enum "$query"'

That's pretty slick -- but I see no way to accomplish this through stock Samba,
be it rppcclient or something else.  Am I missing something?

Thanks!

-Ken





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


[Samba] [Re: Samba4 and sysvol share]

2011-10-05 Thread felix

> To see the content of sysvol from a Windows client I had to authenticate
> using a user of my new domain, but again when I checked the Security Tab
> in sysvol I saw that Everyone has special permissions, meaning Full
> Access.
>
> Does it have something to do with the filesystem support mentioned in the
> HowTo???
>

I found a temporary solution.
Once I have defined the Policies for my domain I edit smb.conf and change
read only to Yes in sysvol section, then restart samba. This way I ensure
nobody can modify sysvol content.

The main disadvantage is that if we need to make any modification to
policies, etc. we have to set back read only to No in sysvol section,
restart samba, and do the previous steps again after modifications.

Best regards,
Felix.


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


Re: [Samba] USB Drive Permissions?

2011-10-05 Thread noleksin

Okay, it looks like things are working now.
I have the following fstab entry for the drive I'm trying to share:

#  
UUID=349E7C109E7BC8BE /media/Personal1 ntfs-3g users,noexec,nosuid,nodev 0 0

It appears that I can just force the filesystem to ntfs-3g and go from  
there ie fuseblk is for local users who want to mount the drive.

I am still dealing with the locking issue, though. Working on it...
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Winbind + PHP question

2011-10-05 Thread Denis BUCHER

Dear all,

Le 29.09.2011 23:15, Denis BUCHER a écrit :

I would like to set up NTLM identification through PHP.

I found PHP a script using pdbedit like that :
# pdbedit -w dbucher
dbucher:1000::0A61536D7F19D800F7B683D3E1B3278B:[UX
]:LCT-4CDD7B2C:

But now I would like to do the same with wbinfo, do you think it is
possible ?

To summarize, I would like people logged in the domain with Windows to
open our PHP application without having to login, using NTLM.


I would really appreciate some help, but it seems to inspire nobody.
If you need more details or background to be able to help, I would be 
glad to provide more information...


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


Re: [Samba] Samba Printing api_rpcTNP: \spoolss: SPOOLSS_OPENPRINTEREX failed

2011-10-05 Thread Achim Gottinger
Last week i backported weezys 3.5.11 samba package to lenny and I still 
go these random errors. I went back to lenny version 3.2.5 and since 
then printing works fine. Guess that sorts out network related issues. 
Will monitor printing for an few more days and then try an samba version 
which supports win7 clients.


achim~


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


Re: [Samba] Samba users profiles directory failing to mount in windows client

2011-10-05 Thread Jan Geep
On Tue, Oct 4, 2011 at 10:57 PM, Harry Jede  wrote:
> Use "netbios name" instead of "netbios aliases"


Thanks Harry, that would certainly make sense, although I do have it
in my smb.conf.master

snip-
   # grep netbios smb.conf.master
   netbios name = TEST
   netbios aliases = TESTSRV
snip-

It appears that when I do a  "testparm -s smb.conf.master > smb.conf"
that netbios name is getting stripped but there is no indication as to
why,  and it looks like it is not getting read if I add it manually to
smb.conf:

snip-
# testparm -s smb.conf.master > smb.conf
Load smb config files from smb.conf.master
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[netlogon]"
Global parameter logon script found in service section!
Processing section "[Profiles]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
snip-

Some additional information that my be helpful to anyone who might be
able to assist in troubleshooting::

output of smbclient -L (same results for both nbname and nbalias)
snip-
# smbclient -L //TEST
Enter root's password:
Domain=[TESTDOMAIN] OS=[Unix] Server=[Samba 3.5.8]

Sharename   Type  Comment
-     ---
IPC$IPC   IPC Service (Samba 3.5.8)
rootDisk  Home Directories
Domain=[TESTDOMAIN] OS=[Unix] Server=[Samba 3.5.8]

Server   Comment
----
TEST Samba 3.5.8
WRKSTN
TESTSRV  Samba 3.5.8

WorkgroupMaster
----
TESTMDOMAIN  TEST
INTERNAL TESTSRV
WORKGROUPUSERNAME
snip-

Server hostname
snip-
 # more /etc/hosts
127.0.0.1   localhost
10.1.0.10   test.testdomain  test
snip-

both smbd and nmbd are running
snip-
# ps aux | grep mbd
root  2319  0.0  0.0   9132  1056 pts/1S+   13:24   0:00
grep --color=auto mbd
root 21792  0.0  0.1  89776  5296 ?Ss   Oct04   0:00 smbd -F
root 21796  0.0  0.0  89776  2000 ?SOct04   0:00 smbd -F
root 21804  0.0  0.0  61884  2276 ?Ss   Oct04   0:04 nmbd -D
snip-

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


[Samba] show only existing userhomes

2011-10-05 Thread Zabel, Daniel
Hi,

 

Is it possible to show only userhomes that really exist in filesystem?

Only a few userhomes do exist on our samba fileserver , but at this moment for 
every user that connect to this server a userhome is shown, but mostly it 
doesn´t exists - so it couldn´t be opened.

I´ve tried to configure it by using "hide unreadable = yes" on our homeshare 
but this didn´t help.

 

Any Idea?

 

We use Samba 3.6.0.

 

Cheers,

 

Daniel

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


Re: [Samba] Can Samba allow both local and domain logons

2011-10-05 Thread Volker Lendecke
On Mon, Oct 03, 2011 at 09:44:04AM +1100, Leigh Wedding wrote:
> Hi,
> 
> Is it possible to configure a Samba domain member server 
> to allow logon for both domain users (authenticated by a
> domain controller), and locally defined  users  (defined
> in eg. /etc/samba/private/passdb.tdb)?

Nothing to configure. It does so automatically. You have to
prepend either DOMAIN\username or HOSTNAME\username when you
log in, just like Windows expects it.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba