Re: tab-delimited to csv

2009-02-16 Thread John Almberg
On Feb 16, 2009, at 12:16 PM, Adam Vande More wrote: John Almberg wrote: Can anyone suggest a way to convert a tab-delimited file to csv using standard unix utilities? I could whip up a Ruby script to do it, but I hate to reinvent the wheel. Thanks: John

Re: tab-delimited to csv

2009-02-16 Thread John Almberg
On Feb 16, 2009, at 12:55 PM, Roland Smith wrote: On Mon, Feb 16, 2009 at 11:55:50AM -0500, John Almberg wrote: Can anyone suggest a way to convert a tab-delimited file to csv using standard unix utilities? I could whip up a Ruby script to do it, but As long as the files don't contain

Re: tab-delimited to csv

2009-02-16 Thread John Almberg
On Feb 16, 2009, at 1:25 PM, Adam Vande More wrote: John Almberg wrote: On Feb 16, 2009, at 12:55 PM, Roland Smith wrote: On Mon, Feb 16, 2009 at 11:55:50AM -0500, John Almberg wrote: Can anyone suggest a way to convert a tab-delimited file to csv using standard unix utilities? I could

Re: Old user can't log in

2009-02-13 Thread John Almberg
On Feb 13, 2009, at 1:21 AM, Da Rock wrote: On Thu, 2009-02-12 at 21:52 -0800, Chuck Swiger wrote: On Feb 12, 2009, at 8:52 PM, Da Rock wrote: With reasonable organization, and appropriate use of sudo or setgid binaries for things like people who use SVN or CVS, there generally isn't reason

Old user can't log in

2009-02-12 Thread John Almberg
Just ran into a strange problem... I have a long-standing user account on my FreeBSD box that no longer works. She can't ssh into the box, and I can't even su to her account. $ su jessica Password: su: setusercontext: Invalid argument Doing some googling, I did find people with similar

Re: Old user can't log in

2009-02-12 Thread John Almberg
On Feb 12, 2009, at 7:19 PM, Chuck Swiger wrote: On Feb 12, 2009, at 3:14 PM, John Almberg wrote: Just ran into a strange problem... I have a long-standing user account on my FreeBSD box that no longer works. She can't ssh into the box, and I can't even su to her account. $ su jessica

Re: Web server password management

2009-01-02 Thread John Almberg
On Jan 2, 2009, at 2:36 AM, stan wrote: I am setting up an Aoache2 webserver, and I want to require authenticon for some of it's contents. I am thinking of using htaccess. Is there a package that I can install that will allow users to request that various account management tasks be done.

How do I configure PHP to use curl?

2008-12-30 Thread John Almberg
I just ran into something that has me stumped. It's probably a real newbie question, but I can't figure it out... I'm trying to add curl support to my PHP installation, but when I run 'make config' in the /usr/ports/lang/php5 directory, curl is not one of the very small set of options

Re: How do I configure PHP to use curl?

2008-12-30 Thread John Almberg
On Dec 30, 2008, at 1:26 PM, Michael Powell wrote: John Almberg wrote: I just ran into something that has me stumped. It's probably a real newbie question, but I can't figure it out... I'm trying to add curl support to my PHP installation, but when I run 'make config' in the /usr/ports/lang

Re: How do I configure PHP to use curl?

2008-12-30 Thread John Almberg
On Dec 30, 2008, at 1:36 PM, Glen Barber wrote: On Tue, Dec 30, 2008 at 1:35 PM, Glen Barber glen.j.bar...@gmail.com wrote: On Tue, Dec 30, 2008 at 1:16 PM, John Almberg jalmb...@identry.com wrote: I just ran into something that has me stumped. It's probably a real newbie question, but I

Re: Suitability question

2008-12-18 Thread John Almberg
On Dec 18, 2008, at 4:25 PM, Patrick Baldwin wrote: Usually I'm asking questions for work related things. This one is more personal. My father has this tendency to end up wrecking his computer if he uses the Internet much. Computers are basically magic boxes to him, so education is of

How to find files that are eating up disk space

2008-12-17 Thread John Almberg
Here is another newbie question that is driving me crazy, but is probably a laughable situation to an experienced admin... I've got a smallish server that is suddenly out of disk space in the '/' partition. Probably some log files have gotten out of hand. I am going to start looking for

