Re: email alias?
hi, i have written a script from a book, it is a cgi, and there is a line that says ' to: YOUR_ADDRESS\ @YOUR_DOMAIN.com' i changed it to my email of jonathandadswell.com, but it doesnt send the feed back, the script works as Just a thought: Did you include the backslash before the @ as the example above does? Dave. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problem with chroot, uid's and quota
I have installed openssh-portable with the chroot option enabled. Users can login and execute the commands I supplied in their chroot'ed home directory. I included an /etc/fstab file for the quota enabled devices and hard linked the quota.user file to the base direcotry of the chroot. In addidtion I copied the entries for the root and chroot'ed user as well as the relevant groups to /etc/passwd and /etc/group in the chroot directory. So far so good. If I login as the chrooted user and type the command quota by itself I get the correct values returned: $ quota Disk quotas for user (no account) (uid 1003): Filesystem usage quota limit grace files quota limit grace / 8 512000 563200 4 0 0 However, when executing the quota command with the user name appended I get: $ quota myuser quota: myuser: unknown user Similar with ls: $ ls -al total 96 drwxr-xr-x8 0wheel 512 Dec 21 17:41 . drwxr-xr-x8 0wheel 512 Dec 21 17:41 .. dr-x--x--x2 0wheel 512 Dec 21 16:53 bin drwxr-xr-x2 0wheel 512 Dec 21 17:42 dev dr-xr-xr-x2 0wheel 512 Dec 21 16:54 etc drwxr-xr-x4 1003 mygroup 512 Dec 21 16:47 home dr-x--x--x2 0wheel 512 Dec 21 16:47 lib dr-x--x--x2 0wheel 512 Dec 21 16:47 libexec -rw-r-3 0operator 2097120 Dec 21 17:44 quota.user Somehow the gid's can get mapped to names but the uid's can't. Can anyone point out what I need to adjust or is required to get uid's working with names as well? Dave ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with chroot, uid's and quota
Somehow the gid's can get mapped to names but the uid's can't. Can anyone point out what I need to adjust or is required to get uid's working with names as well? In FreeBSD, group names are resolved through /etc/group. Usernames however resolve through a user database that is derived from /etc/master.passwd. The actual database files are /etc/pwd.db and /etc/spwd.db. Try to experiment which of these 3 files are actually required by the quota and ls commands to resolve the usernames. Thanks you Ruben. That explains why. The only file required is /etc/pw.db. Remember however that putting sensitive information like this inside the chroot is a security risk. master.passwd and spwd.db contain the (encrypted, but crackable) passwords of all users. Is there a way of creating such a file independently and containing only the chroot user's data? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with chroot, uid's and quota
Somehow the gid's can get mapped to names but the uid's can't. Can anyone point out what I need to adjust or is required to get uid's working with names as well? In FreeBSD, group names are resolved through /etc/group. Usernames however resolve through a user database that is derived from /etc/master.passwd. The actual database files are /etc/pwd.db and /etc/spwd.db. Try to experiment which of these 3 files are actually required by the quota and ls commands to resolve the usernames. Thanks you Ruben. That explains why. The only file required is /etc/pw.db. Remember however that putting sensitive information like this inside the chroot is a security risk. master.passwd and spwd.db contain the (encrypted, but crackable) passwords of all users. Is there a way of creating such a file independently and containing only the chroot user's data? Nevermind, I found out: pwd_mkdb ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Dell Servers
We are running 5.3-STABLE on two PE750 (SCSI, RAID1). No problems during installation or operation. Dave Is anyone running 5.3 Release on Dell Power Edge 2850 or any Dell Power Edge? I am looking to build a new mail server to replace our current mail server, a desktop running 4.9 We have a few Dell Power Edge servers all running windows, that the company is happy with so they want me to get a Dell. I want to get something with mirrored drives and dual power supplies so I don't have to worry about hardware failure. Jeff Maxwell [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mod_jk2 + tomcat + java question
Does anybody have experience with tomcat en mod_jk? Well, I got Apache2, mod_jk2 with Tomcat 4.1.29 running on FreeBSD 4.9. So I might not be fully up-to-date. First, this seems to bite: JkWorkersFile /usr/local/etc/apache2/workers.properties ^^^ [Wed Nov 24 10:09:50 2004] [error] config.update(): Can't find config file /usr/local/conf/workers2.properties I did not specify a JkWorkersFile in httpd.conf. Just put the workers.properties file into /usr/local/conf directory. Apache seems to try to read the file from the default location. [Wed Nov 24 10:09:50 2004] [error] shm.init(): No file This is a follow-up error since the shm file is declared in workers2.properties. HTH, Dave ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: quotas on 5.3
Hi Dave, you can run the command: # /sbin/quotacheck -avgu This will create your quota.user file. Because you have set check_quotas=NO you can run the quotacheck command via cron task: 0 4 * * * root /sbin/quotacheck -avgu /dev/null HTH, Dave. Hello, Got a question on quotas. I've enabled them on /usr and /var filesystems by adding the userquota option to their options in fstab. This is after i recompiled my kernel with the QUOTA option in it and rebooted. I then added: enable_quotas=YES check_quotas=NO to /etc/rc.conf and again rebooted. According to the handbook quota files should be created automatically i don't have to touch any zero-length quota files. When the system came back up i checked /usr and /var for quota user files, i did not see them. Boot up messages indicate quota on /usr but again no quota file. Is this normal? Did i miss something? Thanks. Dave. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Unable to create the partition. Too big?
Hi folks, I am trying to custom partition my 73GB SCSI hard drive using 5.3. When I first create the partions using the Auto Default option I get the following table: amrd0s1a /256MB UFS2 Y amrd0s1b swap2022MB SWAP amrd0s1d /tmp 256MB UFS2+S Y amrd0s1e /var 256MB UFS2+S Y amrd0s1g /usr 67085MB UFS2+S Y OK, so far so good but I want bigger /, /tmp and /var partitions. So I deleted them and recreated them to the following: amrd0s1b swap2022MB SWAP amrd0s1a /512MB UFS2 Y amrd0s1d /tmp 512MB UFS2+S Y amrd0s1e /var1024MB UFS2+S Y Now, I just cannot create the /usr partition. If fails with: Unable to create the partition. Too big? Although the top line tells me there is 65805MB left which is less than the auto created partition... Bug or am I missing here something? Thanks. Dave ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Unable to create the partition. Too big?
Yep, that did work. I did not delete the swap partition before. After deleting all of the partitions I was able to create the table as intended. However, I've installed FreeBSD in a similar way a couple of times before and never seen this happen. Does anyone know the reason for it? Dave. On Thu, Nov 18, 2004 at 10:28:26PM +0100, David E. Meier wrote: Hi folks, I am trying to custom partition my 73GB SCSI hard drive using 5.3. When I first create the partions using the Auto Default option I get the following table: amrd0s1a /256MB UFS2 Y amrd0s1b swap2022MB SWAP amrd0s1d /tmp 256MB UFS2+S Y amrd0s1e /var 256MB UFS2+S Y amrd0s1g /usr 67085MB UFS2+S Y OK, so far so good but I want bigger /, /tmp and /var partitions. So I deleted them and recreated them to the following: amrd0s1b swap2022MB SWAP amrd0s1a /512MB UFS2 Y amrd0s1d /tmp 512MB UFS2+S Y amrd0s1e /var1024MB UFS2+S Y Now, I just cannot create the /usr partition. If fails with: Unable to create the partition. Too big? Although the top line tells me there is 65805MB left which is less than the auto created partition... Bug or am I missing here something? Thanks. Dave This isn't an answer to your question, but I have witnessed this behvior in the past, probably as far back 4.8. The only way I was ever able to get around it was to manually partition the whole thing. Modifying the auto-created partitions never seemed to work, and I got the same errors as you. Fortunately, it's fairly easy to designate 5 or 6 partitions manually. I don't know, but I would suspect that this is some type of bug or limitation in the program. I hope somebody else has a better answer. Nathan -- PGP Public Key: pgp.mit.edu:11371/pks/lookup?op=getsearch=0xD8527E49 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: tomcat on freeBSD 4.9
Hi, I had successfully set up Apache 2.0, Tomcat 4.1.29 and mod_jk2 using JDK 1.3.1 on a FreeBSD 4.9 test server. HTH, Dave. Can any body pl. tell me what version of tomcat to install on freeBSD 4.9. also i've jdk 1.3 on my machine. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Trying to install 5.3-Beta
On Tue, Aug 31, 2004 at 07:10:00PM +0200, David E. Meier probably wrote: Hi folks, I thought I'd give 5.3-Beta a try on a P4 and Intel board. Installation (without X) goes smooth until I exit sysinstall for the first boot. The system stops and prompts with the following output. I tried twice to install it with different outcome: 1st try: [thread 13] Stopped at kse_create+0x430: addb %al,0(%eax) db 2nd try: [thread 100037] Stopped at w_data+0x180b: addb %al,0(%eax) db I have no clue, what this is all about. If more specific information about the hardware is needed to track down the problem I can append it, of course. What is before this output? There was nothing shown before. It happend right after I hit the exit button. addb %al,0(%eax) is 00 00 hex, could it be bad memory? Well, all the components in this PC are new and the RAM's are higher priced tested ones. Is there a memtest I could run? Dave. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Trying to install 5.3-Beta
Hi folks, I thought I'd give 5.3-Beta a try on a P4 and Intel board. Installation (without X) goes smooth until I exit sysinstall for the first boot. The system stops and prompts with the following output. I tried twice to install it with different outcome: 1st try: [thread 13] Stopped at kse_create+0x430: addb %al,0(%eax) db 2nd try: [thread 100037] Stopped at w_data+0x180b: addb %al,0(%eax) db I have no clue, what this is all about. If more specific information about the hardware is needed to track down the problem I can append it, of course. Dave ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Remote backup hosting setup?
Hi Eric, we are currently developing a small program/service for our customers exactly for this purpose. To just backup the data to a remote server is very easy, even on Windows: Use cygwin. It comes together with rsync and ssh. I recommend you use rsync since it is the most effective AFAIK and the transfer is safe (not unimportant to law companies). Then you could run a nightly task to backup the data. We also found that revision the data on the backup server could also be very helpful using rsnapshot. This tool is actually intended for backups between UNIX/Linux boxes, however, you can also run it locally. It creates full daily backups with the storage need of an incremental backup while using links to unchanged files. Cheers. Dave. Thanks for the reply, Tim. I didn't specify in the OP, but this is from Windows systems to my freebsd server. The retrieval method will be a copy on CD/DVD, at a premium, of course, in the even they have a faliure. Thanks again for all your help. Found on Conan O'Brian: Children's books written by celebrities; By Mel Gibson: Jesus Christ and the Terrible, Horrible, No Good, Very Bad Day. - Keep your powder dry and your pecker hard and the world WILL turn. - Eric F Crist ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Remote backup hosting setup?
So I've been thinking of having maybe 5 different copies at the destination and rsyncing to a different one each night so I have 5 different backups to go to -- just like in the days of tape. Something conceptually like: rsync -avR --delete / remote:/BACKUP/`expr $dayofyear % 5`/ Yeah, you need to store 5x copies of your client's data, but disk is cheap. Run rsnapshot at the remote destination on the backup directory. You get full daily versions at the cost of only another incremental backup. Check out http://www.rsnapshot.org/ We use this setup to backup our servers and it works perfect. Dave. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [OT] Re: What's the best possible email failover solution
The other advantages is it would scale like nobody's business. Since the data is in postgres, you could use multiple backends (replicated with Slony) and have the IMAP daemons contact different back ends if the load got heavy. With a little work, the system could failover silently as well. It would be very nice indeed. Like I said, we'll never know till someone tries it. It looks like Dovecot is going to try it eventually, but it seems like they have other priorities at this time. Someone already stores mails in a database: Oracle (Email Server and Collaboration Suite). I set up the Oracle Email Server 5.2 for a company I worked for earlier. And to express it nicely: It was a nightmare! Mails got stuck and rejected because the system was not capable of writing them into the database. Besides, the support for that system was also =0. We were probably the only ones daring to run the system ;-) I am glad I am running cyrus now. Extremly stable and fast. That system was not well thought through at all. I don't know how much work needs to be done for a database email store, but Oracle wasn't (isn't) able to do so. Dave ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Getting ProFTPD to listen on just one IP address
Hi Wayne, I haven't tried this myself but it looks like what you are looking for: http://proftpd.linux.co.uk/localsite/Userguide/linked/config_ref_Bind.html Dave. Hi all, Can anyone enlighten me as to how I get ProFTPD to just listen to one IP address ? I've just installed from ports, so I've got proftpd-1.2.10.r1 I've added the following to my config file : DefaultAddress193.xx.xx.xx I then start ProFTPD and get the following message: - setting default address to 193.xx.xx.xx However, netstat -an | grep 21 shows me this tcp4 0 0 *.21 *.* LISTEN So it's binding to both IP's on the machine. I've tested this and I can definitely FTP to both IP addresses - which is NOT what I want. The reason I'm trying to get this working is that I need 2 different config's on the same machine. Thanks in advance, -- Wayne Pascoe(gpg --keyserver www.co.uk.pgp.net --recv-keys 79A7C870) Wageslaves - Who do you want to make rich today? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ProFTPd installation / configuration help needed
Hi, it seems you have ProFTPd configured as an inetd service and in this setup it will be started by the inetd daemon upon connection. Try to connect and see what it puts out. You might also want to check the archive. There was a thread about a month ago regarding setting up ProFTPd. Dave I have installed ProFTPd from the ports collection on a FBSD 5.2.1 system. The only problem is, it doesn't start up. I know I have to set / change the ftp line in the /etc/inetd.conf i also have setup a user account on the system called ftp and the group ftp. Any help would be great Here is the entire inetd.conf file # Internet server configuration database # # Define *both* IPv4 and IPv6 entries for dual-stack support. # To disable a service, comment it out by prefixing the line with '#'. # To enable a service, remove the '#' at the beginning of the line. # ftp stream tcp nowait rootin.proftpd in.proftpd --- #ftpstream tcp6nowait root/usr/libexec/ftpd ftpd -l ssh stream tcp nowait root/usr/sbin/sshd sshd -i -4 #imap4 stream tcp nowait root/usr/local/libexec/imapd imapd # # example entry for the optional nntp server # #nntp stream tcp nowait news/usr/local/libexec/nntpd nntpd # # example entry for the optional uucpd server # #uucpd stream tcp nowait root/usr/local/libexec/uucpd uucpd # # Return error for all ident requests # #auth stream tcp nowait rootinternal #auth stream tcp6nowait rootinternal # # Provide internally a real ident service which provides ~/.fakeid support, # provides ~/.noident support, reports UNKNOWN as the operating system type # and times out after 30 seconds. # #auth stream tcp nowait rootinternalauth -r -f -n -o UNKNOWN -t 30 #auth stream tcp6nowait rootinternalauth -r -f -n -o UNKNOWN -t 30 # # Example entry for an external ident server # #auth stream tcp waitroot/usr/local/sbin/identd identd -w -t120 # # Example entry for the optional qmail MTA # NOTE: This is no longer the correct way to handle incoming SMTP #connections for qmail. Use tcpserver (http://cr.yp.to/ucspi-tcp.html) #instead. # #smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env /var/qmail/bin/qmail-smtpd # # Enable the following two entries to enable samba startup from inetd # (from the Samba documentation). Enable the third entry to enable the swat # samba configuration tool. # #netbios-ssn stream tcp nowait root/usr/local/sbin/smbd smbd #netbios-ns dgram udp waitroot/usr/local/sbin/nmbd nmbd #swat stream tcp nowait/400 root/usr/local/sbin/swat swat - ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]