Displaying 20 results from an estimated 28 matches for "become_root".
2006 Oct 29
1
dmapi doesn't work on aix; possible fix included
...he rest of the problem in dmapi_file_flags() is
that things are running with the effective uid of the user, so dmapi
calls are failing. The posix capability DMAPI_ACCESS_CAPABILITY is
supposed to allow the functions to work, but to my knowledge AIX doesn't
have posix capabilties.
I used become_root/unbecome_root around the dmapi calls, and this
appeared to get things to work. Samba's log messages are indicating
that files are offline, and Windows Explorer is picking up on this and
changing the file icons to indicate that the files are offline. However,
I don't know if my solution...
2005 Mar 17
0
usrmgr.exe and problems
...lse;
+ }
if(!pdb_update_sam_account(pwd)) {
pdb_free_sam(&pwd);
@@ -3624,12 +3628,16 @@
sid_copy(&user_sid, get_global_sam_sid());
sid_append_rid(&user_sid, q_u->rid);
-
+
+
ret = pdb_init_sam(&sam_user);
+
if (!NT_STATUS_IS_OK(ret))
return ret;
+ become_root();
check = pdb_getsampwsid(sam_user, &user_sid);
+ unbecome_root();
if (check != True) {
pdb_free_sam(&sam_user);
@@ -3708,6 +3716,7 @@
uint32 acc_granted;
SE_PRIV se_rights;
BOOL can_add_accounts;
+ BOOL ret;
/*
* delete the group member named q_u->rid
@@ -3740,7...
2004 Mar 15
0
join domain without root
...hs.usyd.edu.au:8000/u/psz/
School of Mathematics and Statistics University of Sydney 2006 Australia
--- rpc_server/srv_samr_nt.c.old Sat Mar 15 08:34:49 2003
+++ rpc_server/srv_samr_nt.c Tue Mar 16 06:14:29 2004
@@ -2369,16 +2369,67 @@
uint32 len;
pstring buf;
uint16 acct_ctrl;
+ int do_become_root;
+ BOOL ret;
pdb_init_sam(&pwd);
- if (!pdb_getsampwrid(pwd, rid)) {
+/* PSz 15 Mar 04
+ * This code is called, as the "domain admin", when a machine is joining
+ * the domain, both with netdom and via sysprep/mini-setup.
+ * Do as root (bracket within become_root()/unbecome_...
2005 May 11
1
SV: Error with usrmgr and groups.
It's exactly the same. Except that I use tdbsam instead of ldap and the error message therefore also is different in the log file. But the example and result is the same. Do you have any idea of workaround or fix?
Cheers,
Joel
-----Ursprungligt meddelande-----
Fr?n: Doug Campbell [mailto:doug@bpta.net]
Skickat: den 11 maj 2005 10:49
Till: Joel Larsson, PF, Posten; samba@lists.samba.org
1998 Apr 15
1
Error messages in log.smb
Last friday we upgraded from 1.9.17p4 to version 1.9.18p3 on a HP-UX 9.04
machine. Now we get lots of entries in the log.smb file like:
ERROR: del_share_mode: failed to ftruncate share mode file
/programs/samba/var/locks/share.1073807365.8199 to size 42 (Permission denied)
ERROR: set_share_mode: failed to ftruncate share mode file
/programs/samba/var/locks/share.1073807365.8195 to size 42
2005 Mar 14
2
Questions about 3.0.12rc1
...n",
unix_user, unix_group));
return -1;
^^^^^^^^^^^^^^^^^^^^^^^^^^
needed return 0;
}
3) I'm analized problems 1
( user who not have privileges "add machine account" )
In function _samr_create_user ( srv_samr_nt.c ) you have code:
if ( can_add_account )
become_root();
And if user not have privileges(user|machine) you MAY CREATE USER (
posix account or machine account ) through SCRIPT :(((((
I'm change code to:
if ( can_add_account == False ) {
return NT_STATUS_ACCESS_DENIED;
}
it's fixed problem ....
I'm do simple test and is work correct...
2015 Apr 18
2
Samba 4 slow write
Hi all,
On Thu, Apr 16, 2015 at 03:00:49PM -0700, Jeremy Allison wrote:
> On Thu, Apr 16, 2015 at 08:42:48PM +0200, Ervin Heged?s wrote:
> > Dear Samba users,
> >
> > here is an Ubuntu 14.04, with Samba 4 (4.1.6), and LDAP (slapd
> > 2.4.31). The config came from a previous system (Debian Squeezy),
> > which had been crashed (HW error - on this new machine,
2009 Sep 10
1
Security context stack overflow on Debian5+LDAP
...d 17363): Security context stack overflow!
[2009/09/10 09:44:07, 0] lib/util.c:log_stack_trace(1767)
BACKTRACE: 58 stack frames:
#0 /usr/sbin/smbd(log_stack_trace+0x2d) [0x8201d24]
#1 /usr/sbin/smbd(smb_panic+0x80) [0x8201e81]
#2 /usr/sbin/smbd(push_sec_ctx+0x7b) [0x80ce8f1]
#3 /usr/sbin/smbd(become_root+0x17) [0x80c152a]
#4 /usr/sbin/smbd(lookup_sids+0x845) [0x81b841f]
#5 /usr/sbin/smbd(lookup_sid+0x12a) [0x81b8c20]
#6 /usr/sbin/smbd(pdb_get_group_sid+0x169) [0x81b1d40]
#7 /usr/sbin/smbd(pdb_get_group_rid+0x26) [0x84a9f64]
#8 /usr/sbin/smbd(init_buffer_from_sam_v3+0xe5) [0x84a6e90]
#9 /usr/s...
2015 Sep 01
1
[Announce] Samba 4.1.20 Available for Download
...ionality of "smb encrypt".
o Jeremy Allison <jra at samba.org>
* BUG 10823: s3: winbindd: Fix TALLOC_FREE of uninitialized groups
variable.
* BUG 11328: Use resource group sids obtained from pac logon_info.
* BUG 11339: s3: smbd: Use separate flag to track
become_root()/unbecome_root() state.
* BUG 11342: s3: smbd: Codenomicon crash in do_smb_load_module().
* BUG 11359: lib: replace: Add strsep function (missing on Solaris).
o Christian Ambach <ambi at samba.org>
* BUG 11170: s3:param/loadparm fix 'testparm --show-all-parameters'...
2015 Sep 01
1
[Announce] Samba 4.1.20 Available for Download
...ionality of "smb encrypt".
o Jeremy Allison <jra at samba.org>
* BUG 10823: s3: winbindd: Fix TALLOC_FREE of uninitialized groups
variable.
* BUG 11328: Use resource group sids obtained from pac logon_info.
* BUG 11339: s3: smbd: Use separate flag to track
become_root()/unbecome_root() state.
* BUG 11342: s3: smbd: Codenomicon crash in do_smb_load_module().
* BUG 11359: lib: replace: Add strsep function (missing on Solaris).
o Christian Ambach <ambi at samba.org>
* BUG 11170: s3:param/loadparm fix 'testparm --show-all-parameters'...
2007 Aug 27
1
smbd and pdbedit segfault
...ecurity context stack overflow!
[2007/08/26 06:01:13, 0] lib/util.c:log_stack_trace(1706)
BACKTRACE: 63 stack frames:
#0 /usr/sbin/smbd(log_stack_trace+0x23) [0x822c293]
#1 /usr/sbin/smbd(smb_panic+0x46) [0x822c386]
#2 /usr/sbin/smbd(push_sec_ctx+0x1cb) [0x80db8db]
#3 /usr/sbin/smbd(become_root+0xb) [0x80d140b]
#4 /usr/sbin/smbd(sid_to_gid+0xd8) [0x81eec98]
#5 /usr/sbin/smbd(pdb_set_group_sid+0x4d) [0x81e55cd]
#6 /usr/sbin/smbd(pdb_set_group_sid_from_rid+0x67) [0x81ee287]
#7 /usr/sbin/smbd(init_sam_from_buffer_v3+0x8f1) [0x81e7ed1]
#8 /usr/sbin/smbd [0x82082d6]
#9 /usr/sbi...
2005 Mar 23
1
Problems with Excel & MS Word files (still)
Problem is apparently with locking issues, disabled oplocks in the [general]
section, and the problem actually got worse...
Here's what happens:
User-A part of group1, opens Excel file off of share, saves, exits...
User-B (or even User-A for that matter) tries to re-open same file, get
error stating it's locked and can only open for read-only access...
Both users in the same group, and
2015 Apr 20
0
Samba 4 slow write
...OWNER |
SECINFO_GROUP |
SECINFO_DACL), talloc_tos(), &sd);
?[2]? perf top call graph:
?1.49% libc-2.6.1.so [.] __geteuid
|
--- __geteuid
uwrap_geteuid
assert_uid
set_unix_security_ctx
set_sec_ctx
set_root_sec_ctx
smbd_become_root
legacy_gid_to_sid
gid_to_sid
create_file_sids
posix_get_nt_acl_common
posix_get_nt_acl
vfswrap_get_nt_acl
smb_vfs_call_get_nt_acl
smbd_check_access_rights
1.22% libc-2.6.1.so [.] __getegid
|
--- __getegi...
2002 Mar 15
0
logon home with ldap under win98
...ot; Username of UID %d is %s\n", (int)vuser->uid,
vuser->user.unix_name));
+ /***********************************************/
+ /* M. Sievers test area: get logon drive name from sam,
+ * to make it work with ldap */
+
+ pdb_init_sam(&sampass);
+ become_root();
+ logon_home_frompassdb = pdb_getsampwuid(sampass,vuser->uid);
+ unbecome_root();
+
+ if ( logon_home_frompassdb == False ){
+ DEBUG(3,(" MS: Could not find entry in sam. \n"));
+ } else {
+ DEBUG(3,(" MS: Home Directory is %s\n", sampass->h...
2010 May 25
0
Samba/LDAP Win 7 unable to access shares
...urity context stack overflow!
[2010/05/25 11:20:25, 0] lib/util.c:1584(log_stack_trace)
BACKTRACE: 55 stack frames:
#0 /usr/sbin/smbd(log_stack_trace+0x2d) [0xb7b1255d]
#1 /usr/sbin/smbd(smb_panic+0x2d) [0xb7b1265d]
#2 /usr/sbin/smbd(push_sec_ctx+0x1b9) [0xb78e2559]
#3 /usr/sbin/smbd(become_root+0x17) [0xb78d0d97]
#4 /usr/sbin/smbd(pdb_get_account_policy+0x23) [0xb7aadb33]
#5 /usr/sbin/smbd(init_buffer_from_samu+0x27c) [0xb7aa70fc]
#6 /usr/sbin/smbd(pdb_copy_sam_account+0x3e) [0xb7aaa31e]
......
.......
2008 Oct 17
1
problem usmgr Version 3.2.4
hi , i have
a few problems with usmgr on Version 3.2.4
( Version 3.2.4-8.1-1931-SUSE-SL11.0 )
samba pdc ldap
the download version from ms
http://www.microsoft.com/Downloads/details.aspx?FamilyID=c0011ab8-3178-4701-a791-eafba0f42de2&displaylang=en
doesnt work
giving
"device attached to the system is not functioning"
whatever i do
a old version from usermgr works partially
but magic
2014 Sep 19
1
Samba 4.1.11 crashes sporadically
...BACKTRACE: 43 stack frames:
#0 0x802d81848 <smb_panic_s3+152> at /usr/local/lib/libsmbconf.so.0
#1 0x801470205 <smb_panic+53> at /usr/local/lib/libsamba-util.so.0
#2 0x80180c442 <push_sec_ctx+162> at
/usr/local/lib/samba/libsmbd_base.so
#3 0x8017ecde9 <smbd_become_root+9> at
/usr/local/lib/samba/libsmbd_base.so
#4 0x8034a59ab <become_root+27> at /usr/local/lib/samba/libsmbd_shim.so
#5 0x80324271d <pdb_get_account_policy+29> at /usr/local/lib/libpdb.so.0
#6 0x80323316f <init_samu_from_buffer+15903> at
/usr/local/lib/libpdb.so.0...
2006 Nov 14
0
Samba 3.0.23c PANIC during registering computer into domain
...lib/util.c:log_stack_trace(1699)
BACKTRACE: 64 stack frames:
#0 /opt/samba-3.0.23c/sbin/smbd(log_stack_trace+0x2b) [0x757b730c]
#1 /opt/samba-3.0.23c/sbin/smbd(smb_panic+0x11e) [0x757b7136]
#2 /opt/samba-3.0.23c/sbin/smbd(push_sec_ctx+0x8f) [0x7560cd12]
#3 /opt/samba-3.0.23c/sbin/smbd(become_root+0x17) [0x7560035e]
#4 /opt/samba-3.0.23c/sbin/smbd [0x7576ddf8]
#5 /opt/samba-3.0.23c/sbin/smbd [0x7576d4d9]
#6 /opt/samba-3.0.23c/sbin/smbd(pdb_sid_to_id+0x34) [0x7576cade]
#7 /opt/samba-3.0.23c/sbin/smbd(sid_to_gid+0x176) [0x75773722]
#8 /opt/samba-3.0.23c/sbin/smbd(pdb_set_group_s...
2015 Jul 14
0
[Announce] Samba 4.2.3 Available for Download
...1068: s3: lib: util: Ensure we read a hex number as %x, not %u.
* BUG 11295: Excessive cli_resolve_path() usage can slow down transmission.
* BUG 11328: winbindd: winbindd_raw_kerberos_login - ensure logon_info
exists in PAC.
* BUG 11339: s3: smbd: Use separate flag to track
become_root()/unbecome_root() state.
* BUG 11342: s3: smbd: Codenomicon crash in do_smb_load_module().
o Christian Ambach <ambi at samba.org>
* BUG 11170: s3:param/loadparm: Fix 'testparm --show-all-parameters'.
o Andrew Bartlett <abartlet at samba.org>
* BUG 10991: winb...
2015 Jul 14
0
[Announce] Samba 4.2.3 Available for Download
...1068: s3: lib: util: Ensure we read a hex number as %x, not %u.
* BUG 11295: Excessive cli_resolve_path() usage can slow down transmission.
* BUG 11328: winbindd: winbindd_raw_kerberos_login - ensure logon_info
exists in PAC.
* BUG 11339: s3: smbd: Use separate flag to track
become_root()/unbecome_root() state.
* BUG 11342: s3: smbd: Codenomicon crash in do_smb_load_module().
o Christian Ambach <ambi at samba.org>
* BUG 11170: s3:param/loadparm: Fix 'testparm --show-all-parameters'.
o Andrew Bartlett <abartlet at samba.org>
* BUG 10991: winb...