mod_log_config record UID of file owner?

mod_log_config record UID of file owner?

Post by Paul T Hiro » Thu, 02 May 1996 04:00:00



In short...
Was wondering if anyone had edited mod_log_config.c such that it would record
in access_log, the UID of the owner of the file that was transferred out, and
if so, if thta anyone could drop me a note.

In a bit more detail...
Our server's directory is setup such that there are several ways for a
specific page to be looked at.  One can do a http://blah/~username/.
Or a http://blah/homedir_name/ (the homedir for our users are
basically right underneath docroot, and the homdir name isn't necessarily
the same as the username - ie: user "meow" might have a homedir of /home/dog).
 Or, if a user is also running a virtual server, then access can be via
http://some_other_blah/.

Given these three different mechanisms (and perhaps more that I'm just
not aware of) I'm having a tough time compiling stats for each user.  So I
thought perhaps, it might be simplest to simply obtain the uid of the
file being transferred, and log that (along with stuff like bytecount, which
is already being logged).

If anyone has any hints or tips, I'd appreciate you dropping me a note.  If
there are easier alternatives, I'd appreciate that too!

Reply or followup, both read regularly.  Summary as interest warrants.
Thanks all...

PH

--

Engr: ACS            : Programmer/Analyst   : ACS unless specified otherwise
1039 Academic Surge  : Fax (916) 752-4465   :-------------------------------
Davis, CA 95616-8770 : Voice (916) 752-7181 : Motto: rm -fr /my/life

 
 
 

1. Only niumbers in uid-owner and gid-owner fields when listing directory

Hi,

I currently have the following strange situation on two Solaris 8 servers
(SPARC with patch cluster of mai installed). When I add a useraccount with a
command like "# /usr/sbin/useradd -u 999 -g 10 -d /export/home/test -s
/bin/ksh -m test", change the password of this useraccount with "# passwd
test" and then login with this account I only see de uid and gid numbers in
the corresponding fields when listing a directory with "ls -sla".

$ pwd
/export/home/test
$ ls -sla
total 18
   2 drwxr-xr-x   2 999      10           512 Jun 11 06:30 .
   2 drwxr-xr-x   3 0        0            512 Jun 11 06:29 ..
   2 -rw-r--r--   1 999      10           144 Jun 11 06:29 .profile
   2 -rw-------   1 999      10           364 Jun 11 07:17 .sh_history
   2 -rw-r--r--   1 999      10           141 Jun 11 06:29 local.cshrc
   2 -rw-r--r--   1 999      10           124 Jun 11 06:29 local.cshrc.ship
   2 -rw-r--r--   1 999      10           607 Jun 11 06:29 local.login
   2 -rw-r--r--   1 999      10           569 Jun 11 06:29 local.profile
   2 -rw-r--r--   1 999      10           582 Jun 11 06:29
local.profile.ship

Anyone any idea what the problem is here?

Also the program "id" does not show the full output :

$ id
uid=999 gid=10

When doing the above as user root all the information is provided correctly.

I have searched google but couldn't find anything.

MTIA.

Lars.

2. Problems with my CD-rom

3. iptables -m owner --uid-owner does not work

4. Low latency patch for IDE (kernel 2.2.14)

5. Kernel question: How to find uid of owner of TCP/socket?

6. Travan tapes and Slackware 3.0

7. iptables match uid-owner only works for root?

8. are ioctl calls supposed to take this long?

9. getting owner(uid) of current process in Kernel extensions

10. CGI-Execution with UID/GID of script-owner

11. iptables rules on UID owner

12. retrieve record from record file(binary) to output to disply, need help

13. Correct file owner for html files ?