[Samba] Waiting for the domain list to be created

2009-08-09 Thread Sven Hazejager
Hi,

Very strange problem here: I have a laptop that I'm in the process of
reinstalling with XP SP3. I've done that a number of times over the
past week to do some test runs. I have also successfully added it to
my local Samba domain before. And as of today, I cannot anymore, even
after a number of re-installations!

Symptom: joining the domain seems to go fine (both during install and
later in XP through the network change dialog -- Welcome to the BLAH
domain). However, I get a Waiting for the domain list to be created
error at the login page! After pressing CTRL-ALT-DEL a couple of times
I can get rid of it and select the BLAH domain, but I cannot log any
user in.

This all works on another laptop and desktop (however I am unwilling
to try and unjoin/re-join them).

Running Samba 3.3.6 on FreeBSD 7.2. Earlier today I was still on
3.0.26 and upgrading to 3.3.6 has made zero difference.

Where do I start looking?

Thanks,

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


Re: [Samba] Waiting for the domain list to be created

2009-08-09 Thread smb23wc

Sven Hazejager wrote:

reinstalling with XP SP3. I've done that a number of times over the
past week to do some test runs. I have also successfully added it to
my local Samba domain before. And as of today, I cannot anymore, even
after a number of re-installations!


Dunno about your root problem.  But I would suggest test clients on MS 
Virtual PC or VMware can make testing such things a lot easier.


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


[Samba] folder/users privileges

2009-08-09 Thread Surendil

Hello everyone.
I been working up with samba shared folders, but have some troubles with
users/folder privileges.
Users: ale jvillar

I got a folder named BACKUP
users ale and jvillar can read/write this folder
inside BACKUP is another folder named MAIL BACKUP
i want user ale to read/write this folder and user jvillar only read.
Even though i tried everything i could think of nothing worked out the way i
wanted too.
Did anyone solved this?

Here is my smb.conf



[global]
workgroup = shibusen
netbios name = FileServer
server string = FILE SERVER
os level = 64
preferred master = no
domain master = no
local master = no
wins support = yes
debug level = 2
log file = /usr/local/samba/var/log.%U
max log size = 50
security = user
encrypt passwords = yes
logon script = logon.bat
logon path = \\%L\profiles\%U
logon drive = H:
logon home = \\%L\%U
time server = yes
add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null '%u'

[backup]
path = /home/backup
comment = backup
valid users = jvillar ale
write list = jvillar ale
read only = no
available = yes
browseable = no
writable = no
guest ok = no
public = no

[mail backup]
path = /home/backup/mails
comment = mail backup
valid users = ale jvillar
write list = ale
read only = no
available = yes
browsable = yes
writable = no
guest ok = no
public = no
-- 
View this message in context: 
http://www.nabble.com/folder-users-privileges-tp24809320p24809320.html
Sent from the Samba - General mailing list archive at Nabble.com.

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


[Samba] Samba on Solaris 10 , cannot read socket option

2009-08-09 Thread Mike Hang


-- 
View this message in context: 
http://www.nabble.com/Samba-on-Solaris-10-%2C-cannot-read-socket-option-tp24819984p24819984.html
Sent from the Samba - General mailing list archive at Nabble.com.

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


[Samba] Samba on Solaris 10 , cannot read socket option

2009-08-09 Thread Mike Hang

Any expert samba , I have problem to setup configuration files

Samba 3.0.24 on solaris 10 not recognize socket option 

socket options = socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY
SO_RCVBUF=32768 SO_SNDBUF=32768

my error log 

[2009/08/05 10:55:51, 0] lib/util_sock.c:set_socket_options(261)
  Failed to set socket option SO_KEEPALIVE (Error Invalid argument)
[2009/08/05 10:55:51, 0] lib/util_sock.c:set_socket_options(261)
  Failed to set socket option IPTOS_LOWDELAY (Error Invalid argument)
[2009/08/05 10:55:51, 0] lib/util_sock.c:set_socket_options(261)
  Failed to set socket option SO_RCVBUF (Error Invalid argument)
[2009/08/05 10:55:51, 0] lib/util_sock.c:set_socket_options(261)
  Failed to set socket option SO_SNDBUF (Error Invalid argument)
[2009/08/05 10:55:51, 0] lib/util_sock.c:get_peer_addr(1229)
  getpeername failed. Error was Transport endpoint is not connected
-- 
View this message in context: 
http://www.nabble.com/Samba-on-Solaris-10-%2C-cannot-read-socket-option-tp24820033p24820033.html
Sent from the Samba - General mailing list archive at Nabble.com.

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


[Samba] Samba

2009-08-09 Thread sub_woofer

Hello all