Re: How to find files that are eating up disk space

2008-12-17 Thread John Almberg
Is there a command line tool that will help me figure out where the problem is? I should probably have mentioned that what I currently do is run du -h -d0 / and gradually work my way down the tree, until I find the directory that is hogging disk space. This works, but is not

Re: How to find files that are eating up disk space

2008-12-17 Thread John Almberg
Is there a command line tool that will help me figure out where the problem is? I should probably have mentioned that what I currently do is run du -h -d0 / and gradually work my way down the tree, until I find the directory that is hogging disk space. This works, but is not

Re: How to find files that are eating up disk space

2008-12-17 Thread John Almberg
On Dec 17, 2008, at 1:53 PM, Karl Vogel wrote: On Wed, 17 Dec 2008 12:16:57 -0500, John Almberg jalmb...@identry.com said: J Is there a command line tool that will help me figure out where the [disk J space] problem is? I run a script every night to handle this. snip exit 0

Re: FreeBSD on a Mac Mini Intel?

2008-11-23 Thread John Almberg
On Nov 21, 2008, at 11:42 PM, Ian Jefferson wrote: Is anyone running FreeBSD on a Mac Mini Intel? I don't know the answer to your question, but don't think it's a crazy one. One of the most interesting things I've seen, lately, is a hosting company that uses stacks of Mac Minis running

rsync throwing odd error

2008-11-21 Thread John Almberg
This is the week for strange problems... I use rsync to copy tinydns data files to backup name servers. This has been working for about a year with no problem. Suddenly, I am getting odd errors: /usr/local/bin/rsync -az -e 'ssh ' data.cdb [EMAIL PROTECTED]:/usr/

Re: rsync throwing odd error

2008-11-21 Thread John Almberg
On Nov 21, 2008, at 12:50 PM, John Almberg wrote: This is the week for strange problems... I use rsync to copy tinydns data files to backup name servers. This has been working for about a year with no problem. Suddenly, I am getting odd errors: /usr/local/bin/rsync -az -e 'ssh ' data.cdb

Re: rsync throwing odd error

2008-11-21 Thread John Almberg
A... a reverse DNS problem! Nope... wasn't that. Reverse DNS was working fine. I just didn't know how to check it properly. Well, that was a good idea. Time to find another one! - John ___ freebsd-questions@freebsd.org mailing list

snmpd strangeness

2008-11-19 Thread John Almberg
I just noticed something odd and am looking for ideas... As you can see from the top snippet below, snmpd is getting hammered by something. As a comparison, the load averages for this quad-core box are usually close to zero. I'm not even sure I'm using snmpd for anything... not even sure

Re: snmpd strangeness

2008-11-19 Thread John Almberg
On Nov 19, 2008, at 11:49 AM, Jeremy Chadwick wrote: On Wed, Nov 19, 2008 at 10:57:50AM -0500, John Almberg wrote: I just noticed something odd and am looking for ideas... As you can see from the top snippet below, snmpd is getting hammered by something. As a comparison, the load averages

Re: snmpd strangeness

2008-11-19 Thread John Almberg
taking up 2621MBytes of memory (RSS), BTW, after restarting, the process was a much more reasonable size. Another indicator that something had gone seriously wrong with it. 41659 root1 960 23072K 6636K select 0 0:05 0.34% snmpd Luckily, Monit alerted me to the problem

Re: snmpd strangeness

2008-11-19 Thread John Almberg
Now I'm curious about snmp, so perhaps I'll try to figure out how to get it to something useful. This machine has 8 hard drives, and is located in Manhattan, so I would certainly like to be informed if one of the raid drives went on the blink. That was one of the things he was trying to

Re: snmpd strangeness

2008-11-19 Thread John Almberg
This machine has an Intel motherboard and a hardware raid controller. From what I can tell, there is some Intel software installed on the machine that makes hardware faults visible to snmp. That would require Net-SNMP to be linked to that software (or library) directly. Two things can't just

Re: snmpd strangeness

2008-11-19 Thread John Almberg
The card in the box is a Intel 18E PCI-Express x8 SAS/SATA2 Hardware ROMB RAID with 128MB Memory Module and 72 Hour Battery Backup Cache $625 as shown on the packing list, so I hope it's a good one. Ah, I think it's hardware RAID, and PCIe to boot. Yes, I would recommend keeping that!

