Re: System mail
On 8/31/2010 10:01 AM, Polytropon wrote: On Tue, 31 Aug 2010 07:52:45 -0700, Rem P Robertiremeg...@comcast.net wrote: In this case, configuring the system's mail delivery to a local account instead of directly to root, and then have Thunderbird incormporate mail from local spool will easily do the trick. # echo myusername /root/.forward Then all mail for root, like system logs, will be redirected to a different system user. man 5 forward ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Interactive Port
Rem P Roberti remeg...@comcast.net wrote: Brother! Muttprint is now working fine. The problem: the printer was offline! Now, before you go accusing me of being a complete dufus, let me say that I had no way of knowing that that condition existed. The printer itself indicated that it was online---no problem. What happened is that somehow, and I'm not sure what caused this, the printer became disengaged from its usb port. I'd call it a bug in the printer that it continues to indicate online when it has lost its connection to its host (unless it also has a network connection, and in that case I imagine you'd be using the network instead of USB). ... The only way that I could get it talking again to usb was by doing a reboot. Now _that_ sounds like a possible bug in the USB subsystem, since USB is supposed to be completely hot-pluggable and should not need a reboot to get itself straightened out after a mishap. Cc-ing usb@ list. One question which will surely arise is, which FreeBSD version are you using? The USB stack was completely rewritten in 8.0. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: installing FreeBSD in VMWare-player
El día Tuesday, August 31, 2010 a las 03:13:51PM +0200, Matthias Apitz escribió: Now I have already again my 'old' root partition booting to single user mode and I'm filling in the 120 GByte dump of the /usr ... The 1st try crashed the Win7 to blue screen over the night :-( The 2nd try was successfull. It took 9 hours to get the dump restored. The system now boots fine, even of course slower than native. I still strougle with some smaller issues: Xorg uses only 1280x720, while the full host display is NVidia support 1920x1200; I can't get sound to work; the sound device is attached to the VM, the kernel loads snd_emu10k1.ko and sound.ko, but no device shows up. Any ideas? matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/ Solidarity with the zionistic pirates of Israel? Not in my name! ¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
GnuPG not allowing passphrase entry
Ladies and Gentlemen, I an attempting to decrypt a file using the following command line. /usr/local/bin/gpg --output /usr/local/scripts/test. --no-default-keyring --secret-keyring 09-2010.sec --keyring 09-2010.pub --always-trust --decrypt --recipient wed_sep_1_00_01_00_cdt_2...@abc.org /usr/local/scripts/test.gpg When doing so, I receive the following output. You need a passphrase to unlock the secret key for user: Wed_Sep_1_00_01_00_CDT_2010 (Monthly Archive Encryption Key) wed_sep_1_00_01_00_cdt_2...@abc.org 1024-bit ELG key, ID E8E5F849, created 2010-09-01 (main key ID 557E7C04) gpg: cancelled by user gpg: encrypted with 1024-bit ELG key, ID E8E5F849, created 2010-09-01 Wed_Sep_1_00_01_00_CDT_2010 (Monthly Archive Encryption Key) wed_sep_1_00_01_00_cdt_2...@abc.org gpg: public key decryption failed: General error gpg: decryption failed: No secret key While the prompt to enter a passphrase does appear, it is skipped without allowing me to enter anything. gpg-agent is running. I am running FreeBSD 8.0. My GnuPG version is 2.0.14 I have also tried adding the public and secret keys to the default keyring and receive the same result. Thanks for your help. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RELENG_8_1 Release build fails
Hi all, I'm trying to make a release from RELENG_8_1 branch because of mbuf bug and so... and wanted to make my own freebsd cds (updated)... I have downloaded the whole freebsd cvs, later with cvs create the snapshot under /usr/src and later under /usr/src/release done a : make release CHROOTDIR=/datos001/81release CVSROOT=/datos001/ncvs RELEASETAG=RELENG_8_1 MAKE_ISOS=1 But it fails with : -- Installing everything -- cd /usr/src; make -f Makefile.inc1 install === share/info (install) install -o root -g wheel -m 444 dir-tmpl /datos001/81release/usr/share/info/dir install:No such file or directory *** Error code 1 Stop in /usr/src/share/info. *** Error code 1 Stop in /usr/src. *** Error code 1 After entering INSTALL=/usr/bin/install in /etc/make.conf... it continues but stops later because it doesn't build some object files for being copied to /datos001/81release/... in /usr/src/lib/csu/amd64/... after building them by hand, later again stops because libc is not compiled... Seems like there's a problem in some Makefiles... am I wrong?. Will be this corrected the next days in the cvs?. Thanks a lot really. Bye!. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Should a squid user have a shell?
Hi folks, I'm looking in some documentation for Squid, which I'm installing on a FBSD 8.1 server, and it says I need to create a squid user and a squid group because I'm building/installing from source. I see to create the squid user, I user the (of course) adduser command (there isn't a default squid user with the base install, is there?). 1.) When I use the adduser command, from a security perspective, should the squid user have a shell? What should it be? 2.) How do I create a squid group and add the squid user to it? 3.) Since the squid user needs full access to the squid directory and all of its files, what the easiest way to give the appropriate permissions? Thank you, Ed ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Should a squid user have a shell?
On Wed 2010-09-01 09:02:45 UTC-0700, Ed Flecko (edfle...@gmail.com) wrote: I'm looking in some documentation for Squid, which I'm installing on a FBSD 8.1 server, and it says I need to create a squid user and a squid group because I'm building/installing from source. All of this is done automatically if you build Squid from source using the Ports tree - probably www/squid, or www/squid31. Are you sure you want to do it manually? Regards Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Should a squid user have a shell?
Thank you Jerry. The only reason I'm not using the squid port is because I found a website ( http://teklimbu.wordpress.com/2007/10/03/enterprise-freebsd-squid-proxy-server/ ) that has detailed instructions on installing squid for an Enterprise environment claiming the performance is very good. Since I'm new to using squid and using squid on FreeBSD, I'm simply trying to duplicate his setup. It's quite possible that I could achieve the same performance results from using the port install of squid...but maybe I wouldn't. :-) Ed ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Mirror mounts not available on FreeBSD? (was: Re: NFSv4 shows all ZFS filesystems as being owned by root)
On Tue, Aug 31, 2010 at 12:20 PM, David Brodbeck g...@gull.us wrote: On Tue, Aug 31, 2010 at 11:52 AM, David Brodbeck g...@gull.us wrote: When a ZFS filesystem mountpoint is owned by someone other than root, this is not depicted properly on NFSv4 clients: After playing around a bit more, it appears the problem is that ZFS filesystems under an NFSv4 mountpoint are not auto-mounted by Linux clients of a FreeBSD server the way they are when they're clients of an OpenSolaris server; if I mount them manually, the ownership is correct. I think OpenSolaris calls this functionality mirror mounts. Is there a way to get mirror mounts to work on FreeBSD, or is it necessary to mount every sub-filesystem manually? The answer is I didn't RTFM carefully enough, and forgot to specify 'nfsd_flags=-e' and 'mountd_flags=-e' in my /etc/rc.conf. It's working now. Sorry for the unnecessary thread, but hopefully it'll help someone else searching for the same info in the future. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Should a squid user have a shell?
On Wed, Sep 1, 2010 at 9:02 AM, Ed Flecko edfle...@gmail.com wrote: Hi folks, I'm looking in some documentation for Squid, which I'm installing on a FBSD 8.1 server, and it says I need to create a squid user and a squid group because I'm building/installing from source. I see to create the squid user, I user the (of course) adduser command (there isn't a default squid user with the base install, is there?). 1.) When I use the adduser command, from a security perspective, should the squid user have a shell? What should it be? 2.) How do I create a squid group and add the squid user to it? 3.) Since the squid user needs full access to the squid directory and all of its files, what the easiest way to give the appropriate permissions? Service accounts shouldn't have a password (their password field should be starred out) and should have a shell of /usr/sbin/nologin (this program logs any attempt to run it and exits). The port using the following commands to set this up: pw groupadd squid -g 100 -q pw useradd -q -n squid -u 100 -g squid -c Squid caching-proxy psuedo user -d /var/squid -s /usr/sbin/nologin -h - This assumes data is in /var/squid. You can create this directory and use chmod/chown to give the user and group necessary permissions. The UID and GID (100 and 100 in this case) come from the lists in /usr/ports and are reserved for squid to avoid conflicts. -- Rob Farmer Thank you, Ed ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Should a squid user have a shell?
On Wed, Sep 1, 2010 at 12:38 PM, Rob Farmer rfar...@predatorlabs.net wrote: On Wed, Sep 1, 2010 at 9:02 AM, Ed Flecko edfle...@gmail.com wrote: Hi folks, I'm looking in some documentation for Squid, which I'm installing on a FBSD 8.1 server, and it says I need to create a squid user and a squid group because I'm building/installing from source. I see to create the squid user, I user the (of course) adduser command (there isn't a default squid user with the base install, is there?). 1.) When I use the adduser command, from a security perspective, should the squid user have a shell? What should it be? 2.) How do I create a squid group and add the squid user to it? 3.) Since the squid user needs full access to the squid directory and all of its files, what the easiest way to give the appropriate permissions? Service accounts shouldn't have a password (their password field should be starred out) and should have a shell of /usr/sbin/nologin (this program logs any attempt to run it and exits). The port using the following commands to set this up: pw groupadd squid -g 100 -q pw useradd -q -n squid -u 100 -g squid -c Squid caching-proxy psuedo user -d /var/squid -s /usr/sbin/nologin -h - Addendum: the -q flag suppresses output/errors - good for a script, but you probably want to remove it for interactive use. -- Rob Farmer This assumes data is in /var/squid. You can create this directory and use chmod/chown to give the user and group necessary permissions. The UID and GID (100 and 100 in this case) come from the lists in /usr/ports and are reserved for squid to avoid conflicts. -- Rob Farmer Thank you, Ed ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Should a squid user have a shell?
On Wed, Sep 1, 2010 at 11:38 AM, Ed Flecko edfle...@gmail.com wrote: Thank you Jerry. The only reason I'm not using the squid port is because I found a website ( http://teklimbu.wordpress.com/2007/10/03/enterprise-freebsd-squid-proxy-server/ ) that has detailed instructions on installing squid for an Enterprise environment claiming the performance is very good. Since I'm new to using squid and using squid on FreeBSD, I'm simply trying to duplicate his setup. It's quite possible that I could achieve the same performance results from using the port install of squid...but maybe I wouldn't. If you are looking for a high performance reverse proxy cache, look at varnish instead of squid. That being said, squid will work fine too. If you don't know what you need, it's probably better to always stick with ports rather than compiling yourself. A lot of bug fixes, FreeBSD specific patches, and testing goes into the ports tree -- that's why it's such a useful package management system. -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Should a squid user have a shell?
On Wed, 1 Sep 2010 09:38:03 -0700 Ed Flecko edfle...@gmail.com wrote: Thank you Jerry. The only reason I'm not using the squid port is because I found a website ( http://teklimbu.wordpress.com/2007/10/03/enterprise-freebsd-squid-proxy-server/ ) that has detailed instructions on installing squid for an Enterprise environment claiming the performance is very good. Since I'm new to using squid and using squid on FreeBSD, I'm simply trying to duplicate his setup. It's quite possible that I could achieve the same performance results from using the port install of squid...but maybe I wouldn't. You might as well build the port. There's nothing special in his configure settings - although the squid port provides a variable for this if you if you want to add extra configure settings not supported by the port options. The port will apply some patches to the code that may, or may not, be need. It will also provide an rc script and create the user/group. Either way you need to run squid -z to create the directories. IIRC this will create the directories with the correct ownership if the effective user/group is correct in squid.conf. That just leaves squid.conf which you have to setup anyway, since the port defaults to a small ufs cache. I'd suggest taking the default and stripping out the very lengthy comments, and them merging in any settings you want from his file - having looked-up what they actually do. Some of his setting are sensible, such as using diskd, some less so, such as the acl to deny query url caching, which more efficiently handled through refresh patterns in the default file. Also I'd suggest not using heap GDSF/LFUDA cache replacement until you have established you can't get a week's retention from the default lru policy. The suggestion of running a local dns cache shouldn't make much difference since squid does it own caching. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Should a squid user have a shell?
On Wed, 1 Sep 2010 16:14:38 -0700 Ed Flecko edfle...@gmail.com wrote: Thanks RW! How do I make the changes you've suggested, i.e., like changing from the small UFS cache, etc.; that can all be done by altering the squid.conf file? Yes, take a look at the cache_dir lines in in the squid.conf file in the howto link. You don't need two cache_dir entries, unless you have two separate disks (usuall non-raid). You do need to modify the size field (documented in squid.conf.default). Also, what do you mean about the variable to change some of the ./configure options that are not part of the default? Take a look at SQUID_CONFIGURE_ARGS in the squid port Makefile. BTW The last I heard, the 2.7 branch in www/squid is still faster than the later 3.x branches. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: killall -9 program-name does not work
On 8/30/10, RW rwmailli...@googlemail.com wrote: On Mon, 30 Aug 2010 03:14:58 + Antonio Olivares olivares14...@gmail.com wrote: Dear fellow FreeBSD users, I have a cron script that plays music in the morning when I arrive at work. in ~/.xalarm I have two lines, one that calls xterm and one that calls mplayer and plays a series of music files in a playlist crontab -l has the following # min hour day-of-month month day-of-week command # 0-59 0-23 1-31 1-12 0-6 0=sun 1=mon 00 07 * * 1-5 ~/.xalarm /dev/null 21 30 07 * * 1-5 killall -9 /usr/local/bin/mplayer /dev/null 21 You don't need the path to mplayer. It makes no difference. This does not stop mplayer from playing :( Thanks though for trying to help. Regards, Antonio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: getting eclipse to recognize that devel/subsclipse is installed
On Tue, Aug 31, 2010 at 1:11 PM, Andreas Maechler amaech...@gmx.ch wrote: I've always installed Subclipse directly through the Eclipse' plugin manager, which works very well. Andy On Tue, Aug 31, 2010 at 6:14 PM, Eitan Adler li...@eitanadler.com wrote: I installed eclipse and subclipse via ports. When I start eclipse I do not see svn as an option in the preferences menu nor or do any of subclipse's features. How can I tell eclipse that I installed subclipse? I'll try that next - but I'd still like to know what step I am missing if I use the ports version. -- Eitan Adler ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
error - ad2: FAILURE
Hi, I received the following error when I try to access files in some of the directories in /usr and when the computer boots. ad2s1f is mounted on /usr. ad2: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE LBA=37370159 g_vfs_done():ad2s1f[READ(offset=15415558144, length=16384)]error = 5 Is this a sign of hard drive failure? Can I fix the error or do I have to replace the hard drive? Regards, Xihong ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: error - ad2: FAILURE
On September 1, 2010 10:29:42 pm Xihong Yin wrote: Hi, I received the following error when I try to access files in some of the directories in /usr and when the computer boots. ad2s1f is mounted on /usr. ad2: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE LBA=37370159 g_vfs_done():ad2s1f[READ(offset=15415558144, length=16384)]error = 5 Is this a sign of hard drive failure? Can I fix the error or do I have to replace the hard drive? Regards, Xihong ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org I would think it is a hardware error, and the disk has run out of replacement sectors. If possible, it should be replaced, and any valuable data copied to somewhere safe, as soon as possible. -- http://www.jeays.ca http://www.rotarycpmm.ca ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org