9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Acme-SAC fstat issue?
@ 2007-11-07  5:14 Paul Lalonde
  2007-11-07  9:20 ` Charles Forsyth
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Lalonde @ 2007-11-07  5:14 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What does it mean when acme-SAC says:

can't fstat /n/c/dev/Users/plalonde/readme: The trust relationship  
between this workstation and the primary domain failed?

It failed to find any of my files in /n/c/dev/Users/plalonde, but  
didn't generate an error for that directory.

Paul

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFHMUm5pJeHo/Fbu1wRAgxFAJ9XVQt3qkyME5RvPzcJwpQz+r+ZwgCg5i4E
Hm0nUwETNcQoMgKTSZEgRBs=
=HOxq
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] Acme-SAC fstat issue?
  2007-11-07  5:14 [9fans] Acme-SAC fstat issue? Paul Lalonde
@ 2007-11-07  9:20 ` Charles Forsyth
  2007-11-23 16:55   ` Caerwyn Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Charles Forsyth @ 2007-11-07  9:20 UTC (permalink / raw)
  To: 9fans

>What does it mean when acme-SAC says:

>can't fstat /n/c/dev/Users/plalonde/readme: The trust relationship  
>between this workstation and the primary domain failed?

it sounds as though it's heading for therapy.
it's just repeating a diagnostic from Windows.
i've seen peculiar effects when a workstation was disconnected
from the machine declared to be the domain controller and seemed to work until the
cached security records timed out.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] Acme-SAC fstat issue?
  2007-11-07  9:20 ` Charles Forsyth
@ 2007-11-23 16:55   ` Caerwyn Jones
  0 siblings, 0 replies; 3+ messages in thread
From: Caerwyn Jones @ 2007-11-23 16:55 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Here's another go at working around these issues when a SID can't be
mapped to a name.
In the sidtouser() function if the name isn't mapped I return an
"unknown" for that sid.


--- /n/D/inferno-os/emu/Nt/devfs.c Wed Nov 21 22:53:06 EST 2007
+++ /sys/emu/Nt/devfs.c Fri Nov 23 11:51:39 EST 2007
@@ -1867,8 +1867,10 @@
 		gsid = osid;

 	owner = sidtouser(srv, osid);
+	if(owner == 0)
+		return 0;
 	group = sidtouser(srv, gsid);
-	if(owner == 0 || group == 0)
+	if(group == 0)
 		return 0;

 	/* no acl means full access */
@@ -2063,9 +2065,8 @@

 	naname = sizeof(aname);
 	ndname = sizeof(dname);
-
 	if(!LookupAccountSidW(srv, s, aname, &naname, dname, &ndname, &type))
-		return nil;
+		return mkuser(s, SidTypeUnknown, L"unknown", L"unknown") ;
 	return mkuser(s, type, aname, dname);
 }



On Nov 7, 2007 4:20 AM, Charles Forsyth <forsyth@terzarima.net> wrote:
> >What does it mean when acme-SAC says:
>
> >can't fstat /n/c/dev/Users/plalonde/readme: The trust relationship
> >between this workstation and the primary domain failed?
>
> it sounds as though it's heading for therapy.
> it's just repeating a diagnostic from Windows.
> i've seen peculiar effects when a workstation was disconnected
> from the machine declared to be the domain controller and seemed to work until the
> cached security records timed out.
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-23 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-07  5:14 [9fans] Acme-SAC fstat issue? Paul Lalonde
2007-11-07  9:20 ` Charles Forsyth
2007-11-23 16:55   ` Caerwyn Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).