Re: How to install Tomcat 7
Thanks to you all for your help! That hint below worked fine. Cheers, Andy On 21/02/2011 9:06 PM, Michael Powell wrote: Repair the damage you've done to /usr/ports/www/tomcat7. You can just rm -rf the entire directory and a ports tree refresh will fix it for you. Then change into /usr/ports/www/tomcat6 and do make deinstall. This removes Tomcat 6. Then cd to /usr/ports/www/tomcat7 and do make install clean. You do not need to be concerned with downloading the tarball, the port will fetch it for you. ___ 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: How to forward old root mails to an external email address?
On Sat, Feb 19, 2011 at 11:39:38PM +0100, Andy Wodfer wrote: On Sat, Feb 19, 2011 at 11:14 PM, RW rwmailli...@googlemail.com wrote: On Sat, 19 Feb 2011 22:39:59 +0100 Andy Wodfer wod...@gmail.com wrote: I already tried something similare, but I keep getting command not found for formail. I was hoping there was a way of doing this without installing additional software - just use what comes with a default FreeBSD installation. formail is installed as part of the procmail package. Check for typos and that PATH is set correctly. Cool. Procmail is now installed, but the procmail.rc file, should that be placed under root's home folder ie /root/procmail.rc or another user? I assume root since Daniel's command doesn't specify any users? If you're not planning to use procmail to deliver your mail, you don't need to worry about a procmailrc file. The reason to install procmail was to get formail, which does not use the procmailrc file. That would mean I'm logged in as root, run the command, formail sends all mails to procmail which sees the alias in procmail rc and sends the mails out? Correct? You could do it that way, but it requires more setup. This is easier: # formail -s sendmail y...@example.com /var/mail/root p -- Paul Chvostek p...@it.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
bash can not find most of my commands
Hi, I have changed my shell from csh to bash ... But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) my /root/.profile: PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin export PATH HOME=/root export HOME TERM=${TERM:-cons25} export TERM PAGER=more export PAGER Regards, Alokat ___ 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: bash can not find most of my commands
2011-02-22 17:40, Alokat skrev: Hi, I have changed my shell from csh to bash ... Why? Do you use root as your regular login? But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) my /root/.profile: PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin export PATH HOME=/root export HOME TERM=${TERM:-cons25} export TERM PAGER=more export PAGER Regards, Alokat ___ 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: bash can not find most of my commands
On 02/22/11 17:44, Rolf Nielsen wrote: 2011-02-22 17:40, Alokat skrev: Hi, I have changed my shell from csh to bash ... Why? Do you use root as your regular login? But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) my /root/.profile: PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin export PATH HOME=/root export HOME TERM=${TERM:-cons25} export TERM PAGER=more export PAGER Regards, Alokat ___ 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 It's just for example ... :) I have a non root login for regular stuff. ___ 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: bash can not find most of my commands
On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) don't change your root shell! csh is in the base system so is safe and will always* work, bash is a port and gets updated regularly, there's been at least one occasion when my bash upgrade failed and i couln't login as root. very frustrating.. I just get used to changing to bash after that, much safer! Paul. -- - Paul Macdonald IFDNRG Ltd Web and video hosting - t: 0131 5548070 m: 07534206249 e: p...@ifdnrg.com w: http://www.ifdnrg.com - IFDNRG 40 Maritime Street Edinburgh EH6 6SA - ___ 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: bash can not find most of my commands
2011-02-22 17:47, Alokat skrev: On 02/22/11 17:44, Rolf Nielsen wrote: 2011-02-22 17:40, Alokat skrev: Hi, I have changed my shell from csh to bash ... Why? Do you use root as your regular login? But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) my /root/.profile: PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin export PATH HOME=/root export HOME TERM=${TERM:-cons25} export TERM PAGER=more export PAGER Regards, Alokat ___ 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 It's just for example ... :) I have a non root login for regular stuff. To me the .profile looks ok, and I can't really say why it doesn't work. However, do not use a shell that's not in the base system for root. Some would point security issues, but I don't know much about those when it comes to bash, however, if you need to boot into single user, you may get into troubles with a shell not in base. ___ 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: bash can not find most of my commands
On 02/22/11 17:49, Paul Macdonald wrote: On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) don't change your root shell! csh is in the base system so is safe and will always* work, bash is a port and gets updated regularly, there's been at least one occasion when my bash upgrade failed and i couln't login as root. very frustrating.. I just get used to changing to bash after that, much safer! Paul. Paul has satisfied me. I have changed back to csh. Thank for help. Regards, alokat ___ 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: bash can not find most of my commands
Alokat wrote: On 02/22/11 17:49, Paul Macdonald wrote: On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) don't change your root shell! csh is in the base system so is safe and will always* work, bash is a port and gets updated regularly, there's been at least one occasion when my bash upgrade failed and i couln't login as root. very frustrating.. I just get used to changing to bash after that, much safer! Paul. Paul has satisfied me. I have changed back to csh. Thank for help. Regards, alokat And if you use bash after login or anytime, your original problem remains. ___ 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: bash can not find most of my commands
On Tue, Feb 22, 2011 at 12:08:30PM -0500, Randy Ramsdell thus spake: Alokat wrote: On 02/22/11 17:49, Paul Macdonald wrote: On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) don't change your root shell! csh is in the base system so is safe and will always* work, bash is a port and gets updated regularly, there's been at least one occasion when my bash upgrade failed and i couln't login as root. very frustrating.. I just get used to changing to bash after that, much safer! Paul. Paul has satisfied me. I have changed back to csh. Thank for help. Regards, alokat And if you use bash after login or anytime, your original problem remains. This has to do with your path, and it is known good practice to use full paths, as well. -jgh ___ 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: bash can not find most of my commands
On Tue, 22 Feb 2011, Alokat wrote: Paul has satisfied me. I have changed back to csh. If you want to run as root and use bash, well, that is what the user toor is for (examine master.passwd -- use vipw to edit master.passwd to enter a password for toor and the path to bash for toor, but set EDITOR first if you are not comfortable with vi). If you activate toor, you can log in as toor, use bash, and yet you are root (try whoami as toor). This preserves the root login for emergencies when /usr may not be mounted. -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 ___ 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: bash can not find most of my commands
On Tue, 22 Feb 2011, Paul Macdonald wrote: On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) don't change your root shell! csh is in the base system so is safe and will always* work, bash is a port and gets updated regularly, there's been at least one occasion when my bash upgrade failed and i couln't login as root. very frustrating.. I just get used to changing to bash after that, much safer! Consider running bash from .cshrc. Less breakable than changing root's shell, but still kind of automatic. ___ 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: bash can not find most of my commands
On Tue, Feb 22, 2011 at 05:58:22PM +0100, Alokat wrote: Paul has satisfied me. I have changed back to csh. Your system should have a toor account as well. It is just a second root account, whose essential purpose is to provide a root account that you can fiddle with to your heart's content without endangering the main root account. Note that the toor account can break things on the system just as much as the root account; if you break the toor account itself, though, you still have access to the main root account to get yourself out of trouble. Thus, if you *really* want a superuser account with bash as its default shell, you can always use toor for that purpose. I don't much see the point in setting a superuser account to use bash anyway -- or any other account, really -- but the option is there if you must have it. Just don't change the shell for the root account itself that way; it's bad for you, with lots of fatty calories, preservatives, artificial sweeteners, and other stuff your body should not be ingesting on a regular basis. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] pgpQg5oXnDcAV.pgp Description: PGP signature
Re: bash can not find most of my commands
On Tue, Feb 22, 2011 at 9:53 AM, Chad Perrin per...@apotheon.com wrote: Thus, if you *really* want a superuser account with bash as its default shell, you can always use toor for that purpose. I don't much see the point in setting a superuser account to use bash anyway -- or any other account, really -- but the option is there if you must have it. It turns out auto-completion with hinting and command history searching are pretty addictive if you're used to having them. :) Personally, I usually just use sudo, or run bash as my first command after gaining root powers. But it's very interesting to finally find out what toor is for. I'd always wondered. ___ 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: bash can not find most of my commands
On Tue, Feb 22, 2011 at 10:07:54AM -0800, David Brodbeck wrote: On Tue, Feb 22, 2011 at 9:53 AM, Chad Perrin per...@apotheon.com wrote: It turns out auto-completion with hinting and command history searching are pretty addictive if you're used to having them. :) I have auto-completion, and I know my environment well enough that hints aren't generally helpful. Personally, I usually just use sudo, or run bash as my first command after gaining root powers. But it's very interesting to finally find out what toor is for. I'd always wondered. Glad to be of some help. Just do us all a favor; don't write code in bash. Use Bourne shell (sh, not bash), or a real programming language (Perl, Ruby, Python, whatever). The bash option essentially tries to capture the power of such real languages, but does a very bad job of it -- and gives up the nigh-universal portability across Unix-like systems to do so. It's the worst of all worlds. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] pgpwBJdOKArNp.pgp Description: PGP signature
Re: bash can not find most of my commands
On Tue, Feb 22, 2011 at 12:39 PM, Chad Perrin per...@apotheon.com wrote: Just do us all a favor; don't write code in bash. Yeah, I try to avoid bash-specific syntax unless it's for one-off scripts. csh suffers the same kinds of problems; I only write csh code under extreme duress, like when forced to maintain the system-wide csh.login script. ;) ___ 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
can't make port BIND 9.7.3
7.2-RELEASE-p1-jc2 trying to make in /usr/ports/dns/bind97 distinfo shows bind-9.7.3.tar.gz make options: SSL IDN replace_base sigchase ipv6 threads links xml exiting the options, an immediate stop: make: don't know how to make /usr/ports/dns/bind97/work/.build_done.bind97._usr_local. Stop *** Error code 2 Stop in /usr/ports/dns/bind97. thanks Len ___ 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: bash can not find most of my commands
On Tue, Feb 22, 2011 at 01:10:20PM -0800, David Brodbeck wrote: Yeah, I try to avoid bash-specific syntax unless it's for one-off scripts. csh suffers the same kinds of problems; I only write csh code under extreme duress, like when forced to maintain the system-wide csh.login script. ;) I often use tcsh as an interactive shell, but I do not use it for shell scripts. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] pgpW4w3idg6aw.pgp Description: PGP signature
Re: bash can not find most of my commands
Quoth David Brodbeck on Tuesday, 22 February 2011: On Tue, Feb 22, 2011 at 12:39 PM, Chad Perrin per...@apotheon.com wrote: Just do us all a favor; don't write code in bash. What's with all the bash bashing? Sorry, couldn't resist. Yeah, I try to avoid bash-specific syntax unless it's for one-off scripts. csh suffers the same kinds of problems; I only write csh code under extreme duress, like when forced to maintain the system-wide csh.login script. ;) At least sh scripts will execute correctly under bash -- they don't always under csh/tcsh. I like zsh for a command-line shell, but when writing scripts for general usage I stick with the sh-compatibile subset of capabilities, and I enforce that on myself with the #!/bin/sh shebang. If I need more than what that can gracefully do, I usually run to the arms of Ruby. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpISYvMSTcjg.pgp Description: PGP signature
openldap problems authenticating
Hello list, I am running an openldap 2.4 server under FreeBSD that was working well until the config was tweaked by someone on the team without properly documenting their work # /usr/local/etc/ldap.con on ldap server (FreeBSD 8.1) host LBSD.summitnjhome.com base dc=summitnjhome,dc=com sudoers_base ou=sudoers,ou=Services,dc=summitnjhome,dc=com binddn cn=pam_ldap,ou=Services,dc=summitnjhome,dc=com bindpw {SSHA}secret scope sub pam_password exop nss_base_passwd ou=staff,dc=summitnjhome,dc=com nss_base_shadow ou=staff,dc=summitnjhome,dc=com # grep for ldap account shows ldap account on the ldap server itself succeeds [root@LBSD2:/usr/local/etc/openldap] #getent passwd | grep walbs walbs:secret/:1002:1003:Walkiria Soares:/home/walbs:/usr/local/bin/bash [root@LBSD2:/usr/local/etc/openldap] #grep walbs /etc/passwd [root@LBSD2:/usr/local/etc/openldap] # # /etc/ldap.conf on ldap client (centos 5.5) host LBSD2.summitnjhome.com base dc=summitnjhome,dc=com sudoers_base ou=sudoers,ou=Services,dc=summitnjhome,dc=com binddn cn=pam_ldap,ou=Services,dc=summitnjhome,dc=com bindpw {crypt}secret scope sub pam_password exop nss_base_passwd ou=staff,dc=summitnjhome,dc=com nss_base_shadow ou=staff,dc=summitnjhome,dc=com # grep getent passwd for ldap account on the client nothing turns up after a long pause [root@LCENT01:~] #getent passwd | grep walbs [root@LCENT01:~] # # nsswitch on the client passwd: files ldap shadow: files ldap group: files ldap sudoers:ldap #hosts: db files nisplus nis dns hosts: files dns # this is what's going on in the logs on the ldap server during th getent from the #client Feb 22 21:31:18 LBSD2 slapd[51158]: conn=3411 op=0 RESULT tag=97 err=49 text= Feb 22 21:31:18 LBSD2 slapd[51158]: conn=3411 op=1 UNBIND Feb 22 21:31:18 LBSD2 slapd[51158]: conn=3411 fd=22 closed Feb 22 21:31:26 LBSD2 slapd[51158]: conn=3412 fd=22 ACCEPT from IP=192.168.1.42:53811 (IP=192.168.1.44:389) Feb 22 21:31:26 LBSD2 slapd[51158]: conn=3412 op=0 BIND dn=cn=pam_ldap,ou=Services,dc=summitnjhome,dc=com method=128 Feb 22 21:31:26 LBSD2 slapd[51158]: conn=3412 op=0 RESULT tag=97 err=49 text= Feb 22 21:31:26 LBSD2 slapd[51158]: conn=3412 op=1 UNBIND Feb 22 21:31:26 LBSD2 slapd[51158]: conn=3412 fd=22 closed #ldap search from the client as the pam services account is able to locate the ldap user info [root@LCENT02:~] #ldapsearch -xH 'ldap://LBSD2.summitnjhome.com' -D 'cn=pam_ldap ,ou=Services,dc=summitnjhome,dc=com' -w 'secret' -b 'dc=summitnjhome,dc=com' '(uid=walbs)' # extended LDIF # # LDAPv3 # base dc=summitnjhome,dc=com with scope subtree # filter: (uid=walbs) # requesting: ALL # # walbs, People, summitnjhome.com dn: uid=walbs,ou=People,dc=summitnjhome,dc=com uid: walbs cn: Walkiria Soares givenName: Walkiria sn: Soares mail: wa...@example.com objectClass: inetLocalMailRecipient objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: posixAccount objectClass: top uidNumber: 1002 gidNumber: 1003 # search result search: 2 result: 0 Success # numResponses: 2 # numEntries: 1 #pam_ldap services account in the ldap directory 3 cn=pam_ldap,ou=Services,dc=summitnjhome,dc=com cn: pam_ldap objectClass: top objectClass: inetOrgPerson sn: PAM userPassword: {SSHA}secret I have also tried doing anonymous binds on the client as well as using plain text passwords. I get the same tag=97 err=49 messages on the client either way. Some advice is sorely needed here. Thank you very kindly in advance! -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B # # See slapd.conf(5) for details on configuration options. # This file should NOT be world readable. # include /usr/local/etc/openldap/schema/core.schema include /usr/local/etc/openldap/schema/cosine.schema include /usr/local/etc/openldap/schema/inetorgperson.schema # Define global ACLs to disable default read access. # Do not enable referrals until AFTER you have a working directory # service AND an understanding of referrals. #referral ldap://root.openldap.org pidfile /var/run/openldap/slapd.pid argsfile/var/run/openldap/slapd.args # Load dynamic backend modules: modulepath /usr/local/libexec/openldap moduleload back_bdb # moduleloadback_hdb # moduleloadback_ldap # Sample security restrictions # Require integrity protection (prevent hijacking) # Require 112-bit (3DES or better) encryption for updates # Require 63-bit encryption for simple bind # security ssf=1 update_ssf=112 simple_bind=64 # Sample access control policy: # Root DSE: allow anyone to read it # Subschema (sub)entry DSE: allow anyone to read it # Other DSEs: # Allow self write access # Allow authenticated users read access # Allow anonymous users to authenticate # Directives needed to implement policy: # access to dn.base= by * read # access to dn.base=cn=Subschema
Intel 3945ABG card
Anyone successfully using Intel 3945ABG card in adhoc mode in freebsd 8.1 ?? ___ 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: Installation problem on AMD64
On Mon, Feb 21, 2011 at 8:37 PM, Jim Trigg jtr...@spamcop.net wrote: I do an installation from DVD on AMD64, and when I reboot it hangs before displaying anything from the standard boot loader. How can I debug this? I found my problem by accident -- I had a badly formatted USB stick connected. (I had tried to write the memstick image to a 1G stick -- not quite large enough.) Thanks, Jim ___ 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