Feb 19, 2009, 5:30 AM
Post #2 of 5
Re: [tmac17] Perl system administration problem
[In reply to]
Question 1: I am learning English and I don't understand what you want.
Question 2: If you know all the temporary users you can change the Expire field in the /etc/shadow line of every user. The Expire field displays the number of days since January 1, 1970.
Question 3: Do you have the Mail::Mailer module? If yes, the following code can be useful.
$type = 'mail';
$mailprog = Mail::Mailer->new($type);
%headers = (
'To' => 'firstname.lastname@example.org',
'From' => 'email@example.com',
print $mailprog `quotaon -av`;
Be careful that I didn't test this code.
Question 4: To do that you have to edit your httpd.conf. Uncomment "UserDir public_html" and comment "UserDir disable". Create the public_html directories and set the permissions as described in the httpd.conf.