INN port version 2.4.6 instead of 2.5.X
Hi, I can't find an explanation of why the port of INN (news/inn, http://www.isc.org/software/inn) is still on version 2.4.6 (EOL) instead of 2.5.X. Is there someone who can enlighten me ? And how can I find this kind of information on my own ? Thanks, Bastien SEMENE ___ 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: umask not applied
Le 22/12/2011 19:21, Brad Mettee a écrit : On 12/22/2011 12:58 PM, Bastien Semene wrote: Hi list, I'm trying to apply a umask of 002 to user user (username changed for this example) while logged-in through ftpd. I used login class class (class name changed for this example) I edited /etc/login.conf and set at the bottom (there's no other entry for this user): class::umask=0002: then rebuilt the db : #cap_mkdb /etc/login.conf I assigned the user to this class: #pw usermod user -L class #pw usershow user user:*:1003:80:class:0:0:bla bla:/home/user:/bin/sh (group 80 is why I need this umask) The user still creates folders with 755 permissions through ftpd. So I switched to this user and watched the umask, it is still 0022. I tried setting the umask on the fly : $umask 0002 It works. There's no user-defined umask in ~/.login or ~/.login_conf I took care of typos and there is no error. #uname -r 8.2-RELEASE-p3 As what I read in the man pages I checked all the possibilities in the login mechanism, so if anyone has an idea it's welcome :) Thanks ! I'm not a pro FreeBSD user, but wouldn't the FTPD program be more responsible for the user's login credentials since that's what they're using that's causing the wrong permissions to be applied? From what I remember, FTPD verifies the users login, but doesn't actually execute any login scripts associated with that user. I did not said it explicitly but when I did a switch user I actually meant a su command from the shell (I deactivated user's ssh login possibility). You made me find the point about my use of the su command, I forgot to make a full login using su - user instead of su user ... So, login class applies correctly. In the ftpd(8) manual the -u documentation specifies that login.conf is read : The default file creation mode mask is set to umask, which is expected to be an octal numeric value. Refer to umask(2) for details. This option may be overridden by login.conf(5). ___ 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
umask not applied
Hi list, I'm trying to apply a umask of 002 to user user (username changed for this example) while logged-in through ftpd. I used login class class (class name changed for this example) I edited /etc/login.conf and set at the bottom (there's no other entry for this user): class::umask=0002: then rebuilt the db : #cap_mkdb /etc/login.conf I assigned the user to this class: #pw usermod user -L class #pw usershow user user:*:1003:80:class:0:0:bla bla:/home/user:/bin/sh (group 80 is why I need this umask) The user still creates folders with 755 permissions through ftpd. So I switched to this user and watched the umask, it is still 0022. I tried setting the umask on the fly : $umask 0002 It works. There's no user-defined umask in ~/.login or ~/.login_conf I took care of typos and there is no error. #uname -r 8.2-RELEASE-p3 As what I read in the man pages I checked all the possibilities in the login mechanism, so if anyone has an idea it's welcome :) Thanks ! ___ 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
df command reports wrong value after fd have been released
Hi, I removed a file from /var using all my filesystem space, then restarted the process that handled its file descriptors. I then, for another reason, had to reboot the system. During the boot I had a warning saying that the filesystem is full. I did not checked the fs state with df before, thinking it was resolved. df now still shows me the fs is full, I stopped the process then checked the fd with lsof, they were removed. I changed the log file name then restarted the process. lsof shows me that the process no longer uses fd on this ghost file. I'm out of ideas to resolve the problem, as I'm out of knowledge to understand it. Any explanation/idea to resolve this issue is welcome. some informations : # uname -a FreeBSD vcs.cyanide-studio.com 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 # df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/ad4s1a 9.7G287M8.6G 3%/ devfs 1.0K 1.0K 0B 100% /dev /dev/ad4s1e 989M144K910M 0% /home /dev/ad4s1d 4.8G384K 4.5G 0% /tmp /dev/ad4s1g 108G 25G 74G26% /usr /dev/ad4s1f 19G 19G -1.5G109% /var tank 1.8T1.1T718G 61% /var/db/svn All fs are UFS, except tank that is a zfs fs. ___ 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: redirecting command output depending on exit status
Bastien Semene Administrateur Réseau Système Cyanide Studio - FRANCE Le 20/04/2011 15:01, Ruben de Groot a écrit : On Tue, Apr 19, 2011 at 04:00:52PM +0200, Bastien Semene typed: Hi list, I have a cron task set up using lockf. I'd like to redirect one exit status to /dev/null : it (lockf command) returns one of the exit codes defined in sysexits(3), as follows: EX_TEMPFAIL The specified lock file was already locked by another process. EX_CANTCREAT The lockf utility was unable to create the lock file, e.g., because of insufficient access privileges. EX_USAGE There was an error on the lockf command line. EX_OSERR A system call (e.g., fork(2)) failed unexpectedly. EX_SOFTWARE The command did not exit normally, but may have been sig- naled or stopped. I don't care about the EX_TEMPFAIL output as I consider it as a successful exit status, not an error. I there a trick to do that in a short way ? something like logfile=/var/log/lockf.log lockf lockfile command [ $? -eq 75 ] logfile=/dev/null ## EX_TEMPFAIL is defined to be 75 Ruben ___ 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 used this $? test in a script. My question was to know if it is possible to do this in 1 command line, but I found nothing anywhere to do this. Thank you for the answer ! ___ 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
redirecting command output depending on exit status
Hi list, I have a cron task set up using lockf. I'd like to redirect one exit status to /dev/null : it (lockf command) returns one of the exit codes defined in sysexits(3), as follows: EX_TEMPFAIL The specified lock file was already locked by another process. EX_CANTCREAT The lockf utility was unable to create the lock file, e.g., because of insufficient access privileges. EX_USAGE There was an error on the lockf command line. EX_OSERR A system call (e.g., fork(2)) failed unexpectedly. EX_SOFTWARE The command did not exit normally, but may have been sig- naled or stopped. I don't care about the EX_TEMPFAIL output as I consider it as a successful exit status, not an error. I there a trick to do that in a short way ? -- Bastien Semene Administrateur Réseau Système Cyanide Studio - FRANCE ___ 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
lockf command
Hi, I'm writing a (very simple) script to avoid concurrent processes to do the same task. Background: After a task is done by a service, it synchronizes it with other(s) server(s). I wish that if a synchronization is not done during one or more tasks are completed, not concurrent synchronization processes are launched. According to the flock manual It seems to be simple: If lockf successfully acquires the lock, it returns the exit status produced by command. Otherwise, it returns one of the exit codes defined in sysexits(3), as follows: So this script should work: #!/bin/sh flock -k /tmp/lockfile command arguments But as far as I tested it doesn't act like this : - Command #1 : flock -k /tmp/lockfile read input, the shell is waiting for an input. - Command #2 : flock -k /tmp/lockfile ls -hal /tmp Launching command #1, then #2. The command #2 is waiting. When command #1 is finished command #2 is executed. I wish that if command #2 can't acquire the lock, lockf exits (exit 0 would be nice). If I set -t 1, lockf is quite what I'm waiting for. But I like to do this in a clear way : if it can't acquire the lock it exits, no timeout wait. Am I misunderstanding something ? What should I change ? Thanks for your help -- Bastien Semene Administrateur Réseau Système Cyanide Studio - FRANCE ___ 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
Partial DNS tree
Hi everyone, This is not the preferred mailing list to ask this question, but I think people here can easily answer. I've seen in the past that DNS servers can resolve some FQDNs while forwarding (or caching) other resolutions of the same DN. But I can't remember the word qualifying this technology, and had hard time finding this on google. Can someone please point me to the correct direction ? The goal of this is to have some FQDN (i.e. : svn.domain.com) resolved on a local network, and others (i.e. www.domain.com) resolved on the Internet. I think this is the best solution for a subsidiary to have local resources while also can hit remote resources. And it should be easy to maintain. Thank you ! -- Bastien Semene Administrateur Réseau Système Cyanide Studio - FRANCE ___ 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-update]cannot open files/.gz: No such file or directory
Hi, I'm trying to upgrade a system from 8.0-RELEASE to 8.1-RELEASE, but I have the following (non critical) errors : /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory This line appears hundred of times. After that, freebsd-update claims that many files are non existent in the new version and ask to delete them : /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory Attempting to automatically merge changes in files... done. The following file will be removed, as it no longer exists in FreeBSD 8.1-RELEASE: /boot/device.hints Does this look reasonable (y/n)? n I have updated other systems without any difficulty (from the same 8.0 patch level to 8.1). I tried to delete /var/db/freebsd-update folder, but it changes nothing. Same error. I found older posts with people searching in the code which function did the error, but because everything was fine with the same context on other systems I think freebsd-update is mislead (it seems to miss the name of the file) at some point. Does anyone have some hints or direction to follow ? Thanks, -- Bastien Semene Administrateur Réseau Système Cyanide Studio - FRANCE ___ 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: [Freebsd-update]cannot open files/.gz: No such file or directory
Le 29/09/2010 17:08, Jason a écrit : On Wed, Sep 29, 2010 at 04:23:32PM +0200, Fernando Apesteguía thus spake: On Wed, Sep 29, 2010 at 3:37 PM, Bastien Semene bsem...@cyanide-studio.com wrote: Hi, I'm trying to upgrade a system from 8.0-RELEASE to 8.1-RELEASE, but I have the following (non critical) errors : /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory This line appears hundred of times. After that, freebsd-update claims that many files are non existent in the new version and ask to delete them : /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory Attempting to automatically merge changes in files... done. The following file will be removed, as it no longer exists in FreeBSD 8.1-RELEASE: /boot/device.hints Does this look reasonable (y/n)? n I have updated other systems without any difficulty (from the same 8.0 patch level to 8.1). I tried to delete /var/db/freebsd-update folder, but it changes nothing. Same error. I found older posts with people searching in the code which function did the error, but because everything was fine with the same context on other systems I think freebsd-update is mislead (it seems to miss the name of the file) at some point. Does anyone have some hints or direction to follow ? I reported this a while ago and try to get in touch with Colin Percival with no luck. I finally could afford a fresh install. Thanks, -- Bastien Semene Administrateur Réseau Système Cyanide Studio - FRANCE What is the exact command line you are running that gets this error? I'm exactly using : freebsd-update -r 8.1-RELEASE upgrade I'm sticking the manual, but using a custom kernel. At this stage this should change nothing. # uname -a [r...@backup] FreeBSD backup.cyanide-studio.com 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #3: Mon Dec 7 14:44:37 CET 2009 r...@backup.cyanide-studio.com:/usr/obj/usr/src/sys/GEOMKERNEL amd64 I installed the 8.0-RELEASE from CDs, as you can see I updated to patchlevel 1 without trouble. The only difference from other systems may be these geom drivers. Here is the complete command output, I said yes to the first question to show you how bad the question is : Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 8.0-RELEASE from update4.FreeBSD.org... done. Fetching metadata index... done. Inspecting system... done. WARNING: This system is running a geomkernel kernel, which is not a kernel configuration distributed as part of FreeBSD 8.0-RELEASE. This kernel will not be updated: you MUST update the kernel manually before running /usr/sbin/freebsd-update install. The following components of FreeBSD seem to be installed: kernel/generic src/base src/bin src/cddl src/contrib src/crypto src/etc src/games src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue src/sbin src/secure src/share src/sys src/tools src/ubin src/usbin world/base world/catpages world/dict world/doc world/info world/lib32 world/manpages world/proflibs The following components of FreeBSD do not seem to be installed: world/games Fetching metadata signature for 8.1-RELEASE from update4.FreeBSD.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 1 metadata files... done. Inspecting system... done. Fetching files from 8.0-RELEASE for merging... done. Preparing to download files... done. Attempting to automatically merge changes in files... done. /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or director [...CUT...] The following file will be removed, as it no longer exists in FreeBSD 8.1-RELEASE: /boot/device.hints Does this look reasonable (y/n)? y The following file will be removed, as it no longer exists in FreeBSD 8.1-RELEASE: /etc/amd.map Does this look reasonable (y/n)? n -- Bastien Semene
Add a SSL certificate authority
Hello, I'm trying to add a certificate authority unsuccessfully. The Equifax certificates authority seems not to be registered in FreeBSD, so I tried to add it on my server. I'm logged in root and in its homedir. #uname -a FreeBSD svn.cyanide-studio.com 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Fri Aug 6 09:37:33 CEST 2010 r...@dungeon2.cyanide-studio.com:/usr/obj/usr/src/sys/GEOM i386 #fetch -o Equifax_Secure_Global_eBusiness_CA-1.pem http://www.geotrust.com/resources/root_certificates/certificates/Equifax_Secure_Global_eBusiness_CA-1.cer #cd /usr/src/crypto/openssl/tools #chmod u+x c_rehash #./c_rehash ~/ Doing /root/ Equifax_Secure_Global_eBusiness_CA-1.pem = 74c26bd0.0 My goal being to checkout an SVN repository, I re-launch the command : # svn co https://svn.cyanide-studio.com/admin admin-svn [r...@backup] Error validating server certificate for 'https://svn.cyanide-studio.com:443': - The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually! Certificate information: - Hostname: *.cyanide-studio.com - Valid: from Sun, 22 Aug 2010 13:04:24 GMT until Thu, 25 Aug 2011 22:05:01 GMT - Issuer: Equifax Secure Certificate Authority, Equifax, US - Fingerprint: ed:6d:1f:6c:d4:93:e9:68:44:1c:b2:68:a1:bb:50:b5:af:0e:16:12 (R)eject, accept (t)emporarily or accept (p)ermanently? R svn: OPTIONS of 'https://svn.cyanide-studio.com/admin': Server certificate verification failed: issuer is not trusted (https://svn.cyanide-studio.com) I've also seen this in the source code of c_rehash : while(exists $hashlist{$hash.r$suffix}) { # Hash matches: if fingerprint matches its a duplicate cert if($hashlist{$hash.r$suffix} eq $fprint) { print STDERR WARNING: Skipping duplicate CRL $fname\n; return; } $suffix++; } But if I launch the command twice, it still seems to indicate that it's adding the CA. I'm not sure if I do it correctly, but found nothing more relevant on google and in the freebsd's handbook. Can someone point me a good way to add a CA ? Best Regards, Bastien Semene ___ 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
Number of columns when redirecting ps command stdout to a file
Hi list, I wish to log the 'ps' command output in a file through a cron job. If I execute the command on the console, the result lines are truncated depending on the number of columns of the client console, what is fine. But when the command is executed by cron and redirected to a file, there's a maximum of 80 char columns. Where is set this limitation ? How can I remove it ? Thanks for your help, and sorry if it is a newbie question but I really can't figure out what is limiting the output. -- Bastien Semene ___ 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: Number of columns when redirecting ps command stdout to a file
Thanks, I didn't think it is a program limitation, probably because of old terminals limitations. Le 07/05/2010 12:16, Peter a écrit : Hi list, I wish to log the 'ps' command output in a file through a cron job. If I execute the command on the console, the result lines are truncated depending on the number of columns of the client console, what is fine. But when the command is executed by cron and redirected to a file, there's a maximum of 80 char columns. Where is set this limitation ? How can I remove it ? Thanks for your help, and sorry if it is a newbie question but I really can't figure out what is limiting the output. -- Bastien Semene 'w' or 'ww' options to ps; ps auxww - Displays the full command, wraps if the console is too short. ___ 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 -- Bastien Semene Administrateur Réseau Système Cyanide Studio - FRANCE ___ 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