
gnix
Novice
Feb 19, 2009, 5:30 AM
Post #2 of 5
(1824 views)
|
|
Re: [tmac17] Perl system administration problem
[In reply to]
|
Can't Post
|
|
Hi, 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.
#!/usr/bin/perl -w use Mail::Mailer; $type = 'mail'; $mailprog = Mail::Mailer->new($type); %headers = ( 'To' => 'you@domain.com', 'From' => 'me@domain.com', 'Subject'=> 'Reports' ); $mailprog->open(\%headers); print $mailprog `quotaon -av`; $mailprog->close(); 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. gnix
|