Re: snmpd strangeness

2008-11-19 Thread John Almberg
On Nov 19, 2008, at 4:09 PM, Ott Köstner wrote: John Almberg wrote: If not, how would I find the driver info? Typical line in fstab: /dev/mfid0s1a / ufs rw 1 1 Hey! # mount to see what is mounted I did this, but /dev/mfid0s1a didn't

Re: (no subject)

2008-11-14 Thread John Almberg
Perhaps you should try the linux distros first to get a bit of a feel of *nix variants? FreeBSD can be daunting to the first time user, but is one hell of a production system once you know how to handle it properly. Several people in this thread have made this recommendation... I disagree

Re: Disallowing ssl2

2008-11-11 Thread John Almberg
On Nov 11, 2008, at 8:50 AM, John Almberg wrote: My server got an audit for PCI compliance and was red-flagged for allowing SSL2 connections, which they have some problem with. They want the server to use SSL3 or TLS: Synopsis : The remote service encrypts traffic using a protocol

Disallowing ssl2

2008-11-11 Thread John Almberg
My server got an audit for PCI compliance and was red-flagged for allowing SSL2 connections, which they have some problem with. They want the server to use SSL3 or TLS: Synopsis : The remote service encrypts traffic using a protocol with known weaknesses. Description : The remote service

Re: Disallowing ssl2

2008-11-11 Thread John Almberg
It's certainly possible to insist on SSLv3 or TLSv1 for SSL connections, and nothing[*] will break. The client and server will negotiate to find a mutually acceptable cipher and protocol level at the point of making the connection. This seems to be less painful than I was anticipating...

Re: Question on creating a video server

2008-11-08 Thread John Almberg
On Nov 8, 2008, at 1:40 PM, Ted Mittelstaedt wrote: Hi All, OK, I'm just asking for opinions here on some application software. Like most people we have a nice big 21 TV set that will be obsolete in Feb. I have been thinking about replacing this with a big screen TV set but the prices

Re: mysql connection through ssl tunnel

2008-10-22 Thread John Almberg
Now I just need to figure out how to start it on reboot, but that is something I've been meaning to learn, anyway, so I don't mind. I hope you guys will bear with me just a little more... I have spent the day trying to figure out how to create an rc script for autossh. Very cool, and not

Re: mysql connection through ssl tunnel

2008-10-22 Thread John Almberg
Answering my own question (probably the best way)... I solved this problem by figuring out how to execute the command inside the rc script as a non-root user. Like so: autossh_start() { echo ${command} ${command_args} su admin -c ${command} ${command_args} echo started autossh } This

Re: mysql connection through ssl tunnel

2008-10-21 Thread John Almberg
On Oct 20, 2008, at 11:09 PM, Peter Boosten wrote: John Almberg wrote: I tried this, and not surprisingly, it didn't work. Now I'm trying to debug it... Maybe some mixup in the keys? In my example ssh tries to read the private key of root on the connecting server, so the server where

Re: mysql connection through ssl tunnel

2008-10-21 Thread John Almberg
On Oct 21, 2008, at 3:44 AM, Matthew Seaman wrote: John Almberg wrote: I do know that Mysql supports SSL... somehow this got discounted early in the discussion, perhaps mistakenly? I believe the thinking was that although MySQL claims to support SSL, it does in fact make a pretty bodge

Re: mysql connection through ssl tunnel

2008-10-21 Thread John Almberg
Now I just need to figure out how to start it on reboot, but that is something I've been meaning to learn, anyway, so I don't mind. I hope you guys will bear with me just a little more... I have spent the day trying to figure out how to create an rc script for autossh. Very cool, and not

Re: mysql connection through ssl tunnel

2008-10-20 Thread John Almberg
On Sep 23, 2008, at 10:09 AM, Vincent Hoffman wrote: John Almberg wrote: I have two FreeBSD machines. One is a application server, the other a database server running mysql. These machines are in two different locations. I'd like to allow the application server to access mysql through an SSH

Fwd: mysql connection through ssl tunnel

2008-10-20 Thread John Almberg
with 'kill -1 1'. This looks dangerous... -- John Websites and Marketing for On-line Collectible Dealers Identry, LLC John Almberg (631) 546-5079 [EMAIL PROTECTED] www.identry.com

