From: paul.richardson@ssi-world.com Sent: Friday, April 12, 2002 10:36 AM To: Info-VAX@Mvb.Saic.Com Subject: Re: Samba V2.0.6 Failed to UID error Network map drive error "John E. Malmberg" wrote in message news:<3CB6782C.7040302@qsl.network>... > Paul Richardson wrote: > > Help me! > > > > I trust you good souls may be able to help. I seem to have come so far > > and feel that > > I'm so close to getting Samba for VMS v2.0.6 working but for the > > following error that > > is reported in the SMB.LOG. > > > > [2002/04/11 17:18:07, 0, pid=4680, effective(0, 0), real(0, 0)] > > CMS_ROOT:[SAMBA.SOURCE.LIB]UTIL_SEC.C;2:(52) > > Failed to set uid privileges to (-1,8388736) now set to (0,0) > > [2002/04/11 17:18:07, 0, pid=4680, effective(0, 0), real(0, 0)] > > CMS_ROOT:[SAMBA_VMS.SOURCE.LIB]UTIL.C;1:(2456) > > PANIC: failed to set uid > > *************************************************** > > $x = 8388736 > $show sym x > $write sys$output f$identifier(x,"NUMBER_TO_NAME") > > For some reason, SMBD is attempting set the user to uic [200,200], that > is the DEFAULT account on OpenVMS and is usually disabled. > > I would recommend checking to make sure that there is a one to one > relationship between the UICs and the usernames in your SYSUAF and > RIGHTS Identifiers, and that the USERNAMES and diretories have the > expected UICs on them. > > > I have used SMBPASSWD from the system account to create both the user > > account I want to use and also to join the NT Domain for the domain > > security flag in smb.conf. I have also checked there is a corresponding > > VAX account. > > The domain support in SAMBA 2.0.6 is kind of primitive. I did not have > a domain controller to test it against. > > I would recommend first reading the SAMBA-VMS FAQ in the distribution, > and then try the tests in DIAGNOSIS.TXT. If that file is missing from > the distribution, then it can be found on the documentation link from > your closest mirror of http://www.samba.org/ > > See if you can get it working as a standalone server before trying to > join a domain. > > You can also ask on the SAMBA-VMS(at)SAMBA.ORG mailing list, where your > post may stand out more, to see if anyone else has succeeded in getting > SAMBA on OpenVMS to join a domain. > > The SAMBA 2.0.6 for OpenVMS with few exceptions is bug and feature > compatible with the UNIX platform. > > So you can also post on comp.protocols.smb and the SAMBA(AT)SAMBA.ORG > mailing lists to see if there are any special tricks to getting domain > membership to work. > > -John > wb8tyw@qsl.network > Personal Opinion Only *************************** NEW Entry ***************************** Thanks John, I have progressed a little thanks but (always a but!) I still have problems. The previous error was due to the account pr sharing the default UIC [200,200], this was inpart due the account being coloned from the default account without the relevenat flags to change its UIC. There was also no rights identifier in the rights database for the default account or the newly created guest account, both have now been added. I can map a network drive to the alpha public from NT but for instance when I try to copy a 832k file from NT to VAX it fails with a network error. Smaller files seem to be created without the error being produced. The following are the excerpts from the smb.log respectively. [2002/04/12 14:42:12, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA_VMS.SOURCE.LIB]UTIL.C;1:(608) unix_clean_name [/Ints0015d.doc] [2002/04/12 14:42:12, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA_VMS.SOURCE.LIB]UTIL.C;1:(608) unix_clean_name [Ints0015d.doc] [2002/04/12 14:42:13, 4, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA_VMS.SOURCE.SMBD]OPEN.C;1:(1002) calling open_file with flags=0x1 flags2=0x600 mode=0766 [2002/04/12 14:42:13, 2, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA_VMS.SOURCE.SMBD]OPEN.C;1:(595) pr opened file Ints0015d.doc read=No write=Yes (numopen=2) [2002/04/12 14:42:13, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA_VMS.SOURCE.LOCKING]LOCKING_SLOW_VMS.C;1:(1165) set_share_mode: Created share file /samba_root/var/locks/SHARE.3815544.2965974 with mode 0x11 pid=1328 [2002/04/12 14:42:13, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]PROCESS.C;2:(615) Transaction 19 of length 52 [2002/04/12 14:42:13, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]PROCESS.C;2:(448) switch message SMBwrite (pid 4904) [2002/04/12 14:42:13, 4, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]UID.C;2:(181) Skipping become_user - already user [2002/04/12 14:42:13, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.LIB]DOSCALLS.C;1:(336) dos_ChDir to Samba_Public [2002/04/12 14:42:17, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA_VMS.SOURCE.SMBD]REPLY.C;1:(2559) write fnum=8513 num=0 wrote=0 [2002/04/12 14:42:17, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]PROCESS.C;2:(615) Transaction 20 of length 120 [2002/04/12 14:42:17, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]PROCESS.C;2:(448) switch message SMBtrans2 (pid 4904) [2002/04/12 14:42:17, 4, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]UID.C;2:(181) Skipping become_user - already user [2002/04/12 14:42:17, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.LIB]DOSCALLS.C;1:(336) dos_ChDir to Samba_Public [2002/04/12 14:42:17, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]TRANS2.C;2:(1640) call_trans2setfilepathinfo(8) Ints0015d.doc info_level=257 totdata=40 [2002/04/12 14:42:17, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]PROCESS.C;2:(615) Transaction 21 of length 61440 [2002/04/12 14:42:17, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]PROCESS.C;2:(448) switch message SMBwrite (pid 4904) [2002/04/12 14:42:17, 4, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]UID.C;2:(181) Skipping become_user - already user [2002/04/12 14:42:17, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.LIB]DOSCALLS.C;1:(336) dos_ChDir to Samba_Public [2002/04/12 14:42:18, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA_VMS.SOURCE.SMBD]REPLY.C;1:(2559) write fnum=8513 num=61388 wrote=61388 [2002/04/12 14:42:18, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]PROCESS.C;2:(615) Transaction 22 of length 104 [2002/04/12 14:42:18, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]PROCESS.C;2:(448) switch message SMBwrite (pid 4904) [2002/04/12 14:42:18, 4, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]UID.C;2:(181) Skipping become_user - already user [2002/04/12 14:42:18, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.LIB]DOSCALLS.C;1:(336) dos_ChDir to Samba_Public [2002/04/12 14:42:18, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA_VMS.SOURCE.SMBD]REPLY.C;1:(2559) write fnum=8513 num=52 wrote=52 [2002/04/12 14:42:18, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]PROCESS.C;2:(615) Transaction 23 of length 61440 [2002/04/12 14:42:18, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]PROCESS.C;2:(448) switch message SMBwrite (pid 4904) [2002/04/12 14:42:18, 4, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]UID.C;2:(181) Skipping become_user - already user [2002/04/12 14:42:18, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.LIB]DOSCALLS.C;1:(336) dos_ChDir to Samba_Public [2002/04/12 14:42:18, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA_VMS.SOURCE.SMBD]REPLY.C;1:(2559) write fnum=8513 num=61388 wrote=61388 [2002/04/12 14:42:18, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]PROCESS.C;2:(615) Transaction 24 of length 104 [2002/04/12 14:42:18, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]PROCESS.C;2:(448) switch message SMBwrite (pid 4904) [2002/04/12 14:42:18, 4, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]UID.C;2:(181) Skipping become_user - already user [2002/04/12 14:42:18, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.LIB]DOSCALLS.C;1:(336) dos_ChDir to Samba_Public [2002/04/12 14:42:19, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA_VMS.SOURCE.SMBD]REPLY.C;1:(2559) write fnum=8513 num=52 wrote=52 [2002/04/12 14:42:19, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]PROCESS.C;2:(615) Transaction 25 of length 61440 [2002/04/12 14:42:19, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]PROCESS.C;2:(448) switch message SMBwrite (pid 4904) [2002/04/12 14:42:19, 4, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.SMBD]UID.C;2:(181) Skipping become_user - already user [2002/04/12 14:42:19, 3, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.LIB]DOSCALLS.C;1:(336) dos_ChDir to Samba_Public [2002/04/12 14:42:19, 0, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.LIB]FAULT.C;1:(40) =============================================================== [2002/04/12 14:42:19, 0, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.LIB]FAULT.C;1:(41) INTERNAL ERROR: Signal 10 in pid 4904 (2.0.6) Please read the file BUGS.txt in the distribution [2002/04/12 14:42:19, 0, pid=4904, effective(7929977, 121), real(7929977, 121)] CMS_ROOT:[SAMBA.SOURCE.LIB]FAULT.C;1:(43) =============================================================== **************************************************************************** the above is what is reported from the first (largest) NT copy. I have also set security = user and removed Domain authentication as per your suggestion. again many thank in advance. paul ****************************************************************************