i have no radutmp file how can i fix that???

Fduch the Pravking wrote:
On Fri, Jun 07, 2002 at 03:00:07AM -0400, Travis Best wrote:
  
when i run radwho it dosent show anything but i know people are 
connected any ideas??????
    

Make sure that you're able to access radutmp and radwtmp files.

% who /var/log/radius/radutmp
who: /var/log/radius/radutmp: Permission denied

% ls -l /var/log/radius/radutmp
-rw-------  1 radius  wheel  10000  7 Jun 14:33 /var/log/radius/radutmp


It's not good that radwho makes such things silently.

In /src/main/radwho.c, lines 491-495:
        /*
	 *      Show the users logged in on the terminal server(s).
	 */
	if ((fp = fopen(RADUTMP, "r")) == NULL)
		return 0;

Randy, why not to do
	if ((fp = fopen(RADUTMP, "r")) == NULL) {
		perror("fopen");
		return 1;
	}
?

  

Reply via email to