Hi all
I've installed the Cyrus-SASL on my host as described in the INSTALL file without any trouble. After that I must recompile sendmail to use the sasl libraries. Following the information given in the www.sendmail.org I did the following:
1. created the devtools/Site/site.conf.m4 file
2...
Hi
What I need is a global log:
CustomLog /usr/adm/apache_access common
and local log
CustomLog /home/VirtServer/Log/server_access common
By default when I define CustomLog in the virtual host container apache stops reporting to the global log. What I need is the same information to bi...
Hi all
I'm running an Apache web server with some virtual servers on it. How may I log the activity for each virtual server in a separate file and for all the users in a common file simoltaneously.
10x
What I meaned was without looping...
If I use some of these methods I shoud do something like
while(1)
{
lstat("file.dat",filestat);
....
}
but I want to avoid this "while" loop....
thanks for this source but what I'm doing should be a C program. And it's almost done except I don't want to use any loops because of the CPU time waste. There should be some kind of function (may be a kind of signal???) that watch if the file has been changed.
Hi all
I'm trying to make something like authomatized "who" program. It must be able to untherstand when a user is logging in or out so it needs to know innediatly if the utmp file is changed. How may I do it without making something like:
...
while (1)
{
u_entry=getutent()...
The users have not any shell (/bin/noshell) ;) so the .shell_history file is unuseable in that case
I need to log only the standart messages that syslogd outputs for the mail (sendmail & pop3 infos) and the traffic for each user in a separate file for any user.
I found the utmp documentation...
Hi all
I'm trying to write a simple user activity logging program. But Would anyone tell me what's the best way to untherstand that a user have logged in or out
Thanks
what's this "anything"? it should be a valid username or mailalias otherwise sendmail won't accept it. For example you should add the mailalias (/etc/mail/aliases or /etc/aliases):
anything: customer
Good Luck ;)
Hi all
Here is the situation:
I need a program that reads information from stdin and for example write it to stdout (the second part is not exactly the same but it's not important right now ;) ). And that's what I wrote:
#include <stdio.h>
main()
{
char *str;
while (1)
{
if...
Yes that's clear to me
but I need some way to catch them without "\". That's because my program allows users to execute some commands with root privilegies but a don't want someone to read my shadow and copy it to stdout for exapmle ;)
Hi all
here I am again with my lame questions ;)
How may I get from command line special characters like <,>,;.... and have them like arguments for my program (main(int argc,char **argv))?
thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.