How do I stop or how can I change the following:

Currently whenever a user using their windows PC accesses a share on the
ubuntu server a directory is created for that user and their machine
containing the following documents:-

1) .bash_logout
2).bashrc
3).profile

How can I prevent this info (if required) being stored in the share
directory?

Many thanks in advance

t.

-- 
View this message in context: 
http://www.nabble.com/Samba-tp24823804p24823804.html
Sent from the Samba - General mailing list archive at Nabble.com.

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


[Samba] Samba

2009-08-09 Thread sub_woofer

Hello all

How do I stop or how can I change the following:

Currently whenever a user using their windows PC accesses a share on the
ubuntu server a directory is created for that user and their machine
containing the following documents:-

1) .bash_logout
2).bashrc
3).profile

How can I prevent this info (if required) being stored in the share
directory?

Many thanks in advance

t.

-- 
View this message in context: 
http://www.nabble.com/Samba-tp24823805p24823805.html
Sent from the Samba - General mailing list archive at Nabble.com.

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


Re: [Samba] Tuning the performance of Samba over LAN network to improve I/O performance

2009-08-09 Thread Rob Shinn
On Wed, Aug 05, 2009 at 05:46:19PM -0700, Jeremy Allison wrote:
 On Wed, Aug 05, 2009 at 07:34:51PM -0500, Himanshu Thapar wrote:
  Thank youOkay..can you explain how can I go about with hdparm or
  guide me to an appropriate link. Also how will this help me in diagnosing
  the current problem?
 
The following thread on Ubuntu Forums is an excellent guide to hdparm:

http://ubuntuforums.org/archive/index.php/t-16360.html

Also, read the man page. 


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


[Samba] sys_setgroups in samba-3.3.X fails, cause a panic

2009-08-09 Thread Zhou Weikuan
Hi All,
Samba-3.3 updates source3/smbd/sec_ctx.c, checks the return value of 
sys_setgroups, panic if sys_setgroups fails. This is OK for linux platforms, 
because from linux-2.6.4, NGROUP_MAX in linux support at most 65535 groups(32 
groups before linux-2.6.4), it should be enough for most cases. But for 
Solaris, this has a much more possibility to cause a panic, solaris only 
support at most 16 groups.
There must be some reasons that samba should check the return value and panic 
if fails, yet the commit doesn't shed enough information. Does anyone here like 
to help me understand what is the problem if we still follow the original way 
to handle failure of sys_setgroup? Why is the failure so severe that we must 
panic instead of any other handlings. Could we switch to other methods? For 
example, check the number of groups first, and if it exceeds the limit 
NGROUP_MAX, just truncate the groups and then call sys_setgroups? 

Thanks,
2009-08-06 



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


[Samba] This is happening too

2009-08-09 Thread Chris Lavin
creating /altroot/samba-3.4.0/source3/exports/libnetapi.syms
Linking shared library bin/libnetapi.so.0
Compiling libsmb/libsmb_cache.c
In file included from libsmb/libsmb_cache.c:24:
include/libsmbclient.h:78:25: sys/statvfs.h: No such file or directory
In file included from libsmb/libsmb_cache.c:24:
include/libsmbclient.h:875: warning: `struct statvfs' declared inside
parameter list
include/libsmbclient.h:875: warning: its scope is only this definition or
declaration, which is probably not what you want
include/libsmbclient.h:881: warning: `struct statvfs' declared inside
parameter list
include/libsmbclient.h:1643: warning: `struct statvfs' declared inside
parameter list
include/libsmbclient.h:1666: warning: `struct statvfs' declared inside
parameter list
In file included from libsmb/libsmb_cache.c:25:
include/libsmb_internal.h:515: warning: `struct statvfs' declared inside
parameter list
include/libsmb_internal.h:521: warning: `struct statvfs' declared inside
parameter list
The following command failed:
gcc -O -I. -I/altroot/samba-3.4.0/source3
-I/altroot/samba-3.4.0/source3/../lib/popt
-I/altroot/samba-3.4.0/source3/iniparser/src -Iinclude -I./include  -I. -I.
-I./../lib/replace -I./../lib/talloc -I./../lib/tevent
-I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -DHAVE_CONFIG_H
-I/usr/include/kerberosV -Iinclude -I./include -I. -I. -I./../lib/replace
-I./../lib/talloc -I./../lib/tevent -I./../lib/tdb/include -I./libaddns
-I./librpc -I./.. -I./../lib/popt -I/usr/local/include -DLDAP_DEPRECATED
-I/altroot/samba-3.4.0/source3/lib -I.. -I../source4 -D_SAMBA_BUILD_=3
-D_SAMBA_BUILD_=3 -fPIC -c libsmb/libsmb_cache.c -o libsmb/libsmb_cache.o
make: *** [libsmb/libsmb_cache.o] Error 1
 
