FAUTH man page on Plan9

Man page or keyword search:  
man Server   549 pages
apropos Keyword Search (all sections)
Output format
Plan9 logo
[printable version]

FAUTH(2)							      FAUTH(2)

NAME
       fauth - set up authentication on a file descriptor to a file server

SYNOPSIS
       #include <u.h>
       #include <libc.h>

       int   fauth(int fd, char *aname)

DESCRIPTION
       Fauth  is  used	to  establish  authentication  for the current user to
       access the resources available through the 9P connection represented by
       fd.   The return value is a file descriptor, conventionally called afd,
       that is subsequently used to negotiate the authentication protocol  for
       the  server,  typically	using auth_proxy or fauth_proxy (see auth(2)).
       After successful authentication, afd may be passed as the second	 argu‐
       ment  to a subsequent mount call (see bind(2)), with the same aname, as
       a ticket-of-entry for the user.

       If fauth returns -1, the error case, that means the  file  server  does
       not require authentication for the connection, and afd should be set to
       -1 in the call to mount.

       It is rare to use fauth directly; more commonly amount (see auth(2)) is
       used.

SOURCE
       /sys/src/libc/9syscall

SEE ALSO
       attach(5), auth(2) (particularly amount), authsrv(6), auth(8)

DIAGNOSTICS
       Sets errstr.

								      FAUTH(2)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Plan9

List of man pages available for Plan9

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net