[BlueOnyx:10831] Re: question inre fixhosts (#2)
On Mon June 18 2012 17:09, Michael Stauber wrote: > Hi Larry, > > > (sending again since not sure if original made it)... > > It made it. Just haven't had the time to answer yet. > > > Just curious, but why was the "test" removed from the > > /usr/sausalito/constructor/base/vsite/fixhosts file ??? > > > > Previous it was testing to see if the IP was already in the file, > > (the cat /etc/hosts | grep $ip 2>/dev/null line) > > which was followed by the test ( if $? != 0) and it added the line > > in. Now it just adds every IP the box has with the name of the > > primary IP of the box itself everytime it runs and mucks up my > > hostname fixes > > (I edit the host file and fix the names so that sendmail answers > > correctly). > > Well, the tests were only working right if you added a site. But on > Vsite renames or deletes it would leave the old entries in, which could > lead to undesireable results. > > Short of dumping the shell script and rewriting it properly in Perl I > threw out the test as an interim measure. The file is now recreated from > scratch every time around and all the existing Vsites are added to it. > It's not perfect and in the longer run I will create a Perl script that > does a better job, but what's there now is defenitely better than what > we had before. Appreciate the response, and it would be (or seem to me) logical, except that the current script is simply using "hostname" for all the IP addresses which puts the name of the box itself instead of the correct name for the IP address This quick hack, along with what is already there, removes everything between the begin Nuonce fix and end Nuonce fix lines, then adds back in each IP that does not already exist in the file, with the hosts real name if it exists, and the hostname of the box if it does not... I figure if somone has manually modified the hosts file outside of the begin and end Nuonce fix lines, they probably had a clue what they were doing (or thought they did anyway) and there is no program way of covering for that... This basically just replaces the for loop in the existing fixhosts file. for ip in $ips; do cat /etc/hosts | grep $ip >/dev/null if [ $? != 0 ]; then if (/usr/bin/host $ip 2>&1 > /dev/null) [ $? = 0 ] then TMP=`/usr/bin/host $ip | /usr/bin/tail -1 | /bin/awk '{print $5}'` else TMP=`hostname` fi /usr/bin/printf "$ip\t$TMP\n" >> /etc/hosts fi unset TMP done The tail portion is to take into account DNS that has www.domain.tld and domain.tld and mail.domain.tld all in DNS; could just as easily be "head -1" to take the first entry returned... PS: not critizing, appreciate what you all do PPS: if you prefer perl, I can redo fixhosts into a perl that does the same thing... -- Larry Smith lesm...@ecsis.net ___ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx
[BlueOnyx:10830] Re: 5106R login list
Thanks Chuck, This one has Squirrelmail though, any idea where that log is? I didn't see anything that looked likely in the log directory. Lew Berry, MCSE, MCT, CSSA LCB Consulting Inc. Systems Engineer 450-106 State Road 13 N, #205 St Johns FL, 32259 lcbe...@lcbconsulting.net (904) 482-1405 (904) 322-5049 fax (904) 651-1046 cell ** CONFIDENTIALITY NOTICE ** NOTICE: This e-mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of the addressee. If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message from your system. Thank you. From: blueonyx-boun...@mail.blueonyx.it [mailto:blueonyx-boun...@mail.blueonyx.it] On Behalf Of Chuck Tetlow Sent: Monday, June 18, 2012 2:06 PM To: BlueOnyx General Mailing List Subject: [BlueOnyx:10826] Re: 5106R login list You're looking for login information in two different locations. The OpenWebMail info is in /var/log/openwebmail.log. To see the logins via OpenWebMail, use the command: cat /var/log/openwebmail.log | grep login | less But to see who is logging in via POP and/or IMAP - check the /var/log/secure file. To see just the POP & IMAP logins with their login date/time, use: cat /var/log/secure | grep dovecot-auth | grep "session opened" | cut -d " " -f1,2,3,11 | less Or if you want to see just the usernames of who has logged in, without all the date/time information and duplications - use: cat /var/log/secure | grep dovecot-auth | grep "session opened" | cut -d " " -f11 | sort -u | less Good luck. Chuck -- Original Message --- From: Lew Berry To: BlueOnyx General Mailing List Sent: Mon, 18 Jun 2012 17:36:24 + Subject: [BlueOnyx:10825] Re: 5106R login list > Webmail (and other IMAP) and POP3 > > Lew Berry, MCSE, MCT, CSSA > LCB Consulting Inc. > Systems Engineer > 450-106 State Road 13 N, #205 > St Johns FL, 32259 > lcbe...@lcbconsulting.net > (904) 482-1405 > (904) 322-5049 fax > (904) 651-1046 cell > > ** CONFIDENTIALITY NOTICE ** > NOTICE: This e-mail message and all attachments transmitted with it may > contain legally privileged and confidential information intended solely for > the use of the addressee. If the reader of this message is not the intended > recipient, you are hereby notified that any reading, dissemination, > distribution, copying, or other use of this message or its attachments is > strictly prohibited. If you have received this message in error, please > notify the sender immediately and delete this message from your system. Thank > you. > > > > -Original Message- > > From: blueonyx-boun...@mail.blueonyx.it [mailto:blueonyx- > > boun...@mail.blueonyx.it] On Behalf Of Richard Morgan > > Sent: Monday, June 18, 2012 12:06 PM > > To: BlueOnyx General Mailing List > > Subject: [BlueOnyx:10823] Re: 5106R login list > > > > Hi > > > > No, I disagree... it shows all the ftp sessions for all sites too. If you > > need the > > last login for webmail, GUI, POP3, HTTP, etc, I can't imagine you'll find > > all this > > in one place. What are you looking for? > > > > Richard > > - Original Message - > > From: "Lew Berry" > > To: "BlueOnyx General Mailing List" > > Sent: Monday, June 18, 2012 4:37 PM > > Subject: [BlueOnyx:10822] Re: 5106R login list > > > > > > > Only generates for admin and reboot, anyway to generate for all users on > > > the box? > > > > > > Lew Berry, MCSE, MCT, CSSA > > > LCB Consulting Inc. > > > Systems Engineer > > > 450-106 State Road 13 N, #205 > > > St Johns FL, 32259 > > > lcbe...@lcbconsulting.net > > > (904) 482-1405 > > > (904) 322-5049 fax > > > (904) 651-1046 cell > > > > > > ** CONFIDENTIALITY NOTICE ** > > > NOTICE: This e-mail message and all attachments transmitted with it may > > > contain legally privileged and confidential information intended solely > > > for the use of the addressee. If the reader of this message is not the > > > intended recipient, you are hereby notified that any reading, > > > dissemination, distribution, copying, or other use of this message or its > > > attachments is strictly prohibited. If you have received this message in > > > error, please notify the sender immediately and delete this message from > > > your system. Thank you. > > > > > ** > > ** > > > > > > > > >> -Original Message- > > >> From: blueonyx-boun...@mail.blueonyx.it [mailto:
[BlueOnyx:10829] Re: question inre fixhosts (#2)
Hi Larry, > (sending again since not sure if original made it)... It made it. Just haven't had the time to answer yet. > Just curious, but why was the "test" removed from the > /usr/sausalito/constructor/base/vsite/fixhosts file ??? > > Previous it was testing to see if the IP was already in the file, > (the cat /etc/hosts | grep $ip 2>/dev/null line) > which was followed by the test ( if $? != 0) and it added the line > in. Now it just adds every IP the box has with the name of the > primary IP of the box itself everytime it runs and mucks up my > hostname fixes > (I edit the host file and fix the names so that sendmail answers > correctly). Well, the tests were only working right if you added a site. But on Vsite renames or deletes it would leave the old entries in, which could lead to undesireable results. Short of dumping the shell script and rewriting it properly in Perl I threw out the test as an interim measure. The file is now recreated from scratch every time around and all the existing Vsites are added to it. It's not perfect and in the longer run I will create a Perl script that does a better job, but what's there now is defenitely better than what we had before. -- With best regards, Michael Stauber ___ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx
[BlueOnyx:10828] question inre fixhosts (#2)
(sending again since not sure if original made it)... Just curious, but why was the "test" removed from the /usr/sausalito/constructor/base/vsite/fixhosts file ??? Previous it was testing to see if the IP was already in the file, (the cat /etc/hosts | grep $ip 2>/dev/null line) which was followed by the test ( if $? != 0) and it added the line in. Now it just adds every IP the box has with the name of the primary IP of the box itself everytime it runs and mucks up my hostname fixes (I edit the host file and fix the names so that sendmail answers correctly). -- Larry Smith lesm...@ecsis.net ___ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx
[BlueOnyx:10827] Removing Sites and DNS
Not sure if this is a known issue or it is by design but. I had two sites www.mysite.com and dev.mysite.com and I removed the dev.mysite.com and it deleted all the DNS values for both sites. Is that normal and expected? ___ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx
[BlueOnyx:10826] Re: 5106R login list
You're looking for login information in two different locations. The OpenWebMail info is in /var/log/openwebmail.log. To see the logins via OpenWebMail, use the command: cat /var/log/openwebmail.log | grep login | less But to see who is logging in via POP and/or IMAP - check the /var/log/secure file. To see just the POP & IMAP logins with their login date/time, use: cat /var/log/secure | grep dovecot-auth | grep "session opened" | cut -d " " -f1,2,3,11 | less Or if you want to see just the usernames of who has logged in, without all the date/time information and duplications - use: cat /var/log/secure | grep dovecot-auth | grep "session opened" | cut -d " " -f11 | sort -u | less Good luck. Chuck -- Original Message --- From: Lew Berry To: BlueOnyx General Mailing List Sent: Mon, 18 Jun 2012 17:36:24 + Subject: [BlueOnyx:10825] Re: 5106R login list > Webmail (and other IMAP) and POP3 > > Lew Berry, MCSE, MCT, CSSA > LCB Consulting Inc. > Systems Engineer > 450-106 State Road 13 N, #205 > St Johns FL, 32259 > lcbe...@lcbconsulting.net > (904) 482-1405 > (904) 322-5049 fax > (904) 651-1046 cell > > ** CONFIDENTIALITY NOTICE ** > NOTICE: This e-mail message and all attachments transmitted with it may > contain legally privileged and confidential information intended solely for > the use of the addressee. If the reader of this message is not the intended > recipient, you are hereby notified that any reading, dissemination, > distribution, copying, or other use of this message or its attachments is > strictly prohibited. If you have received this message in error, please > notify the sender immediately and delete this message from your system. Thank > you. > > > > -Original Message- > > From: blueonyx-boun...@mail.blueonyx.it [mailto:blueonyx- > > boun...@mail.blueonyx.it] On Behalf Of Richard Morgan > > Sent: Monday, June 18, 2012 12:06 PM > > To: BlueOnyx General Mailing List > > Subject: [BlueOnyx:10823] Re: 5106R login list > > > > Hi > > > > No, I disagree... it shows all the ftp sessions for all sites too. If you > > need the > > last login for webmail, GUI, POP3, HTTP, etc, I can't imagine you'll find > > all this > > in one place. What are you looking for? > > > > Richard > > - Original Message - > > From: "Lew Berry" > > To: "BlueOnyx General Mailing List" > > Sent: Monday, June 18, 2012 4:37 PM > > Subject: [BlueOnyx:10822] Re: 5106R login list > > > > > > > Only generates for admin and reboot, anyway to generate for all users on > > > the box? > > > > > > Lew Berry, MCSE, MCT, CSSA > > > LCB Consulting Inc. > > > Systems Engineer > > > 450-106 State Road 13 N, #205 > > > St Johns FL, 32259 > > > lcbe...@lcbconsulting.net > > > (904) 482-1405 > > > (904) 322-5049 fax > > > (904) 651-1046 cell > > > > > > ** CONFIDENTIALITY NOTICE ** > > > NOTICE: This e-mail message and all attachments transmitted with it may > > > contain legally privileged and confidential information intended solely > > > for the use of the addressee. If the reader of this message is not the > > > intended recipient, you are hereby notified that any reading, > > > dissemination, distribution, copying, or other use of this message or its > > > attachments is strictly prohibited. If you have received this message in > > > error, please notify the sender immediately and delete this message from > > > your system. Thank you. > > > > > ** > > ** > > > > > > > > >> -Original Message- > > >> From: blueonyx-boun...@mail.blueonyx.it [mailto:blueonyx- > > >> boun...@mail.blueonyx.it] On Behalf Of Richard Barker > > >> Sent: Monday, June 18, 2012 11:07 AM > > >> To: blueonyx@mail.blueonyx.it > > >> Subject: [BlueOnyx:10820] Re: 5106R login list > > >> > > >> I do this and works great > > >> last > lastlog.txt > > >> > > >> RC > > >> > > >> -- > > >> +-+ > > >> Richard C. Barker Sr. > > >> > > >> +-+ > > >> > > >> ___ > > >> Blueonyx mailing list > > >> Blueonyx@mail.blueonyx.it > > >> http://mail.blueonyx.it/mailman/listinfo/blueonyx > > > > > > ___ > > > Blueonyx mailing list > > > Blueonyx@mail.blueonyx.it > > > http://mail.blueonyx.it/mailman/listinfo/blueonyx > > > > ___ > > Blueonyx mailing list > > Blueonyx@mail.blueonyx.it > > http://mail.blueonyx.it/mailman/listinfo/blueonyx > > ___ > Blueonyx mailing list > Blueonyx@mail.blueonyx.it > http://mail.blueonyx.it/mailman/listinfo/blueonyx --- End of Original Message ---
[BlueOnyx:10825] Re: 5106R login list
Webmail (and other IMAP) and POP3 Lew Berry, MCSE, MCT, CSSA LCB Consulting Inc. Systems Engineer 450-106 State Road 13 N, #205 St Johns FL, 32259 lcbe...@lcbconsulting.net (904) 482-1405 (904) 322-5049 fax (904) 651-1046 cell ** CONFIDENTIALITY NOTICE ** NOTICE: This e-mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of the addressee. If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message from your system. Thank you. > -Original Message- > From: blueonyx-boun...@mail.blueonyx.it [mailto:blueonyx- > boun...@mail.blueonyx.it] On Behalf Of Richard Morgan > Sent: Monday, June 18, 2012 12:06 PM > To: BlueOnyx General Mailing List > Subject: [BlueOnyx:10823] Re: 5106R login list > > Hi > > No, I disagree... it shows all the ftp sessions for all sites too. If you > need the > last login for webmail, GUI, POP3, HTTP, etc, I can't imagine you'll find all > this > in one place. What are you looking for? > > Richard > - Original Message - > From: "Lew Berry" > To: "BlueOnyx General Mailing List" > Sent: Monday, June 18, 2012 4:37 PM > Subject: [BlueOnyx:10822] Re: 5106R login list > > > > Only generates for admin and reboot, anyway to generate for all users on > > the box? > > > > Lew Berry, MCSE, MCT, CSSA > > LCB Consulting Inc. > > Systems Engineer > > 450-106 State Road 13 N, #205 > > St Johns FL, 32259 > > lcbe...@lcbconsulting.net > > (904) 482-1405 > > (904) 322-5049 fax > > (904) 651-1046 cell > > > > ** CONFIDENTIALITY NOTICE ** > > NOTICE: This e-mail message and all attachments transmitted with it may > > contain legally privileged and confidential information intended solely > > for the use of the addressee. If the reader of this message is not the > > intended recipient, you are hereby notified that any reading, > > dissemination, distribution, copying, or other use of this message or its > > attachments is strictly prohibited. If you have received this message in > > error, please notify the sender immediately and delete this message from > > your system. Thank you. > > > ** > ** > > > > > >> -Original Message- > >> From: blueonyx-boun...@mail.blueonyx.it [mailto:blueonyx- > >> boun...@mail.blueonyx.it] On Behalf Of Richard Barker > >> Sent: Monday, June 18, 2012 11:07 AM > >> To: blueonyx@mail.blueonyx.it > >> Subject: [BlueOnyx:10820] Re: 5106R login list > >> > >> I do this and works great > >> last > lastlog.txt > >> > >> RC > >> > >> -- > >> +-+ > >> Richard C. Barker Sr. > >> > >> +-+ > >> > >> ___ > >> Blueonyx mailing list > >> Blueonyx@mail.blueonyx.it > >> http://mail.blueonyx.it/mailman/listinfo/blueonyx > > > > ___ > > Blueonyx mailing list > > Blueonyx@mail.blueonyx.it > > http://mail.blueonyx.it/mailman/listinfo/blueonyx > > ___ > Blueonyx mailing list > Blueonyx@mail.blueonyx.it > http://mail.blueonyx.it/mailman/listinfo/blueonyx ___ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx
[BlueOnyx:10824] Re: 5106R login list
I was logged in as admin then did su - I got a complete list of all users date, time and IP RC ___ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx
[BlueOnyx:10823] Re: 5106R login list
Hi No, I disagree... it shows all the ftp sessions for all sites too. If you need the last login for webmail, GUI, POP3, HTTP, etc, I can't imagine you'll find all this in one place. What are you looking for? Richard - Original Message - From: "Lew Berry" To: "BlueOnyx General Mailing List" Sent: Monday, June 18, 2012 4:37 PM Subject: [BlueOnyx:10822] Re: 5106R login list > Only generates for admin and reboot, anyway to generate for all users on > the box? > > Lew Berry, MCSE, MCT, CSSA > LCB Consulting Inc. > Systems Engineer > 450-106 State Road 13 N, #205 > St Johns FL, 32259 > lcbe...@lcbconsulting.net > (904) 482-1405 > (904) 322-5049 fax > (904) 651-1046 cell > > ** CONFIDENTIALITY NOTICE ** > NOTICE: This e-mail message and all attachments transmitted with it may > contain legally privileged and confidential information intended solely > for the use of the addressee. If the reader of this message is not the > intended recipient, you are hereby notified that any reading, > dissemination, distribution, copying, or other use of this message or its > attachments is strictly prohibited. If you have received this message in > error, please notify the sender immediately and delete this message from > your system. Thank you. > > > >> -Original Message- >> From: blueonyx-boun...@mail.blueonyx.it [mailto:blueonyx- >> boun...@mail.blueonyx.it] On Behalf Of Richard Barker >> Sent: Monday, June 18, 2012 11:07 AM >> To: blueonyx@mail.blueonyx.it >> Subject: [BlueOnyx:10820] Re: 5106R login list >> >> I do this and works great >> last > lastlog.txt >> >> RC >> >> -- >> +-+ >> Richard C. Barker Sr. >> >> +-+ >> >> ___ >> Blueonyx mailing list >> Blueonyx@mail.blueonyx.it >> http://mail.blueonyx.it/mailman/listinfo/blueonyx > > ___ > Blueonyx mailing list > Blueonyx@mail.blueonyx.it > http://mail.blueonyx.it/mailman/listinfo/blueonyx ___ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx
[BlueOnyx:10822] Re: 5106R login list
Only generates for admin and reboot, anyway to generate for all users on the box? Lew Berry, MCSE, MCT, CSSA LCB Consulting Inc. Systems Engineer 450-106 State Road 13 N, #205 St Johns FL, 32259 lcbe...@lcbconsulting.net (904) 482-1405 (904) 322-5049 fax (904) 651-1046 cell ** CONFIDENTIALITY NOTICE ** NOTICE: This e-mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of the addressee. If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message from your system. Thank you. > -Original Message- > From: blueonyx-boun...@mail.blueonyx.it [mailto:blueonyx- > boun...@mail.blueonyx.it] On Behalf Of Richard Barker > Sent: Monday, June 18, 2012 11:07 AM > To: blueonyx@mail.blueonyx.it > Subject: [BlueOnyx:10820] Re: 5106R login list > > I do this and works great > last > lastlog.txt > > RC > > -- > +-+ > Richard C. Barker Sr. > > +-+ > > ___ > Blueonyx mailing list > Blueonyx@mail.blueonyx.it > http://mail.blueonyx.it/mailman/listinfo/blueonyx ___ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx
[BlueOnyx:10821] Re: Error restart HTTPD after edit
On that site for that site include I did this and all worked. ###Options +FollowSymLinks Options -Indexes FollowSymLinks RC ___ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx
[BlueOnyx:10820] Re: 5106R login list
I do this and works great last > lastlog.txt RC -- +-+ Richard C. Barker Sr. +-+ ___ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx
[BlueOnyx:10819] 5106R login list
Anyone have an easy way to generate a userlist with the last time/date that the user logged on? Lew Berry, MCSE, MCT, CSSA LCB Consulting Inc. Systems Engineer 450-106 State Road 13 N, #205 St Johns FL, 32259 lcbe...@lcbconsulting.net (904) 482-1405 (904) 322-5049 fax (904) 651-1046 cell ** CONFIDENTIALITY NOTICE ** NOTICE: This e-mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of the addressee. If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message from your system. Thank you. ___ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx
[BlueOnyx:10818] Re: ProFTPD unable to serve symlinked folders
Hi Michael, Sorry for the non-standard definition of the user. The user logs to the ftp server as additional server-administrator, not as "admin" or a particular ftp user binded to a specific website. Let me know if you nedd further info. Thanks in advance. Best Regards -- Stefano Cecconello Il 15/06/2012 16:18, Michael Stauber ha scritto: Hi Stefano, The client access the ftp server with ad hoc superuser, but when it access the /home/sites/ folder the directory listing show a list of files not of folders. Hmmm ... what do you mean with "ad hoc superuser"? As "admin" you should be able to upload to any Vsite /web directory and you also have read access to most of the files from the document root of any Vsite. ProFTPD Version: 1.3.4a (maint) Googling around, it seems that this is a well known bug. http://bugs.proftpd.org/show_bug.cgi?id=3747 [2] http://bugs.proftpd.org/show_bug.cgi?id=3318 [3] We just updated ProFTPd to 1.3.4a recently and according to the ProFTPd bugtracker the problem is fixed in 1.3.4, which you have installed. Other than that it could be a configuration issue in /etc/proftpd.conf. I'll look into it when I know what you mean with "ad hoc superuser". ___ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx