per-user ftp traffic accounting ... possible ?

2006-03-06 Thread Ensel Sharon
I am using the standard, stock FreeBSD ftpd, running out of inetd. Is there any way to keep track of how much ftp traffic is generated by each individual user ? I do not see it keeping track of anything except for ftp logins. I know I can keep track of all ftp traffic in general with ipfw,

how does a system come up if you disable background fsck ?

2006-03-13 Thread Ensel Sharon
I have disabled background fsck in my /etc/rc.conf with: background_fsck=no But I am curious - what does this mean for the system if the system crashes ? Does this mean that the system will wait for all non root partitions to fully fsck before coming up into multi-user mode ? OR Does it mean

Re: how does a system come up if you disable background fsck ?

2006-03-13 Thread Ensel Sharon
On Mon, 13 Mar 2006, [EMAIL PROTECTED] wrote: On 3/13/06, Ensel Sharon [EMAIL PROTECTED] wrote: I have disabled background fsck in my /etc/rc.conf with: background_fsck=no But I am curious - what does this mean for the system if the system crashes ? Does this mean

Re: how does a system come up if you disable background fsck ?

2006-03-13 Thread Ensel Sharon
On Mon, 13 Mar 2006, Micah wrote: Ensel Sharon wrote: I have disabled background fsck in my /etc/rc.conf with: background_fsck=no But I am curious - what does this mean for the system if the system crashes ? Does this mean that the system will wait for all non root

How do I obtain 6.1-BETA4 ? (not on ftp site)

2006-03-14 Thread Ensel Sharon
Hello, at this address: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/6.1/ I see I can download an ISO for 6.1 beta 1 and beta 3, but I have been told to load 6.1 beta _4_. Where can I get the ISO for this ? Thank. ___

help needed - GBDE mounts on top of FUSE sshfs (fails)

2006-03-27 Thread Ensel Sharon
Hi, I have posted this before on -questions and -hackers, and gotten no response. Basically, I have remote storage that I can access over ssh (from rsync.net, who I _love_) and I use sshfs in FreeBSD 6.0 ports tree to mount my filesystem locally. I followed this FreeBSD sshfs tutorial:

Re: help needed - GBDE mounts on top of FUSE sshfs (fails)

2006-03-28 Thread Ensel Sharon
On Tue, 28 Mar 2006, Christian Laursen wrote: Ensel Sharon [EMAIL PROTECTED] writes: Any comments ? I really want an offsite encrypted volume. I have the offsite from rsync.net, and the transport is encrypted via sshfs, but I am paranoid and do not want them (or anyone) to see

how can I lock a directory with chflags schg ?

2006-03-31 Thread Ensel Sharon
I have a directory with particular permissions on it, etc., that I want to make _absolutely sure_ never gets changed to different permissions. So I figured, easy, I'll just: chflags schg /dir but I notice that once you chflags schg a directory, you can no longer write to that directory. Is

restarting sendmail after patching - help needed.

2006-04-11 Thread Ensel Sharon
Hello, I am patching for the recent sendmail advisory: ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-06:13.sendmail.asc I have followed the patching instructions: b) Execute the following commands as root:

shell scripting question (mdconfig device choosing)

2006-01-24 Thread Ensel Sharon
Hello, When I mdconfig a device and _do not_ specify a particular numbered md device (with the -u flag), it just chooses an unused device number for me. Which makes me happy. Unfortunately, mdconfig chooses the next available device, from the highest device currently in use, regardless of

Re: shell scripting question (mdconfig device choosing)

2006-01-24 Thread Ensel Sharon
On Tue, 24 Jan 2006, Chuck Swiger wrote: Ensel Sharon wrote: and I know how to use awk to strip away the leading md from each piece of the output ... but I do not know how to take output like: 8 9 11 14 and decide that the lowest available number is 0. How can I do

Re: shell scripting question (mdconfig device choosing)

2006-01-24 Thread Ensel Sharon
Luke, On Tue, 24 Jan 2006, Luke Bakken wrote: Yeah, but I am looking for 0 ... 8,9,11,14 are all in use ... but 0-7 are not. I want to: starting with zero, find the lowest number that is NOT in this list (where this list is the output of mdconfig -l, which shows which md devices

Re: shell scripting question (mdconfig device choosing)

2006-01-25 Thread Ensel Sharon
On Wed, 25 Jan 2006, Luke Bakken wrote: Thank you very much - you got no output because you have no md devices in use. I have a few in use and this is the output I get: # mdconfig -l md3 md2 md1 md0 But I could just as easily get: # mdconfig -l md9 md8 md5 md3 Hmm...I

Re: shell scripting question (mdconfig device choosing)

2006-01-25 Thread Ensel Sharon
On Wed, 25 Jan 2006, Luke Bakken wrote: #!/bin/sh function find_first_mdevice { MDDEV='md0 md1 md2 md3 md4 md5 md6 md7 md8 md9' MDOUT=`mdconfig -l` for DEV in $MDDEV do if ! echo $MDOUT | grep -q $DEV then break fi done

what am I doing wrong with edquota ?

2006-01-29 Thread Ensel Sharon
(edquota man page has no examples) # edquota -u -e /mnt/fs1:810:900:81:90 test200 # # quota test200 Disk quotas for user test200 (uid 1002): none # # So I run the edquota command non-iunteractively, and it produces no errors, and it seems to follow the format specified in the

excluding a particular filename from rsyncing ... help

2006-01-29 Thread Ensel Sharon
Every night I rsync a directory tree from one system to another. Easy. However there is a particular set of files that could exist anywhere in that directory at any depth, and it is unknown how many there are at any given time. I want to make sure that rsync skips over those files regardless

mount_nullfs removes (temporarily) schg flag from dir ... why ?

2006-02-01 Thread Ensel Sharon
If you set schg on a directory, and then make that directory the mount point of a null_mount, the schg flag goes away. When you unmount it, it returns. Why is this ? Would I see this behavior from mounting anything on that directory, or just when mounting a null mount on it ? Thanks.

static linked python from the ports tree - possible ?

2006-08-01 Thread Ensel Sharon
For a variety of reasons (long, hard to explain) I need a static python binary - with no external libraries. I know how to do this from source. However, I would like to install from the ports tree - what line can I run inside of /usr/ports/lang/python to get a totally static, standalone python

static linked python from the ports tree - possible ?

2006-08-11 Thread Ensel Sharon
For a variety of reasons (long, hard to explain) I need a static python binary - with no external libraries. I know how to do this from source. However, I would like to install from the ports tree - what line can I run inside of /usr/ports/lang/python to get a totally static, standalone python

deleting with wildcards over ssh ... how ?

2006-08-30 Thread Ensel Sharon
I want to delete some remote files with a wildcard, running 'rm' over ssh. The obvious syntax doesn't work at all - it doesn't even make an ssh connection - I think it is interpreting the wildcard locally: # ssh [EMAIL PROTECTED] rm -rf /some/testdir/* ssh: No match. Then, these combinations

remote file moves, over SSH, with wildcards ... help needed.

2006-05-26 Thread Ensel Sharon
(FreeBSD 6.0-RELEASE) I cannot move a file, over ssh, with wildcards: # ssh [EMAIL PROTECTED] mv /dir/file*.wav /dir2 ssh: No match. Ok, so I quote it: # ssh [EMAIL PROTECTED] mv /dir/file*.wav /dir2 Password: mv: rename /dir/file*.wav to /dir2/*.wav: No such file or directory I even tried

Please help - adaptec 2820sa not allowing installation

2006-06-18 Thread Ensel Sharon
I did all my due diligence, I contacted freebsd-fs and _made sure_ that even though the 2820sa is not listed by name in the HCL, that I could take a 6.1-RELEASE cd and install freebsd on a 2820sa. I was _assured_ that these cards are supported in 6.1-RELEASE, that all is well, and I could

Re: Please help - adaptec 2820sa not allowing installation

2006-06-18 Thread Ensel Sharon
On Mon, 19 Jun 2006, Jahilliya wrote: Try hitting scroll lock and then page up to view the dmesg or go to the emergency console and run dmesg to see if it picked up any aac devices. You may need to load the module yourself, you should be able to do this from the emergency console (not sure

Re: Please help - adaptec 2820sa not ... RESOLVED

2006-06-18 Thread Ensel Sharon
On Mon, 19 Jun 2006, Jahilliya wrote: Ok, aac is in the dmesg. I can see both 2820sa cards in the dmesg, and I see no errors, etc. - there are just no drives listed in dmesg. My setup is 8 500 Gb drives in a single raid-6 array, size ~2.8TB. Any problems with that ? Perhaps

Re: Please help - adaptec 2820sa not ... RESOLVED

2006-06-18 Thread Ensel Sharon
On Sun, 18 Jun 2006, Eric Anderson wrote: 6.1 sysinstall does in fact see both 2820sa controllers, and when I put in a single 160GB sata drive, it does see that single drive and I can install onto it, etc. Sysinstall does _not_ see my 2.7TB raid6 array. I suspect that if it were

can iostat _really_ behave like top ?

2006-07-08 Thread Ensel Sharon
When I run `top`, I get a single screen (ncurses ?) that refreshes itself _in place_. However, when I run iostat in top mode: iostat -h -w 1 it does not refresh in place, rather it creates line after line, eventually scrolling off the screen, etc. Is there any way to use iostat like top, so I

Sanity-check for my (working) ipfw rules please...

2006-07-10 Thread Ensel Sharon
My individual hosts have a set of firewall rules on each of them that looks like this: /sbin/ipfw add 00010 allow ip from any to any via lo0 /sbin/ipfw add 00020 deny ip from any to 127.0.0.0/8 /sbin/ipfw add 00100 count ip from any to any via em0 in /sbin/ipfw add 00100 count ip from any to

long, large rsync slows down over time ?

2006-07-28 Thread Ensel Sharon
I am moving a large number of files (about 40 GB, comprising almost 3.5 million files) from one machine to another using rsync. I am noticing that the longer this rsync process runs, the slower it seems to go, and the more CPU time it is taking on the destination (FreeBSD 6.1). Is there a

file redirect is destroying the file ? Help!

2006-10-30 Thread Ensel Sharon
I have a script that, among other things, removes a line from /etc/ftpchroot. I do this with this method: cat /etc/ftpchroot | grep -v $remove /etc/ftpchroot Easy. You cat all of the file except the line you want to remove, and redirect it back to itself. The problem is, about 50% of the

can I unload a module from within sysinstall ?

2006-12-13 Thread Ensel Sharon
I need to load a new kernel module during sysinstall so that I can see my raid controller. Easy - I go into configure, load, and load it off the floppy. Easy. BUT, freebsd already has a xyz.ko, and it is already loaded, so it fails. So my question is, how do I unload the existing xyz.ko

is it possible to log in over ssh on a VERY SLOW link ?

2007-01-01 Thread Ensel Sharon
Long story short: I have set a dummynet rate limit on a remote system to be 10 bits/s. This is, of course, ridiculously slow, and when I ssh to the system ssh times out before it can negotiate a connection. The question I have is, is there any way I can set the ssh and/or tcp connection