Can anyone point me in the right direction?
 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] 20 second delays when accessing Samba on Fedora 11

2009-08-09 Thread Chris Roubekas
Hi,

Just a thought, have you checked your nic for problems?


I once had the same problem and it turned out to an nic problem.

Cr.

-Original Message-
From: Ryan Novosielski novos...@umdnj.edu
To: samba@lists.samba.org
Sent: 07/08/09 11:42 PM
Subject: Re: [Samba] 20 second delays when accessing Samba on Fedora 11

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jeremy Allison wrote:
 On Thu, Aug 06, 2009 at 07:59:34PM -0400, Altan (aol.com) wrote:
 I had samba running fine on a Fedora 6 machine.  I've upgraded to Fedora  
 11 and I'm getting huge delays when first accessing a folder.  With  
 Fedora 11 I'm ussing samba-3.3.2-0.33.fc11.i586.

 I'm getting about 60+ second delays before being requested to enter my  
 username/password.

 I've used WireShark and can see

 1) Session Setup AndX Request, NTLMSSP_NEGOTIATE
 2) 20 seconds pass
 3) Session Setup AndX Request, NTLMSSP_AUTH, User: xxx/yyy from my PC
 4) 20 seconds passes
 5) Session Setup AndX Request, NTLMSSP_AUTH, User: xxx/yyy from my PC
 6) again, 20 sec
 7) Session Setup AndX Request, NTLMSSP_AUTH, User: xxx/yyy from my PC

 Then it asks me for username/password and I can access the share.

 There isn't anything unique in my smb.conf compared to before (when it  
 worked well with Fedora 6).   Highlights are below.
 
 H. Name resolution lookup timeouts ? Possibly IPv6 related
 (just a guess).

I had a similar odd situation on RedHat at one point (old stuff,
probably 9.x) where for some reason, the upon connecting to the machine,
it would try to contact a former IP address it had for a really long
time, eventually time out, and then connect to the right address. I
never did figure out why it was doing that.

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$| |__| |  | |__/ | \| _| |novos...@umdnj.edu - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/CST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkp8kcEACgkQmb+gadEcsb6WyQCfZCyANeKlHbqT5uQT+vB0GKa1
CxUAn0WdtECMtXPGbtMS8SGzj2Ym2nVB
=0/6n
-END PGP SIGNATURE-

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


Build status as of Sun Aug 9 06:00:01 2009

2009-08-09 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2009-08-08 
00:00:07.0 -0600
+++ /home/build/master/cache/broken_results.txt 2009-08-09 00:00:03.0 
-0600
@@ -1,4 +1,4 @@
-Build status as of Sat Aug  8 06:00:01 2009
+Build status as of Sun Aug  9 06:00:01 2009
 
 Build counts:
 Tree Total  Broken Panic 
@@ -6,17 +6,17 @@
 ccache   34 8  0 
 distcc   0  0  0 
 ldb  34 33 0 
-libreplace   2  0  0 
+libreplace   33 13 0 
 lorikeet 0  0  0 
-pidl 22 3  0 
-ppp  13 1  0 
-rsync4  1  0 
+pidl 24 3  0 
+ppp  15 1  0 
+rsync33 13 0 
 samba-docs   0  0  0 
 samba-web0  0  0 
 samba_3_current 30 20 0 
-samba_3_master 31 27 6 
+samba_3_master 31 27 7 
 samba_3_next 31 27 1 
-samba_4_0_test 34 29 1 
-talloc   5  4  0 
+samba_4_0_test 34 29 4 
+talloc   33 32 0 
 tdb  32 31 0 
 


[SCM] CTDB repository - branch master updated - ctdb-1.0.87-44-ga42dbdb

