search for: unbecome_root

Displaying 20 results from an estimated 23 matches for "unbecome_root".

Did you mean: become_root
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 17
0
usrmgr.exe and problems
...wd); @@ -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 +3749,12 @@ /* check if the user exists before trying to remove it...
2006 Oct 29
1
dmapi doesn't work on aix; possible fix included
...he 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 is entirely c...
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
2004 Mar 15
0
join domain without root
...come_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_root() if it is + * a domain admin, updating his own machine password. (Otherwise the + * pdb_ calls fail for non-root.) + * More precisely: bracket pdb_getsampwrid if I am a domain admin; then + * also bracket pdb_update_sam_account if rid is my own machine account. + */ + do_become_root = 0; + if (get...
2004 Sep 20
0
Samba Errors
...er smbd[8525]: #2 smbd(set_effective_gid+0x1e) [0x819739e] Sep 21 07:40:51 server smbd[8525]: #3 smbd [0x80b3432] Sep 21 07:40:51 server smbd[8525]: #4 smbd [0x80b3452] Sep 21 07:40:51 server smbd[8525]: #5 smbd(pop_sec_ctx+0xf4) [0x80b3c64] Sep 21 07:40:51 server smbd[8525]: #6 smbd(unbecome_root+0xb) [0x80ad84b] Sep 21 07:40:51 server smbd[8525]: #7 smbd(local_uid_to_sid+0x10b) [0x816c26b] Sep 21 07:40:51 server smbd[8525]: #8 smbd(uid_to_sid+0x10a) [0x817194a] Sep 21 07:40:51 server smbd[8525]: #9 smbd [0x80b8a6f] Sep 21 07:40:51 server smbd[8525]: #10 smbd(get_nt_acl+0x28a) [...
2015 Sep 01
1
[Announce] Samba 4.1.20 Available for Download
...uot;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'. o Ralph Bo...
2015 Sep 01
1
[Announce] Samba 4.1.20 Available for Download
...uot;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'. o Ralph Bo...
2007 Jan 24
1
Dreamweaver access errors with Samba 3.0.23d
...#2 /usr/local/samba/sbin/smbd [0x8249389] #3 /usr/local/samba/sbin/smbd(set_effective_uid+0x26) [0x82494e0] #4 /usr/local/samba/sbin/smbd [0x80e53eb] #5 /usr/local/samba/sbin/smbd [0x80e54a0] #6 /usr/local/samba/sbin/smbd(pop_sec_ctx+0x13f) [0x80e5d2d] #7 /usr/local/samba/sbin/smbd(unbecome_root+0xb) [0x80db843] #8 /usr/local/samba/sbin/smbd [0x82055db] #9 /usr/local/samba/sbin/smbd(pdb_uid_to_rid+0x25) [0x8204f7c] #10 /usr/local/samba/sbin/smbd(uid_to_sid+0x10a) [0x820a7d5] #11 /usr/local/samba/sbin/smbd [0x80ebee8] #12 /usr/local/samba/sbin/smbd(get_nt_acl+0x386) [0x80f0c8...
2008 Mar 08
0
Failed to Set UID Error and Can't become connected user Error
...:log_stack_trace(1758) BACKTRACE: 22 stack frames: #0 /usr/sbin/smbd(log_stack_trace+0x2d) [0xb7d7d79d] #1 /usr/sbin/smbd(smb_panic+0x5d) [0xb7d7d8cd] #2 /usr/sbin/smbd [0xb7d83d9e] #3 /usr/sbin/smbd [0xb7beed2c] #4 /usr/sbin/smbd(pop_sec_ctx+0xa2) [0xb7beeec2] #5 /usr/sbin/smbd(unbecome_root+0x17) [0xb7be2587] #6 /usr/sbin/smbd(gid_to_sid+0x15c) [0xb7d339bc] #7 /usr/sbin/smbd [0xb7bf58fc] #8 /usr/sbin/smbd(get_nt_acl+0x4ac) [0xb7bfc0cc] #9 /usr/sbin/smbd [0xb7c123bb] #10 /usr/sbin/smbd(is_visible_file+0x2a0) [0xb7b9a030] #11 /usr/sbin/smbd [0xb7b9a75d] #12 /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
2002 Mar 15
0
logon home with ldap under win98
...me)); + /***********************************************/ + /* 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->home_dir)); + if ( strlen(sampass->home_dir) != 0 ) + pstrcpy(logon_home,sampas...
2003 May 20
0
Samba 2.2x bits attributes mapped on Linux file permissions
...t access without let the user always root. isn't it ? the function who's setting attributes is in smbd/dosmode.c:unix_mode(...) An another function called int file_chmod(...) seems to use this manner: check write perms by CAN_WRITE(conn) then ecome_root(); conn->vfs_ops.fchmod(...); unbecome_root(); Best regards
2015 Jul 14
0
[Announce] Samba 4.2.3 Available for Download
...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: winbindd: Sync secre...
2015 Jul 14
0
[Announce] Samba 4.2.3 Available for Download
...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: winbindd: Sync secre...
2007 Sep 09
0
Samba PANIC
...bd[27889]: #1 smbd(smb_panic+0x5d) [0x8022552d] Sep 9 10:32:29 SOS14UF smbd[27889]: #2 smbd [0x8022b63e] Sep 9 10:32:29 SOS14UF smbd[27889]: #3 smbd [0x800a692c] Sep 9 10:32:29 SOS14UF smbd[27889]: #4 smbd(pop_sec_ctx+0xa2) [0x800a6ac2] Sep 9 10:32:29 SOS14UF smbd[27889]: #5 smbd(unbecome_root+0x17) [0x8009bc97] Sep 9 10:32:29 SOS14UF smbd[27889]: #6 smbd(gid_to_sid+0x10e) [0x801dfcde] Sep 9 10:32:29 SOS14UF smbd[27889]: #7 smbd [0x800af1cc] Sep 9 10:32:29 SOS14UF smbd[27889]: #8 smbd(get_nt_acl+0x4c0) [0x800b5470] Sep 9 10:32:29 SOS14UF smbd[27889]: #9 smbd(vfswrap_fget_...
1997 Dec 20
0
New Samba stable release - 1.9.17p5
...39; error code - caused problem with Visual Basic apps. 9). Allow 'hosts allow/deny' to work before client packet parsed. 10). Wrapping log file causes incorrect errors to be returned to the clients. 11). Crash fix for nmbd Get_Hostbyname bad return. 12). 'become_root' 'unbecome_root' added to fix changing uid problems. 13). No magic scripts or printing done on exceptional file close problems. Security fix release: Samba - version 1.9.17p2. ---------------------------------------------- This new stable release fixes a very important security hole in all versions of Samba...
2020 Mar 03
6
Upgrade 4.9 -> 4.11 oups
Hello ! I decided to upgrade my fileservers from stretch/samba 4.9 to buster/samba 4.11 I just realized that smbd is not working anymore :-/ If someone has an idea It would be amazing... as an idiot, I upgraded my 20 servers.... without snapshot.... Thank you so much Here's some logs : root at ef113:~# tail /var/log/samba/log.smbd #1
2008 Mar 19
0
segfault with failed to set uid
...optimized out>) at lib/util.c:1545 #3 0x00000000005c60d8 in assert_uid (ruid=4294967295, euid=10122) at lib/util_sec.c:96 #4 0x000000000049235e in become_id (uid=10122, gid=10000) at smbd/sec_ctx.c:60 #5 0x0000000000492c8c in pop_sec_ctx () at smbd/sec_ctx.c:375 #6 0x000000000048a579 in unbecome_root () at smbd/uid.c:435 #7 0x00000000005eeaf1 in reply_to_oplock_break_requests (fsp=0x8de810) at smbd/oplock.c:683 #8 0x0000000000490601 in close_file (fsp=0x8de810, normal_close=1) at smbd/close.c:228 #9 0x0000000000471ba7 in reply_close (conn=0x8d8390, inbuf=0x2ba31a5a3010 "",...
2018 Jun 25
2
Samba 4.7.1 Generating Core Dumps
...x7fc22832dee0 <smbd_unbecome_authenticated_pipe_user>, contend_level2_oplocks_begin = 0x7fc228395370 <smbd_contend_level2_oplocks_begin>, contend_level2_oplocks_end = 0x7fc228395630 <smbd_contend_level2_oplocks_end>, become_root = 0x7fc22832def0 <smbd_become_root>, unbecome_root = 0x7fc22832df20 <smbd_unbecome_root>, exit_server = 0x7fc22838d5d0 <smbd_exit_server>, exit_server_cleanly = 0x7fc22838d5f0 <smbd_exit_server_cleanly>} __FUNCTION__ = "main" __func__ = "main" == -- Francis Mondia Engineering Syste...