Re: mysql connection through ssl tunnel

2008-10-20 Thread John Almberg
On Oct 20, 2008, at 4:50 PM, John Almberg wrote: After a few hours of work today, I have all this working perfectly. I'm using autossh to automatically create and monitor the ssh tunnel, and I can make mysql connections through the tunnel with no problems. Very cool. And that's

Re: mysql connection through ssl tunnel

2008-10-20 Thread John Almberg
On Oct 20, 2008, at 5:21 PM, Jeremy Chadwick wrote: On Mon, Oct 20, 2008 at 03:25:23PM -0400, John Almberg wrote: On Sep 23, 2008, at 10:09 AM, Vincent Hoffman wrote: John Almberg wrote: I have two FreeBSD machines. One is a application server, the other a database server running mysql

Firewall and FreeBSD ports

2008-10-10 Thread John Almberg
I just set up a new server with a very restricted PF configuration. One problem: I can no longer install software with ports (i.e, the / usr/ports collection.) I have to disable PF to do so. Obviously not a great solution. Am I correct in guessing that ports uses FTP to grab source files

Fwd: Firewall and FreeBSD ports

2008-10-10 Thread John Almberg
On Oct 10, 2008, at 2:41 PM, Jeremy Chadwick wrote: On Fri, Oct 10, 2008 at 06:54:32PM +0100, RW wrote: On Fri, 10 Oct 2008 09:51:16 -0700 Jeremy Chadwick [EMAIL PROTECTED] wrote: On Fri, Oct 10, 2008 at 12:45:04PM -0400, John Almberg wrote: I just set up a new server with a very restricted

Fwd: Firewall and FreeBSD ports

2008-10-10 Thread John Almberg
sh/bash: export FTP_PASSIVE_MODE=true Ah... because in passive mode, the client (my server) sets the data port, and my PF rules allow return data on the port used for the request. Okay... that makes sense, I think... (little by little, it sinks in...) -- John

Re: Firewall and FreeBSD ports

2008-10-10 Thread John Almberg
sh/bash: export FTP_PASSIVE_MODE=true csh: setenv FTP_PASSIVE_MODE true First off, this did solve the problem. Thank you, Jeremy. Now, as to the why... That's odd, because if you are running 7.x with a default settings, FTP_PASSIVE_MODE should be irrelevant to fetching distfiles - even

thorny (for me) permissions problem

2008-10-07 Thread John Almberg
The following permissions problem has me stumped: 1. User A uploads a file (using ftp) to the server, into a directory called 'data' owned by user B. Permissions on directory set to allow this, like this: drwxrwxr-x 2 user_b user_b 512 Oct 7 08:40 data 2. A cron job, run by

Re: thorny (for me) permissions problem

2008-10-07 Thread John Almberg
On Oct 7, 2008, at 9:34 AM, Jeremy Hooks wrote: 4. however, after upload, the file has the ownership A:B (i.e, owned by A, group B) with permissions -rw-r--r--. So B does not have permission to delete the file. -rw-r--r-- 1 user_a user_b 154879 Oct 7 08:40 data_file.csv Hi John.

Re: thorny (for me) permissions problem

2008-10-07 Thread John Almberg
Well, thanks to Valintin, I did figure out how to change the umask for pure-ftpd. So now uploaded files have the permissions I wanted, even if they are not needed. Be careful with what you've done. If you changed the umask on the ftpd as a whole, then suddenly unrelated users are going

Re: Best way to back up mysql database

2008-10-01 Thread John Almberg
So, I thought I would post my ruby script for doing this backup... It's a little verbose for some tastes, but I like to be able to see what's happening in a script, blow by blow. This script rotates the backups according to the day of the month, so you get roughly 30 days backup. It also

Best way to back up mysql database

2008-09-30 Thread John Almberg
First, I wanted to say how great this list is. I'm a newbie FreeBSD admin and, besides the Handbook and Absolute FreeBSD (which never seems to leave my desk), this list is the best resource I have. I just had a huge scare today... One of the websites on my server uses a large Mysql

Re: Best way to back up mysql database

