List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:November 30 2006 3:44am
Subject:Re: username audit column
View as plain text  
In the last episode (Nov 29), Ted Yu said:
> By username I mean Linux login. Is there a way to call Perl/Shell
> script to obtain this information ?

Won't work for remote users, of course.  If you were on *BSD, AIX, or
Solaris you could write a UDF that called the getpeereid() or
getpeerucred() libc function to fetch the username for unix-socket
connections.  On Linux you will need to call getsockopt() with the
SO_PEERCRED option.

-- 
	Dan Nelson
	dnelson@stripped
Thread
username audit columnTed Yu30 Nov
  • Re: username audit columnTed Yu30 Nov
    • Re: username audit columnDan Nelson30 Nov
      • unable to create function in MySQL 5.0Ted Yu30 Nov
        • Re: unable to create function in MySQL 5.0Martijn Tonies1 Dec
          • Re: unable to create function in MySQL 5.0Ted Yu1 Dec
            • Re: unable to create function in MySQL 5.0Martijn Tonies1 Dec
        • Re: unable to create function in MySQL 5.0Jacques Marneweck1 Dec