Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to enable AFP Access log




On 25.4.2008, at 2:19, Christopher Leonard wrote:

Greetings,
I am running a Leopard 10.5.2 server on a Mac Pro (early 2008) in a workgroup configuration in which I have users imported from Active Directory and other users created in Open Directory running on this machine.


How do I enable the AFP Access log? It seems off by default and I can't figure out how to turn it on. I would like to know who is logged in to the machine via AFP. Is there another way to do this with a workgroup config?
If this is off by default it seems to be a major security risk since I can't determine who is accessing the machine.


BTW, the SBM log is enabled, although there seems to be endless lookups:
/SourceCache/samba/samba-187/samba/source/smbd/ sesssetup.c:reply_spnego_kerberos(438)
Lookup trust account via passdb (NYMC.EDU\NYMC-SMS1$) even when no- one is connecting.


Thanks for any info
-Chris Leonard

Hi Chris,
the info you're looking for is not in the log at all. However, you can create a simple script to get all details you need. Something like:


/usr/sbin/serveradmin command afp:command=getConnectedUsers | grep timeStamp >> $LOGFILE

#write connected users
/usr/sbin/serveradmin command afp:command=getConnectedUsers | grep name >> $LOGFILE



HTH Robert _______________________________________________ Do not post admin requests to the list. They will be ignored. Macos-x-server mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >How to enable AFP Access log (From: Christopher Leonard <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.