2008-09-30 Thread John Almberg
On Tue, Sep 30, 2008 at 06:18:35PM -0400, John Almberg wrote: I just had a huge scare today... One of the websites on my server uses a large Mysql database. Somehow, one of the tables got corrupted today. Do you know if the table corruption was a result of 1) a MySQL bug

Re: Best way to back up mysql database

2008-09-30 Thread John Almberg
DATE=`date +%a` # echo $DATE # echo Backup Mysql database mysqldump -h localhost -u YOURSQLUSERID -pYOURPASSWORD YOURDATABASE /usr/somedirectory/somefile_$DATE.backup gzip -f /usr/somedirectory/somefile_$DATE.backup /usr/bin/at -f /usr/somedirectory/mysqlbackup.sh midnight Ah, a much

Re: mysql connection through ssl tunnel

2008-09-24 Thread John Almberg
On Sep 23, 2008, at 1:16 PM, Mel wrote: On Tuesday 23 September 2008 15:54:10 John Almberg wrote: I have two FreeBSD machines. One is a application server, the other a database server running mysql. These machines are in two different locations. I'd like to allow the application server

mysql connection through ssl tunnel

2008-09-23 Thread John Almberg
I have two FreeBSD machines. One is a application server, the other a database server running mysql. These machines are in two different locations. I'd like to allow the application server to access mysql through an SSH tunnel. Being a newbie admin, I've never set up an SSH tunnel. I've

Re: safest way to upgrade a production server

2008-09-10 Thread John Almberg
maybe 6.3 had the drivers for the motherboard? I had that - I purchased a nice shiny newmotherbaord in 2007 but could not use it before 7.0R came out as the chips were not supported by 6.x. I chose not to use a CURRENT or RC version of 7, but to just wait. Possibly... the motherboard is an

Re: safest way to upgrade a production server

2008-09-09 Thread John Almberg
Anyway, I guess what I should do is patch this to the latest 6.3 version? My strategy was to do a source-base upgrade to 6.3-RELEASE, and then use freebsd-update to apply critical patches. Freebsd-update only works on -RELEASE versions with generic kernels, but I find it much faster and easier

Re: safest way to upgrade a production server

2008-09-08 Thread John Almberg
uname -a FreeBSD ***servername*** 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #1: Mon Dec 3 09:46:53 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/ src/sys/INET_ON amd64 oooh, that is a bit old I think. I chose this server as an example, because it's the oldest one. I didn't install the OS on

Re: which gray is best for print?

2008-09-08 Thread John Almberg
On Sep 7, 2008, at 6:22 PM, Bernt Hansson wrote: Polytropon skrev: Anyway, the best reading contrast - black on white - No. The best contrast is light yellow background with black letters. I play around with terminal colors occasionally (a great time waster) but the main colors I care

safest way to upgrade a production server

2008-09-07 Thread John Almberg
I'm a newbie admin, responsible for a half-dozen of freebsd servers, most of them production servers. We switched from Linux to Freebsd at the beginning of this year, so all of these servers were newly installed in Dec or Jan. I know I *should* be upgrading them, but so far I haven't had

Re: which gray is best for print?

2008-09-06 Thread John Almberg
to freebsd-questions- [EMAIL PROTECTED] Websites for On-line Collectible Dealers Identry, LLC John Almberg (631) 546-5079 [EMAIL PROTECTED] www.identry.com

Re: Why the extra shells?

2008-09-01 Thread John Almberg
I have seen that when a script is running and it uses the bash shell. This is my main concern at the moment... I am wondering if I killed off an essential process when I killed off those shells... It doesn't seem like it, because everything seems to be working. I'd love to restart the

Why the extra shells?

2008-08-30 Thread John Almberg
I just noticed something odd... When I type ps, I get the following: [on:~] ps PID TT STAT TIME COMMAND 30350 p0 Ss 0:00.03 -bash (bash) 30761 p0 R+ 0:00.00 ps 99069 p1 Is+0:00.01 /usr/local/bin/bash 79966 p3 Is 0:00.01 /usr/local/bin/bash 27050 p4 Is+

Re: Why the extra shells?

2008-08-30 Thread John Almberg
I'm wondering why I have all these shells running? Could it be because I close my SSH terminal without exiting, thus leaving bash in some sort of suspended state? I have tried to leave a shell suspended every which I way I can think of, but can't make it happen, so the problem doesn't