2009-08-09 Thread Ronnie Sahlberg
The branch, master has been updated
   via  a42dbdb7b9ccf3ce2aed48aa33f1cd3af2e94fe3 (commit)
   via  9a251078f22aea15b9ca37393e0b5e2740aa21fb (commit)
  from  836b95f32724cf37e4f643f20653f78842613692 (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master


- Log -
commit a42dbdb7b9ccf3ce2aed48aa33f1cd3af2e94fe3
Merge: 836b95f32724cf37e4f643f20653f78842613692 
9a251078f22aea15b9ca37393e0b5e2740aa21fb
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Mon Aug 10 07:33:52 2009 +1000

Merge r...@10.1.1.27:/shared/ctdb/ctdb-git

commit 9a251078f22aea15b9ca37393e0b5e2740aa21fb
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Mon Aug 3 12:51:55 2009 +1000

update STOP/CONTINUE to better handle when we stop the last node

---

Summary of changes:
 tools/ctdb.c |   74 -
 1 files changed, 72 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/tools/ctdb.c b/tools/ctdb.c
index d576fd4..90c7862 100644
--- a/tools/ctdb.c
+++ b/tools/ctdb.c
@@ -1555,15 +1555,34 @@ static void ip_reallocate_handler(struct ctdb_context 
*ctdb, uint64_t srvid,
exit(0);
 }
 
+static void ctdb_every_second(struct event_context *ev, struct timed_event 
*te, struct timeval t, void *p)
+{
+   struct ctdb_context *ctdb = talloc_get_type(p, struct ctdb_context);
+
+   event_add_timed(ctdb-ev, ctdb, 
+   timeval_current_ofs(1, 0),
+   ctdb_every_second, ctdb);
+}
+
 /*
   ask the recovery daemon on the recovery master to perform a ip reallocation
  */
 static int control_ipreallocate(struct ctdb_context *ctdb, int argc, const 
char **argv)
 {
-   int ret;
+   int i, ret;
TDB_DATA data;
struct rd_memdump_reply rd;
uint32_t recmaster;
+   struct ctdb_node_map *nodemap=NULL;
+   int retries=0;
+   struct timeval tv = timeval_current();
+
+   /* we need some events to trigger so we can timeout and restart
+  the loop
+   */
+   event_add_timed(ctdb-ev, ctdb, 
+   timeval_current_ofs(1, 0),
+   ctdb_every_second, ctdb);
 
rd.pnn = ctdb_ctrl_getpnn(ctdb, TIMELIMIT(), CTDB_CURRENT_NODE);
if (rd.pnn == -1) {
@@ -1580,23 +1599,74 @@ static int control_ipreallocate(struct ctdb_context 
*ctdb, int argc, const char
data.dptr = (uint8_t *)rd;
data.dsize = sizeof(rd);
 
+again:
+   if (retries5) {
+   DEBUG(DEBUG_ERR,(Failed waiting for cluster convergense\n));
+   exit(10);
+   }
+
+   /* check that there are valid nodes available */
+   if (ctdb_ctrl_getnodemap(ctdb, TIMELIMIT(), options.pnn, ctdb, 
nodemap) != 0) {
+   DEBUG(DEBUG_ERR, (Unable to get nodemap from local node\n));
+   exit(10);
+   }
+   for (i=0; inodemap-num;i++) {
+   if ((nodemap-nodes[i].flags  
(NODE_FLAGS_DELETED|NODE_FLAGS_BANNED|NODE_FLAGS_STOPPED)) == 0) {
+   break;
+   }
+   }
+   if (i==nodemap-num) {
+   DEBUG(DEBUG_ERR,(No recmaster available, no need to wait for 
cluster convergence\n));
+   return 0;
+   }
+
+
ret = ctdb_ctrl_getrecmaster(ctdb, ctdb, TIMELIMIT(), options.pnn, 
recmaster);
if (ret != 0) {
DEBUG(DEBUG_ERR, (Unable to get recmaster from node %u\n, 
options.pnn));
return ret;
}
 
+   /* verify the node exists */
+   if (ctdb_ctrl_getnodemap(ctdb, TIMELIMIT(), recmaster, ctdb, nodemap) 
!= 0) {
+   DEBUG(DEBUG_ERR, (Unable to get nodemap from local node\n));
+   exit(10);
+   }
+
+   /* verify the recovery master is not STOPPED, nor BANNED */
+   if (nodemap-nodes[recmaster].flags  
(NODE_FLAGS_DELETED|NODE_FLAGS_BANNED|NODE_FLAGS_STOPPED)) {
+   DEBUG(DEBUG_ERR,(No suitable recmaster found. Try again\n));
+   retries++;
+   sleep(1);
+   goto again;
+   } 
+
+   
+   /* verify the recovery master is not STOPPED, nor BANNED */
+   if (nodemap-nodes[recmaster].flags  
(NODE_FLAGS_DELETED|NODE_FLAGS_BANNED|NODE_FLAGS_STOPPED)) {
+   DEBUG(DEBUG_ERR,(No suitable recmaster found. Try again\n));
+   retries++;
+   sleep(1);
+   goto again;
+   } 
+
ret = ctdb_send_message(ctdb, recmaster, CTDB_SRVID_TAKEOVER_RUN, data);
if (ret != 0) {
DEBUG(DEBUG_ERR,(Failed to send ip takeover run request 
message to %u\n, options.pnn));
return -1;
}
 
+   tv = timeval_current();
/* this loop will terminate when we have received the reply */
-   while (1) { 
+