Re: [Samba] Samba and Vista profile probs
Charles Marcus ha scritto: On 4/18/2008, Andrea Venturoli ([EMAIL PROTECTED]) wrote: I have \\PDC\username as home dir and \\PDF\username\profile[.V2] there. Not a good idea... The only problems I see with this is that a user can manually access it. I leave it to them as a responsability: someone even recover their files from there in case they happen to delete them by accident. Sure, sooner or later someone will delete his/her their profile: either it will be recreated or I'll get it back from the backup tapes. MS says you are asking for trouble if you put the profile inside the user home ... I'd also be curious about the rationale behind that... Profiles shoudl be in etheir own, separate share... Probably. However, the whole system has been working this way for eight yeras or so, without the slighest problem... I'd need more than a rumor to convince them to switch... In any case, this is completely irrelevant wrt Vista Profiles, since I and Collen have different setups and still experience the same prolem. bye Thanks av. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] LVM + xfs + Shadow copy
On 4/19/2008, David Disseldorp ([EMAIL PROTECTED]) wrote: Running xfs_freeze -f before the snapshot is taken is very important, as it ensures the filesystem will not be modified while the snapshot is taken. Snapshots may be corrupted if the filesystem is not frozen. Hmmm... Is there an equivalent for reiserfs? I've never done that - although I do stop all mail services before snapshotting (those are the only services that modify the filesystem anyway), and never had a problem (knock on wood)... -- Best regards, Charles -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba and Vista profile probs
On 4/19/2008, Andrea Venturoli ([EMAIL PROTECTED]) wrote: Charles Marcus ha scritto: On 4/18/2008, Andrea Venturoli ([EMAIL PROTECTED]) wrote: I have \\PDC\username as home dir and \\PDF\username\profile[.V2] there. Not a good idea... The only problems I see with this is that a user can manually access it. Well, the way I see it, why give users the power to screw something up if it isn't necessary? If you do, it is only a matter of *when*, not if... I find it strange that you see this as acceptable. If you don't give someone the opportunity/ability to screw something up, then they won't, its that simple. That said, I did this for a number of years too (although I at least made the folder hidden so the user couldn't even see it unless they enabled showing hidden files and folders), and had lots of minor, occasional file corruption in the user profiles that required a chkdsk /f to be run to fix... These problems completely disappeared when I moved the profiles to their own share. At the same time I also redirected the Desktop, Application Data and My Documents folders to their home directory, where prior to that I had manually pointed their My Documents folder to this share. This worked wonderfully to make all of the user profiles extremely small, so now logging in/out is very fast, and have had no file corruption since. This was, however, on a real Windows 2000 Domain Controller though... I have always run Samba with things set up this way since thats how I learned it in the windows world - maybe Samba doesn't have the same problem... Anyway, as I said, it is a free world, and you are free to do things however you like, even if it ends up causing yourself unnecessary grief. -- Best regards, Charles -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Bad file modification date/time stamps created from windows clients
On Tue, Apr 15, 2008 at 12:03:21PM -0700, Greg Barry wrote: The compile on the server was done using gcc ver 4.0.1: ./configure --without-ldap make make install Is there an smb.conf setting which might correct this? Very unlikely. This sounds like a bug somewhere in the chain Samba 3.0.28a - gcc 4.0.1 - HPUX, maybe a Samba bug that only happens in this configuration. Can you file a bug at bugzilla.samba.org and post your smb.conf and a debug level 10 log of smbd? Thanks, Volker pgpBCRpJoSGMI.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] problem with [homes] share for users with unix logins
for those users, you could put sambaHomePath: \\server\homedir in their openldap info. Wes Modes wrote: I have the [homes] section set up in my smb.conf so that \\server.name\user connects to the user's home directory. Since I am using OpenLDAP as a backend via smbldap-tools, for most users the home directory comes from the homeDirectory variable in OpenLDAP. However, when I have a user who also has a login on the samba machine, that is, an entry in /etc/passwd, Samba seems to ignore the value of homeDirectory and use the entry in /etc/passwd instead. Here is the section from smb.conf [homes] comment = %u's Personal Share Directory browseable = no valid users = %S @admin write list = %S @admin create mask = 0600 directory mask = 0700 I even tried adding the line path = /data/home/%S to the [homes] section, but it seems to be ignored. Any suggestions how I can make Samba prefer the value in HomeDirectory over /etc/passwd? Wes -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-263-g13a0941
The branch, v4-0-test has been updated via 13a0941d3432dc7dae552048265ad1e762b781d4 (commit) via e8da1559f7282127264c671c485e812f669b97ba (commit) via fa459913039673e55aa9300962f01e5079dd20d8 (commit) from 50f6a72b674f58a24c1a6c42e4dd56dc4e9f5a1e (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit 13a0941d3432dc7dae552048265ad1e762b781d4 Merge: e8da1559f7282127264c671c485e812f669b97ba 50f6a72b674f58a24c1a6c42e4dd56dc4e9f5a1e Author: Andrew Bartlett [EMAIL PROTECTED] Date: Sat Apr 19 09:59:07 2008 +0200 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet commit e8da1559f7282127264c671c485e812f669b97ba Merge: fa459913039673e55aa9300962f01e5079dd20d8 3c217518ba9a7b64fe6c842187499f1ee5189567 Author: Andrew Bartlett [EMAIL PROTECTED] Date: Fri Apr 18 18:21:52 2008 +0200 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet commit fa459913039673e55aa9300962f01e5079dd20d8 Author: Andrew Bartlett [EMAIL PROTECTED] Date: Fri Apr 18 11:37:43 2008 +0200 Fix samba3 protocol to correctly include the NULL terminator Andrew Bartlett --- Summary of changes: source/winbind/wb_samba3_cmd.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source/winbind/wb_samba3_cmd.c b/source/winbind/wb_samba3_cmd.c index f43947e..f07 100644 --- a/source/winbind/wb_samba3_cmd.c +++ b/source/winbind/wb_samba3_cmd.c @@ -720,6 +720,9 @@ static void list_users_recv(struct composite_context *ctx) if (NT_STATUS_IS_OK(status)) { s3call-response.extra_data.data = extra_data; s3call-response.length += extra_data_len; + if (extra_data) { + s3call-response.length += 1; + } } wbsrv_samba3_async_epilogue(status, s3call); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-997-g825f78d
The branch, v3-2-test has been updated via 825f78d9f12b5b3e835bd91961e00402cab0bf60 (commit) from 6ae8544ace0dd9ac67d36abbaa26cf311db880ad (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 825f78d9f12b5b3e835bd91961e00402cab0bf60 Author: Volker Lendecke [EMAIL PROTECTED] Date: Sat Apr 19 17:04:46 2008 +0200 Fix an uninitialized variable --- Summary of changes: source/lib/messages_ctdbd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/lib/messages_ctdbd.c b/source/lib/messages_ctdbd.c index a01c5e0..7d182a5 100644 --- a/source/lib/messages_ctdbd.c +++ b/source/lib/messages_ctdbd.c @@ -46,7 +46,7 @@ struct ctdbd_connection *messaging_ctdbd_connection(void) struct messaging_context *msg; ev = event_context_init(NULL); - if (!msg) { + if (!ev) { DEBUG(0,(event_context_init failed\n)); } -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-1000-g87d8a63
The branch, v3-2-test has been updated via 87d8a63ce4e6dd91ea3193d0a2574520a5857be2 (commit) via 36740f4959194cfaa98b1e37eed08f22edbda1e4 (commit) via 7a57c2da1a6cc0fcea0b4d949c696219f1822694 (commit) from 825f78d9f12b5b3e835bd91961e00402cab0bf60 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 87d8a63ce4e6dd91ea3193d0a2574520a5857be2 Author: Volker Lendecke [EMAIL PROTECTED] Date: Sat Apr 19 16:56:44 2008 +0200 Fix bug 5400 Thanks to Jason Mader! Volker commit 36740f4959194cfaa98b1e37eed08f22edbda1e4 Author: Volker Lendecke [EMAIL PROTECTED] Date: Sat Apr 19 16:54:26 2008 +0200 Fix bug 5399 Thanks to Jason Mader! Volker commit 7a57c2da1a6cc0fcea0b4d949c696219f1822694 Author: Volker Lendecke [EMAIL PROTECTED] Date: Sat Apr 19 13:08:14 2008 +0200 Fix bug 5398 Thanks to Jason Mader for sending the compiler output :-) Volker --- Summary of changes: source/lib/talloc/talloc.c |4 ++-- source/libsmb/clireadwrite.c |5 - source/smbd/chgpasswd.c |6 +++--- 3 files changed, 5 insertions(+), 10 deletions(-) Changeset truncated at 500 lines: diff --git a/source/lib/talloc/talloc.c b/source/lib/talloc/talloc.c index 9dcd8a2..d535c3d 100644 --- a/source/lib/talloc/talloc.c +++ b/source/lib/talloc/talloc.c @@ -85,8 +85,8 @@ #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else -#define likely(x) x -#define unlikely(x) x +#define likely(x) (x) +#define unlikely(x) (x) #endif /* this null_context is only used if talloc_enable_leak_report() or diff --git a/source/libsmb/clireadwrite.c b/source/libsmb/clireadwrite.c index e79fd90..12ba4b7 100644 --- a/source/libsmb/clireadwrite.c +++ b/source/libsmb/clireadwrite.c @@ -150,11 +150,6 @@ NTSTATUS cli_read_andx_recv(struct async_req *req, ssize_t *received, return NT_STATUS_UNEXPECTED_IO_ERROR; } - if (size 0) { - DEBUG(5,(read return 0!\n)); - return NT_STATUS_UNEXPECTED_IO_ERROR; - } - *rcvbuf = (uint8_t *) (smb_base(cli_req-inbuf) + SVAL(cli_req-inbuf, smb_vwv6)); *received = size; diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c index b2b0823..2596e73 100644 --- a/source/smbd/chgpasswd.c +++ b/source/smbd/chgpasswd.c @@ -249,6 +249,7 @@ static int expect(int master, char *issue, char *expected) bool match = False; for (attempts = 0; attempts 2; attempts++) { + NTSTATUS status; if (!strequal(issue, .)) { if (lp_passwd_chat_debug()) DEBUG(100, (expect: sending [%s]\n, issue)); @@ -269,7 +270,6 @@ static int expect(int master, char *issue, char *expected) buffer[nread] = 0; while (True) { - NTSTATUS status; status = read_socket_with_timeout( master, buffer + nread, 1, sizeof(buffer) - nread - 1, @@ -305,8 +305,8 @@ static int expect(int master, char *issue, char *expected) if (match) break; - if (len 0) { - DEBUG(2, (expect: %s\n, strerror(errno))); + if (!NT_STATUS_IS_OK(status)) { + DEBUG(2, (expect: %s\n, nt_errstr(status))); return False; } } -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-1001-g06c5076
The branch, v3-2-test has been updated via 06c5076f8ef23ac36d234ed417b80a58ab8dd7b4 (commit) from 87d8a63ce4e6dd91ea3193d0a2574520a5857be2 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 06c5076f8ef23ac36d234ed417b80a58ab8dd7b4 Author: Volker Lendecke [EMAIL PROTECTED] Date: Sat Apr 19 17:58:53 2008 +0200 Fix a bogus uninitialized variable warning in IDL-based nbt code --- Summary of changes: source/libcli/nbt/nbtname.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/libcli/nbt/nbtname.c b/source/libcli/nbt/nbtname.c index 5aff15b..2025ef7 100644 --- a/source/libcli/nbt/nbtname.c +++ b/source/libcli/nbt/nbtname.c @@ -110,7 +110,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_nbt_string(struct ndr_pull *ndr, int ndr_fla /* break up name into a list of components */ for (num_components=0;num_componentsMAX_COMPONENTS;num_components++) { - uint8_t *component; + uint8_t *component = NULL; NDR_CHECK(ndr_pull_component(ndr, component, offset, max_offset)); if (component == NULL) break; if (name) { -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-1002-gb90062e
The branch, v3-2-test has been updated via b90062e33cbde7de4961414fd35a3a588760d002 (commit) from 06c5076f8ef23ac36d234ed417b80a58ab8dd7b4 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit b90062e33cbde7de4961414fd35a3a588760d002 Author: Volker Lendecke [EMAIL PROTECTED] Date: Sat Apr 19 23:50:58 2008 +0200 Set the right domain\user in cli_rpc_pipe_open_ntlmssp_internal This probably does not matter in current code, but without this it's not possible to do the bind as a different user than the underlying smb user. Jeremy, please check! Thanks, Volker --- Summary of changes: source/rpc_client/cli_pipe.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c index 2a2b547..bc49e24 100644 --- a/source/rpc_client/cli_pipe.c +++ b/source/rpc_client/cli_pipe.c @@ -2330,12 +2330,12 @@ static struct rpc_pipe_client *cli_rpc_pipe_open_ntlmssp_internal(struct cli_sta result-auth.a_u.ntlmssp_state = ntlmssp_state; - *perr = ntlmssp_set_username(ntlmssp_state, cli-user_name); + *perr = ntlmssp_set_username(ntlmssp_state, username); if (!NT_STATUS_IS_OK(*perr)) { goto err; } - *perr = ntlmssp_set_domain(ntlmssp_state, cli-domain); + *perr = ntlmssp_set_domain(ntlmssp_state, domain); if (!NT_STATUS_IS_OK(*perr)) { goto err; } -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-1008-g3f6c5b9
The branch, v3-2-test has been updated via 3f6c5b99664a75a6f490ee3b6980b89cacf7f579 (commit) via 2e4c1ba38963cffe4c3f25ab24bc28975f2fc291 (commit) via a9061e52e1ff8e31aa480f4a30cda64c9d93214e (commit) via 1d261e78b38e8080ca7122037d33c8ef913a4558 (commit) via 783afab9c891dd7bcb78895b2a639b6f3a0edf5b (commit) via a6d74a5a562b54f0b36934965f545fdeb1e8b34a (commit) from b90062e33cbde7de4961414fd35a3a588760d002 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 3f6c5b99664a75a6f490ee3b6980b89cacf7f579 Author: Volker Lendecke [EMAIL PROTECTED] Date: Sun Apr 20 00:01:52 2008 +0200 Use rpc_pipe_client-user_name instead of rpc_pipe_client-cli-user_name Also make sure that rpc_pipe_client-user_name is always talloced. commit 2e4c1ba38963cffe4c3f25ab24bc28975f2fc291 Author: Volker Lendecke [EMAIL PROTECTED] Date: Sat Apr 19 23:27:35 2008 +0200 Introduce rpccli_set_timeout() Reduce dependency on cli member of rpc_pipe_client struct commit a9061e52e1ff8e31aa480f4a30cda64c9d93214e Author: Volker Lendecke [EMAIL PROTECTED] Date: Sat Apr 19 23:03:16 2008 +0200 Move srv_name_slash from cli_state to rpc_pipe_client commit 1d261e78b38e8080ca7122037d33c8ef913a4558 Author: Volker Lendecke [EMAIL PROTECTED] Date: Sat Apr 19 22:05:13 2008 +0200 Fix two ignoring asprintf result warnings commit 783afab9c891dd7bcb78895b2a639b6f3a0edf5b Author: Volker Lendecke [EMAIL PROTECTED] Date: Sat Apr 19 21:56:43 2008 +0200 Add desthost to rpc_pipe_client This reduces the dependency on cli_state commit a6d74a5a562b54f0b36934965f545fdeb1e8b34a Author: Volker Lendecke [EMAIL PROTECTED] Date: Sat Apr 19 18:17:13 2008 +0200 Refactoring: Make struct rpc_pipe_client its own talloc parent --- Summary of changes: source/client/client.c |2 +- source/include/client.h |6 +- source/lib/netapi/cm.c |2 +- source/libads/ldap_printer.c |7 +-- source/libnet/libnet_join.c |4 +- source/libsmb/cliconnect.c |2 - source/libsmb/clientgen.c|6 +- source/libsmb/libsmb_dir.c |2 +- source/libsmb/passchange.c | 13 ++--- source/libsmb/trusts_util.c |2 +- source/rpc_client/cli_lsarpc.c |2 +- source/rpc_client/cli_netlogon.c |8 ++-- source/rpc_client/cli_pipe.c | 104 -- source/rpc_client/cli_samr.c | 12 ++-- source/rpc_client/cli_spoolss.c | 16 +++--- source/rpcclient/cmd_lsarpc.c|2 +- source/rpcclient/cmd_netlogon.c | 40 --- source/rpcclient/cmd_samr.c |5 +- source/rpcclient/cmd_spoolss.c | 76 --- source/rpcclient/cmd_srvsvc.c| 30 ++-- source/rpcclient/cmd_wkssvc.c| 12 ++-- source/rpcclient/rpcclient.c |2 +- source/smbd/change_trust_pw.c|3 +- source/utils/net_rpc.c | 64 source/utils/net_rpc_join.c |2 +- source/utils/net_rpc_printer.c |9 ++-- source/utils/net_rpc_samsync.c |6 +- source/utils/net_rpc_service.c | 12 ++-- source/utils/net_rpc_sh_acct.c |2 +- source/utils/smbtree.c |2 +- source/winbindd/winbindd_ads.c |2 +- source/winbindd/winbindd_cm.c| 12 ++-- source/winbindd/winbindd_misc.c |4 +- source/winbindd/winbindd_rpc.c |4 +- 34 files changed, 249 insertions(+), 228 deletions(-) Changeset truncated at 500 lines: diff --git a/source/client/client.c b/source/client/client.c index 276ffb9..1c9c21e 100644 --- a/source/client/client.c +++ b/source/client/client.c @@ -3650,7 +3650,7 @@ static bool browse_host_rpc(bool sort) info_ctr.ctr.ctr1 = ctr1; status = rpccli_srvsvc_NetShareEnumAll(pipe_hnd, frame, - pipe_hnd-cli-desthost, + pipe_hnd-desthost, info_ctr, 0x, total_entries, diff --git a/source/include/client.h b/source/include/client.h index 0e73745..af03e2b 100644 --- a/source/include/client.h +++ b/source/include/client.h @@ -60,14 +60,15 @@ struct cli_pipe_auth_data { struct rpc_pipe_client { struct rpc_pipe_client *prev, *next; - TALLOC_CTX *mem_ctx; - struct cli_state *cli; int pipe_idx; const char *pipe_name; uint16 fnum; + const char *desthost; + const char *srv_name_slash; + const char *domain; const char *user_name; struct pwd_info pwd; @@ -123,7 +124,6 @@ struct cli_state { int privileges; fstring desthost; -
Build status as of Sun Apr 20 00:00:03 2008
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2008-04-19 00:01:12.0 + +++ /home/build/master/cache/broken_results.txt 2008-04-20 00:00:52.0 + @@ -1,22 +1,22 @@ -Build status as of Sat Apr 19 00:00:02 2008 +Build status as of Sun Apr 20 00:00:03 2008 Build counts: Tree Total Broken Panic build_farm 0 0 0 -ccache 30 9 0 +ccache 29 9 0 ctdb 0 0 0 distcc 1 0 0 -ldb 30 13 0 -libreplace 29 10 0 -lorikeet-heimdal 24 19 0 -pidl 16 14 0 -ppp 9 0 0 -rsync30 12 0 +ldb 29 13 0 +libreplace 28 10 0 +lorikeet-heimdal 23 18 0 +pidl 15 13 0 +ppp 8 0 0 +rsync29 12 0 samba-docs 0 0 0 samba-gtk4 4 0 -samba_3_2_test 30 19 0 -samba_4_0_test 28 22 2 -smb-build28 3 0 -talloc 30 8 0 -tdb 30 13 0 +samba_3_2_test 29 17 0 +samba_4_0_test 27 21 1 +smb-build27 3 0 +talloc 29 8 0 +tdb 29 13 0