rotatelogs is rotating too quickly...

2008-08-20 Thread John Almberg
I'm a newbie admin and I've just figure out something that will be obvious to most on this list... that apache log files can get big, fast. I did a df for another reason the other day and was surprised to see my /var partition at 85% full. Anyway, I did some googling and decided to use

Re: rotatelogs is rotating too quickly...

2008-08-20 Thread John Almberg
That does not look like 5 Meg but 5 Minutes. I don't think so... From the man pages: CustomLog |bin/rotatelogs /var/logs/logfile 5M common This configuration will rotate the logfile whenever it reaches a size of 5 megabytes. ErrorLog

Fwd: rotatelogs is rotating too quickly...

2008-08-20 Thread John Almberg
John Almberg wrote: I'm a newbie admin and I've just figure out something that will be obvious to most on this list... that apache log files can get big, fast. What apache version you are using? rotatelogs syntax differ a lot between them. Version - Apache/2.2.6 (FreeBSD) mod_ssl

Fwd: rotatelogs is rotating too quickly...

2008-08-20 Thread John Almberg
On Aug 20, 2008, at 10:09 AM, Riaan Kruger wrote: On Wed, Aug 20, 2008 at 4:03 PM, John Almberg [EMAIL PROTECTED] wrote: That does not look like 5 Meg but 5 Minutes. I don't think so... From the man pages: CustomLog |bin/rotatelogs /var/logs/logfile 5M common

Re: rotatelogs is rotating too quickly...

2008-08-20 Thread John Almberg
Unfortunately, it's more complex than that... check out this list: ls -lt nes* -rw-r--r-- 1 root wheel 35846 Aug 20 10:19 nes.com-access.log. 2008-08-20-12_40_09 -rw-r--r-- 1 root wheel 10117 Aug 20 10:01 nes.com-access.log. 2008-08-20-13_56_42 -rw-r--r-- 1 root wheel284 Aug 20

Re: logrotate question

2008-08-20 Thread John Almberg
On Aug 20, 2008, at 8:48 AM, Rudi Kramer - MWEB wrote: Zbigniew Szalbot Sent: Wednesday, August 20, 2008 2:14 PM To: User Questions Subject: logrotate question Dear all, I am trying to use logrotate from ports and I am getting the following error. Can anyone offer any insight? Hi

Re: Best SMTP Gateway Program and Reporting Tools

2008-08-19 Thread John Almberg
On Aug 12, 2008, at 4:22 PM, Josh Kidd wrote: I just wanted to pose this question to the list on people's opinions as to what the best SMTP Gateway program (ie. Sendmail, Postfix, etc) is and what the best log analysis tool for that SMTP program is. I use qmail. Its touted to be very

Re: Best SMTP Gateway Program and Reporting Tools

2008-08-19 Thread John Almberg
On Aug 19, 2008, at 8:44 AM, Robby Balona wrote: John Almberg wrote: On Aug 12, 2008, at 4:22 PM, Josh Kidd wrote: I just wanted to pose this question to the list on people's opinions as to what the best SMTP Gateway program (ie. Sendmail, Postfix, etc) is and what the best log analysis

Re: Mac RDP (Was: apple mac laptop)

2008-08-13 Thread John Almberg
On Aug 13, 2008, at 5:06 AM, Andrea Venturoli wrote: John Almberg ha scritto: I don't think it's far OT, either, since IMHO, Mac desktops and FreeBSD servers are the perfect, practical combination for many organizations, including my own. Since there seem to be a lot of expert here

Re: Monitoring raid health with mpt

2008-08-12 Thread John Almberg
On Aug 11, 2008, at 5:51 PM, Chris Hastie wrote: I have a Dell PowerEdge 860 with SAS 5iR RAID controller and FreeBSD 6.2. The controller is configured for RAID 1. The controller is recognised as mpt0 and seen as a SCSI device da0. All seems to be working fine, but is there any way to tell if

Re: [OT] Re: apple mac laptop.

2008-08-09 Thread John Almberg
I don't think it's far OT, either, since IMHO, Mac desktops and FreeBSD servers are the perfect, practical combination for many organizations, including my own. This might better be asked offlist, but there may be others like me who are clueless, and since you are familiar,

Re: [OT] Re: apple mac laptop.

