Hi how can I find which user using (openning) a file in windows machine from unix via samba for example if I have the following file which is a outlook file and it open by a user in my network prompt> ls -l outlook.pst -rw-rw---- 1 aaa mannet 1130496 Mar 21 2002 when I use fuser prompt> fuser -fu outlook.pst I get the following process outlook.pst: 760094o(root) then when I try to grep the above process prompt> ps -ef |grep 760094 I get the following root 760094 530920 0.0 Dec 09 ?? 0:22.33 sbin/smbd -D which owned by the root regards Alaa
Try smbstatus Alaa Mail wrote:> > Hi > > how can I find which user using (openning) a file in windows machine from unix via samba > > for example if I have the following file which is a outlook file and it open by a user in my network > > prompt> ls -l outlook.pst > -rw-rw---- 1 aaa mannet 1130496 Mar 21 2002 > > when I use fuser > > prompt> fuser -fu outlook.pst > I get the following process > > outlook.pst: 760094o(root) > > then when I try to grep the above process > > prompt> ps -ef |grep 760094 > > I get the following > root 760094 530920 0.0 Dec 09 ?? 0:22.33 sbin/smbd -D > > which owned by the root > > regards > Alaa > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba-- =====================================================================Herb Lewis Silicon Graphics Networking Engineer 1600 Amphitheatre Pkwy MS-510 Strategic Software Organization Mountain View, CA 94043-1351 herb@sgi.com Tel: 650-933-2177 http://www.sgi.com Fax: 650-932-2177 PGP Key: 0x8408D65D ======================================================================
hi tim, i am having the same problem. i can use XP and samba 2.2.7 in a workgroup environment, and everything works fine. when i try and join the XP workstation as a domain, i get the same message as you do. i read up on creating a SRV record via bind, which seems easy enough, but i am not sure what prog s/b running on the other end of that service, and how it should be configured. i hope someone with some deep know how understands the problem and what to do here. cliff Tim Nichol wrote:>Hi all, > >I am having trouble setting up samba to act as a PDC. I am fairly new to red hat \ >linux, and have just installed RH 7.3 running the default configuration. I updated \ >samba to 2.2.7 using the online updating feature and followed a step by step tutorial \ >to configure samba to become a PDC. > >When i try to connect to the domain with windows XP pro, it displays the message "a \ >domain controller for the domain mydomain can not be located" > >when i choose details it says > >The error was: "DNS request not supported by name server." >(error code 0x0000232C RCODE_NOT_IMPLEMENTED) > >The query was for the SRV record for _ldap._tcp.dc._msdcs.mydomain > > >The network is simple, one windows XP pro machine with IP 192.168.1.6 and one RH 7.3 \ >linux machine with IP 192.168.1.5. Connections are working because both machines \ >succuessfully ping each other. > > >I ran testparm with no errors and have verified the samba server is running properly \ >with "smbclient //mymachine/user -U user -W mydomain" > >I downloaded and ran the SignOrSeal reg patch for XP, and also disabled the "Domain \ >member: Digitally encrypt or sign secure channel data (always)" option in the local \ >security. > >I have triple checked the tutorial guide with my config file, and have manually \ >created the required accounts > >What could be the problem? I have seen other people on this list with the same \ >problem, but the threads seem to die out without a solution. Please help! > >-Tim >-- ___cliff rayman___cliff@genwax.com___http://www.genwax.com/
On Wed, 11 Dec 2002, ___cliff rayman___ wrote:> John H Terpstra wrote: > > On Thu, 12 Dec 2002, Bradley W. Langhorst wrote: > > You might try to set a more DNS friendly domain name. ie: One without the > '.' in it. Could be a problem. > > ok - i tried GENWAXTEST. didn't help. i also removed the netbios name and tried both > at the same time. no luck.Are you using LDAP? If so, then you need to put all user and machine accounts into the LDAP database.> > the servers fully qualified name is MARS.GENWAX.TEST. > test is like com or org or net. i use my own root names all the > time for testing.Providing you are not using LDAP for Samba, use in smb.conf: workgroup = genwax netbios name = mars Also, first stop samba, the remove your secrets.tdb file. Also, remove the browse.dat (and if you have one, wins.dat), then restart samba, wait at least 5 minutes before you try to get your MS Windows client to join the domain. Also, I strongly recommend that you run Samba as your WINS server and set in the MS Windows Client TCP/IP config, the IP address of your samba server for the WINS primary _and_ secondary addresses. To enable WINS serving in samba in smb.conf [globals]: wins support = yes Also, restart the MS Windows machine, and when you log on as the local administrator, do NOT try to browse the network before you join the domain. Additionally, I presume you already have a root account in your smbpasswd file. You will need to use the 'Administrator' account to join the domain, and give it the password you entered when you added 'root' to smbpasswd. Let's see how that goes. - John T.> > here are some excerps from the ms help files: > ---- snip ----- > Error: This computer could not locate a domain controller for the > Active Directory domain displayed in the error message because the > Domain Name System (DNS) servers used by this computer for name > resolution failed to look up the service (SRV) resource record. > Cause: The DNS SRV resource record is not registered in DNS. > ---- snip ----- > > then: > Active Directory uses Domain Name System (DNS) to locate domain > controllers, enabling computers joining the network to obtain a > domain controller, and then begin the process of network > authentication. > Computers joining an Active Directory domain must satisfy the > following three DNS requirements: > The computer must be configured with the IP address of a preferred DNS server. > (OK - and DNS works fine) > > The _ldap._tcp.dc._msdcs.DNSDomainName service (SRV) resource record must exist > in DNS. (NOPE-don't have this) > ---- snip ---- > then: > set type=srv > _ldap._tcp.dc._msdcs.example.microsoft.com > Server: dc1.example.microsoft.com > Address: 10.0.0.14 > > _ldap._tcp.dc._msdcs.example.microsoft.com SRV service location > priority = 0 > weight = 0 > > port = 389 > svr hostname = dc1.example.microsoft.com > _ldap._tcp.dc._msdcs.example.microsoft.com SRV service location > priority = 0 > > weight = 0 > port = 389 > svr hostname = dc2.example.microsoft.com > ---- snip ---- > > port 389 in my /etc/services file is ldap. i am not sure what is causing it to want > to do ldap on my computer and not on anyone else's. > > the server is mars.genwax.test. the win XP pro SP1 client that i am trying to join to > the domain is hpvec2.genwax.test. when i try to join it to the domain by either > using the wizard or the change button, this is the only interaction with the server > that i see via tcpdump: > > 22:38:00.439236 hpvec2.genwax.test.1064 > mars.genwax.test.domain: 16+ SRV ? _ldap._tcp.dc._msdcs.GENWAX.TEST. (50) > 22:38:00.439664 mars.genwax.test.domain > hpvec2.genwax.test.1064: 16 NXDomain*- 0/1/0 (101) (DF) > > i need to get this solved, so let me know if there is anything > else i can provide that will help. > > cliff > > - John T. > > > > On Wed, 2002-12-11 at 23:03, ___cliff rayman___ wrote: > > > ok - did that. joined workgroup WORKGROUP. > rebooted (what else). > then attempted to change to domain GENWAX.TEST. > i received the same error message as previously. > > > > bummer - i thought that would be it. > i assume you get the welcome to WORKGROUP and > welcome to GENWAX.TEST message boxes after you change the machine props? > > > > # server name and group stuff > workgroup = genwax.test > netbios name = filesnew > > > i've never tried this - did you try logging in without the netbios name > param? > > Are your sure your clients are looking at the dns server you mentioned? > you might try putting the ip address into the hosts file on the pro > machine.. > > brad > > > > > > -- > ___cliff rayman___cliff@genwax.com___http://www.genwax.com/ > > >-- John H Terpstra Email: jht@samba.org
On Thu, 2002-12-12 at 01:35, ___cliff rayman___ wrote:> ---- snip ----- > Error: This computer could not locate a domain controller > for the > Active Directory domain displayed in the error message > because the > Domain Name System (DNS) servers used by this computer for > name > resolution failed to look up the service (SRV) resource > record. > Cause: The DNS SRV resource record is not registered in DNS.> port 389 in my /etc/services file is ldap. i am not sure what is > causing it to want > to do ldap on my computer and not on anyone else's. >AD uses ldap for its account db... Was this ever a part of an active directory domain? For some reason it seems like the XP thinks that the domain is an active directory domain... I think that srv record that it refers to is something special that ms does to dns. Is there an active directory domain somewhere else on the network?> i need to get this solved, so let me know if there is anything > else i can provide that will help.just keep working on it - we'll get it straightened out eventually. brad -- Bradley W. Langhorst <brad@langhorst.com>