2008-08-08 Thread John Almberg
(And yes, while one can run FreeBSD just fine on a Macbook, Sahil is right that the question is off-topic for these lists. :-) Well, considering that they asked us (and NetBSD) for clues when they were porting OSX, it didn't seem like my post was *that* far Off! maybe

Re: Controlling read access

2008-08-06 Thread John Almberg
Hello John, There are some things that you can try. What if you connect from localhost and transfer files, is it still very slow? Try to disable TLS/SSL and see if this improve performance. Increase debug level and check the log for any errors. Well, I am learning lots about FTP :-) I

Re: Controlling read access

2008-08-06 Thread John Almberg
| Now I have just one major league problem: when I logged in as one of the | users, to test the connections, I discovered that I had SUPER POWERS. I | was able to delete any file that I could see, including ones that were | owned by root. Digging uncovered the fact that pure-ftpd runs with

Re: Controlling read access

2008-08-06 Thread John Almberg
| Hi Greg, | | I tried your sequence, but it didn't seem to work. Or, perhaps it worked | and the PRIVSEP option doesn't do what I expect it to. Logging in as a | normal user gives that user root privileges. | | This seems pretty scary to me. Not so bad, since the user is locked into |

Re: Controlling read access

2008-08-05 Thread John Almberg
On Jul 31, 2008, at 5:40 PM, Catalin Miclaus wrote: Hello John, If you are providing only FTP services for those users, perhaps you want to go for an FTP server that handles virtual users. I'm using pure-ftpd and it works great. Google will help you find some nice howto's for same. Hi

Re: keyboard!!

2008-08-03 Thread John Almberg
I suppose this is mentioning the obvious, but in case anyone thinks IBM Model M keyboards are hard to find, just check eBay. You can get them in good condition for around $25. Good condition meaning it will last another 10 years (at least.) -- John

Controlling read access

2008-07-31 Thread John Almberg
I operate a server on which I am typically the only ssh user, but I do provide a small number of users ftp access. Each user has their own home directory. Currently all home directories have read permission set for 'other'. This means if I log in as one user, I can read and even download

Re: Controlling read access

2008-07-31 Thread John Almberg
What ftp server software are you using? For example, in proftpd, you simply add this line to /usr/local/etc/ proftpd.conf: DefaultRoot ~ and everyone is jailed into his own directory. It also seems the ftp daemon in the base system supports this through /etc/ftpchroot. If you are using

Fwd: how to simulate a user's crontab?

2008-07-20 Thread John Almberg
I use templates for most of the things I write, so I don't end up making the same stupid off-by-one mistakes for things like handling command-line arguments. My template for a production shell script is below. You raise a lot of interesting ideas Karl. I too am always looking

Re: how to simulate a user's crontab?

2008-07-17 Thread John Almberg
John, it is not a permissions issue, but rather a path issue. Do as the other poster suggested and run a cron job to dump the environment and you will see that the PATH inside a cron job is very rudimentary. Either add what you need to it in the crontab or cron job, or always use absolute paths

how to simulate a user's crontab?

2008-07-16 Thread John Almberg
I often run into permission problems with user crontabs. That is, a crontab run under a user's permissions. First of all, it seems to me that a user's crontab doesn't have exactly the same permission as the user himself. Is this true? If so, what permissions does a user's crontab have? Is

Re: how to simulate a user's crontab?

2008-07-16 Thread John Almberg
I'm guessing you're having problems with environment settings, although the vagaries of the question don't give me much to go on (something along the lines of, when I try to do x in cron, I get the error y; but it works fine when the user runs it outside of cron would be more informative.)

Re: how to simulate a user's crontab?

2008-07-16 Thread John Almberg
On Jul 16, 2008, at 10:03 PM, John Almberg wrote: I'm guessing you're having problems with environment settings, although the vagaries of the question don't give me much to go on (something along the lines of, when I try to do x in cron, I get the error y; but it works fine when the user

Re: Why would it make such a difference to move mysqld to anothermachine?

2008-07-07 Thread John Almberg
Yes, that could be the case if the database was transferred by doing mysqldump on the first machine and then loading the dump on the second. This is indeed what I did. Odd that you ask this question, because my very first guess about this issue was that the database was corrupted in some

Fwd: Why would it make such a difference to move mysqld to another machine?

2008-07-06 Thread John Almberg
On Jul 6, 2008, at 4:58 AM, Matthew Seaman wrote: John Almberg wrote: Luckily, I have a pretty powerful machine sitting right next to my main webserver that I mainly use for backup. The two servers are directly connected to each other with a twisted ethernet cable, using extra NIC cards

Re: Why would it make such a difference to move mysqld to another machine?

2008-07-06 Thread John Almberg
When I go back and look at the original top output for the single machine I note that it's out of RAM. It looks to me like apache and mysqld were contending over memory. Can you explain this idea in more detail, Chris? I thought this TOP display indicated that there was still 2G free.

Re: Why would it make such a difference to move mysqld to another machine?

2008-07-06 Thread John Almberg
Since MySQL is clearly the bottleneck of the sites, I'd investigate why in the world apache2 needs 150M per process. Now that was a darn good question. I ran httpd -M and got a list of 60 loaded modules... duh. I said before I'm just a beginner Admin. I'm learning a lot, but some of these

Why would it make such a difference to move mysqld to another machine?

2008-07-05 Thread John Almberg
I asked a question the other day about using top on a multi-processor machine. As a side note, I asked how mysqld could be consuming more than 100% of CPU power... last pid: 43730; load averages: 1.93, 2.64, 2.22 up 92+19:45:54 09:26:27 238

Does 'top' work on multi-processor systems?

2008-07-03 Thread John Almberg
I have a 3 month old server with two quad-core processors, 8G of RAM, and an array of fast hard drives. The two main applications are web server and mail server. There are only about 20 small-business websites and approx. 40 email accounts on the server. i.e., not much. In terms of actual

Split or switch ssh pseudoconsole

2008-06-27 Thread John Almberg
I log into my remote server using ssh. As I understand it, this gets me into a pseudo terminal. Is there any I can easily switch to another pseudo terminal, in the same way you can switch to another virtual terminal if you are logged into a local machine? Even better, is there a way to

Re: Split or switch ssh pseudoconsole

2008-06-27 Thread John Almberg
John Almberg wrote: I log into my remote server using ssh. As I understand it, this gets me into a pseudo terminal. Is there any I can easily switch to another pseudo terminal, in the same way you can switch to another virtual terminal if you are logged into a local machine? Even better

Re: Split or switch ssh pseudoconsole

2008-06-27 Thread John Almberg
On Jun 27, 2008, at 6:12 PM, John Almberg wrote: John Almberg wrote: I log into my remote server using ssh. As I understand it, this gets me into a pseudo terminal. Is there any I can easily switch to another pseudo terminal, in the same way you can switch to another virtual terminal

Re: New to FreeBSD

2008-06-21 Thread John Almberg
Interested in who uses FreeBSD and in what way FreeBSD is better than Linux for servers. Everyone else has tackled the book part of this question. I'll answer the second... I also switched from Linux to FreeBSD (Actually, the complete path was VAX Unix - MS-DOS - Windows - Linux -

Re: internet slowdown

2008-06-18 Thread John Almberg
1. there are 2 servers involved and they both get affected so as you say, bill It sure sounds like a network issue, from the description of the symptoms. if it were a 7 issue, then there is no reason for them to be affected simultaneously - but if it is a network issue, they would experience

Re: logo

2008-06-03 Thread John Almberg
On Jun 2, 2008, at 5:48 PM, Frank Shute wrote: On Mon, Jun 02, 2008 at 06:57:00PM +, Pollywog wrote: On Monday 02 June 2008 15:58:55 [EMAIL PROTECTED] wrote: I agree completely, it's what got me over to BSD ! I am a little confused. I just see a sphere with horns on it that reminds

Re: Cron question

2008-04-26 Thread John Almberg
On Apr 25, 2008, at 10:31 AM, John Almberg wrote: ...and invoking this wrapper from cron instead of trying to reset the shell and everything from within cron. You can test things by doing an su gs -c /bin/sh from a root login and then trying to run your wrapper, which will give

Re: Cron question

2008-04-25 Thread John Almberg
...and invoking this wrapper from cron instead of trying to reset the shell and everything from within cron. You can test things by doing an su gs -c /bin/sh from a root login and then trying to run your wrapper, which will give you a minimum environment closer to what cron executes

<    1   2   3   >