Re: /var/tmp in current

2014-11-19 Thread Craig Skinner
On 2014-11-18 Tue 12:58 PM |, Martin Schr??der wrote: See hier(7): A symbolic link to the system /tmp directory. To protect other users of /var from overfill conditions, this is no longer a space you can trust to retain storage over a reboot. Periodically cleaned by daily(8). My

Re: [source-changes] relayd.conf.5 (an hex - a hex)

2014-12-22 Thread Craig Skinner
On 2014-12-22 Mon 19:34 PM |, Christopher Vance wrote: Whether a or an is appropriate will depend on whether the h is pronounced. In England (i.e. where the English language comes from) h is often a silent letter. 76% of people born in England since 1982 still do not pronounce it:

Rotate compress accounting logs with newsyslog

2015-02-06 Thread Craig Skinner
Produces:- $ ls -lh /var/account total 8472 -rw-r--r-- 1 root wheel 2.7M Feb 6 19:20 acct -rw-r--r-- 1 root wheel 187K Feb 6 01:30 acct.bak.0.gz -rw-r--r-- 1 root wheel 206K Feb 5 01:30 acct.bak.1.gz -rw-r--r-- 1 root wheel 175K Feb 4 01:30 acct.bak.2.gz -rw-r--r-- 1 root

[DIFF] /etc/rc: gracefully shut down base daemons too

2015-02-17 Thread Craig Skinner
Produces (on 5.6 release) - with start up order reversed: root@box:~ 0# halt -p stopping package daemons: greyscanner postfix sshguard. stopping base daemons: cron spamlogd spamd sshd ntpd unbound nsd pflogd syslogd. syncing disks... done Index: rc

Re: ksh version lies

2015-02-17 Thread Craig Skinner
On 2015-02-16 Mon 09:22 AM |, Todd C. Miller wrote: There are scripts that use KSH_VERSION to determine whether they are being run under ksh or a Bourne shell. That seems like a reasonable thing to do. I don't really care what the version number is set to. Korn scripts here that drive dump

Jan's crontab.5 diff

2015-01-08 Thread Craig Skinner
http://marc.info/?l=openbsd-miscm=142031621606691w=2 - Forwarded message from Jan Stary h...@stare.cz - Date: Sat, 3 Jan 2015 21:15:58 +0100 From: Jan Stary h...@stare.cz To: m...@openbsd.org Subject: Re: Failed cron jobs are silent On Jan 03 19:05:11, open...@crowsons.com wrote: set

[Feature request] Failed cron/at/batch jobs mail exit code != 0

2015-01-08 Thread Craig Skinner
Could cron/at/batch be altered to mail the exit code of failed silent jobs? http://marc.info/?t=14203004412r=1w=2 - Forwarded message from Craig Skinner skin...@britvault.co.uk - Date: Sat, 3 Jan 2015 15:50:36 + From: Craig Skinner skin...@britvault.co.uk To: m...@openbsd.org

Re: Rotate compress accounting logs with newsyslog

2015-03-13 Thread Craig Skinner
Resend: On 2015-02-06 Fri 19:37 PM |, Craig Skinner wrote: Produces:- $ ls -lh /var/account total 8472 -rw-r--r-- 1 root wheel 2.7M Feb 6 19:20 acct -rw-r--r-- 1 root wheel 187K Feb 6 01:30 acct.bak.0.gz -rw-r--r-- 1 root wheel 206K Feb 5 01:30 acct.bak.1.gz -rw-r--r-- 1

Re: [DIFF] /etc/rc: gracefully shut down base daemons too

2015-02-20 Thread Craig Skinner
On 2015-02-17 Tue 14:24 PM |, Antoine Jacoutot wrote: On Tue, Feb 17, 2015 at 01:20:03PM +, Craig Skinner wrote: Produces (on 5.6 release) - with start up order reversed: root@box:~ 0# halt -p stopping package daemons: greyscanner postfix sshguard. stopping base daemons: cron

Re: [DIFF] /etc/rc: gracefully shut down base daemons too

2015-02-20 Thread Craig Skinner
On 2015-02-20 Fri 18:12 PM |, Ingo Schwarze wrote: Craig Skinner wrote on Fri, Feb 20, 2015 at 04:41:17PM +: Changed to skip pflogd, syslogd check /var/run/rc.d/ No, we don't want it, and we have given reasons Which problem are you trying to solve? OpenBSD runs great Ingo. I

Re: man, man.conf and /usr/ports/infrastructure/man

2015-04-20 Thread Craig Skinner
On 2015-04-18 Sat 16:21 PM |, Theo de Raadt wrote: If the ports infrastructure manual pages were simply part of a package that is neccessary for building ports, then the manuals could show up in /usr/local/man, removing the need for any configuration. Slick idea. -- Cat, n.:

Fwd: sudo not honouring $PATH, $MAIL umask

2015-04-24 Thread Craig Skinner
FYI: - Forwarded message from Craig Skinner skin...@britvault.co.uk - Date: Sat, 31 Jan 2015 11:02:39 + (GMT) From: Craig Skinner skin...@britvault.co.uk To: b...@openbsd.org Subject: sudo not honouring $PATH, $MAIL umask Synopsis: sudo not honouring $PATH, $MAIL umask

dump blast aways

2015-05-01 Thread Craig Skinner
Hi there, For cron driven nightly backups, recently I've added 'dump -w' parsing to my scripts. Noticing those mount points with fstab(5) fs_freq values of '1' are no longer dumped nightly, but every 2nd night, I found this: $ fgrep -n seconds /usr/src/sbin/dump/optr.c 393:date[16]

Re: /etc/daily /tmp purge mods; skip open files with fstat test

2015-05-15 Thread Craig Skinner
On 2015-05-14 Thu 11:24 AM |, Todd C. Miller wrote: On Thu, 14 May 2015 17:48:49 +0100, Stuart Henderson wrote: Even not allowing for TOCTOU problems I'd be wary of running fstat automatically. If it is only used to detect when a file is in use that we would otherwise delete it seems

/etc/daily /tmp purge mods; skip open files with fstat test

2015-05-14 Thread Craig Skinner
Hi tech, Here's a daily(8) email, showing purged unreferenced open files in /tmp: - Forwarded message from Charlie Root r...@britvault.co.uk - ... .. Checking filesystems: ** /dev/rwd0a (NO WRITE) ** Last Mounted on / ** Root file system 2474 files, 24716 used, 14539 free (275

getty[3246]: (null): Bad file descriptor

2015-04-13 Thread Craig Skinner
Hi, It seems getty(8) needs an argument (in /etc/ttys at least): Otherwise, loads of this in /var/log/authlog after rebooting: Apr 13 15:27:03 pine getty[31932]: (null): Bad file descriptor Apr 13 15:27:03 pine getty[12802]: (null): Bad file descriptor Apr 13 15:27:03 pine getty[17719]: (null):

[diff] rc.d/ntpd config test in new rc_pre()

2015-06-27 Thread Craig Skinner
Hello, Here's a diff for the ntpd rc script pre start, to check the config. Works (for me) with a non-default configuration file too. Test output below, with a deliberatly mangled alternate file. Index: ntpd === RCS file:

Re: unwritable PKG_CACHE directory

2015-07-07 Thread Craig Skinner
On 2015-07-06 Mon 23:08 PM |, Chris Bennett wrote: If you want to have a writable PKG_CACHE, why not do something simple like /home/dude/pkg_cache? $ printenv PKG_CACHE /var/cache/pkgs $ ls -lod /var/cache /var/cache/pkgs drwxr-xr-x 8 root wheel nodump 512 May 28 21:57 /var/cache/

[DIFF] System accounting records

2015-07-31 Thread Craig Skinner
Hello, The diffs below produce this output: daily(8) email segment (if verbose): System accounting records: COMMANDS TIME I/O CORE USER 6407 22.0270521 0 root 142 0.10 383 0 operator 440 1.070 0 sshd 1398 113.39 267245

Re: [DIFF] /var/tmp in /etc/{weekly,locate.rc}

2015-08-03 Thread Craig Skinner
ping: On 2015-07-25 Sat 16:12 PM |, Craig Skinner wrote: Change to /tmp as /var/tmp is usually a symlink to /tmp Also, /usr/tmp isn't in hier(7) Index: weekly === RCS file: /cvs/src/etc/weekly,v retrieving revision 1.26

Re: [DIFF] System accounting records

2015-08-03 Thread Craig Skinner
On 2015-07-31 Fri 09:06 AM |, Craig Skinner wrote: Hello, The diffs below produce this output: daily(8) email segment (if verbose): System accounting records: COMMANDS TIME I/O CORE USER 6407 22.0270521 0 root 142 0.10 383 0 operator

[DIFF] /var/tmp in /etc/{weekly,locate.rc}

2015-07-25 Thread Craig Skinner
Change to /tmp as /var/tmp is usually a symlink to /tmp Also, /usr/tmp isn't in hier(7) Index: weekly === RCS file: /cvs/src/etc/weekly,v retrieving revision 1.26 diff -u -p -r1.26 weekly --- weekly 18 Apr 2014 10:00:48 -

Re: give cron a sensible default max load_avg for batch jobs

2015-11-16 Thread Craig Skinner
On 2015-11-14 Sat 05:57 AM |, Todd C. Miller wrote: > The quesion no one seems to be asking here is "who actually runs > batch". Anyone? > I do, on small servers with an average uptime(1) load of ~0.2

Re: Drop register keyword from less(1)

2015-11-03 Thread Craig Skinner
On 2015-11-02 Mon 15:57 PM |, Ted Unangst wrote: > > I would say less has reached the point in its lifecycle where it can only get > bigger and worse, so there's some merit to putting it on a diet. > Ha! Less less(1).

Fwd: [DIFF] user & group delete named in upgrade57.html

2015-10-10 Thread Craig Skinner
Fwd from misc@: - Forwarded message from Craig Skinner <skin...@britvault.co.uk> - Date: Wed, 9 Sep 2015 10:10:08 +0100 From: Craig Skinner <skin...@britvault.co.uk> To: m...@openbsd.org Subject: Re: [DIFF] user & group delete named in upgrade57.html User-Agent: Mutt/1.

Re: [DIFF] System accounting records

2015-08-25 Thread Craig Skinner
D'oh! Wrong diff in last email, sorry. This one instead: On 2015-08-25 Tue 09:35 AM |, Craig Skinner wrote: ping: On 2015-08-03 Mon 11:38 AM |, Craig Skinner wrote: On 2015-07-31 Fri 09:06 AM |, Craig Skinner wrote: Hello, The diffs below produce this output: daily(8) email

Re: [DIFF] System accounting records

2015-08-25 Thread Craig Skinner
ping: On 2015-08-03 Mon 11:38 AM |, Craig Skinner wrote: On 2015-07-31 Fri 09:06 AM |, Craig Skinner wrote: Hello, The diffs below produce this output: daily(8) email segment (if verbose): System accounting records: COMMANDS TIME I/O CORE USER 6407 22.02

Re: Cache-Control for httpd

2015-09-17 Thread Craig Skinner
Hi Manuel, On 2015-09-15 Tue 14:49 PM |, Manuel Giraud wrote: > > Questions: > - Is there any interest? As a user I'm interested: http://marc.info/?l=openbsd-misc=140976806917292=2 http://marc.info/?l=openbsd-misc=143591750200748=2

spamd & spamlogd open sync port 8025 as root

2015-12-18 Thread Craig Skinner
Hi! FYI;- I've noticed spamd & spamlogd open their high ports as root. These pf rules work, changing to 'user _spamd' doesn't: pass in on $ext_if inet proto udp \ from $ext_if:network port > 1023 \ to $ext_if:0 port spamd-sync \ user root pass out on $ext_if inet proto

[calendar] Addition of a United Kingdom holiday file

2016-01-13 Thread Craig Skinner
Hello there, Following on from a bit of discussion on & off misc@, below is an attempt at a United Kingdom calendar file, with major items already in calendar.holiday ommitted. e.g. New Year's Day, although it is an offical bank/public holiday.

[calendar] Addition of a New Zealand holiday file

2016-01-18 Thread Craig Skinner
G'day, Similar to the recent British calendar file, here's a New Zealand file. I've nuked a few NZ items from calendar.holiday due to them being spelt wrongly, rigid dates, and are in the new file anyway. Like some holidays, there's a bit of historical controversy & emotion surrounding a

Re: [calendar] United States holiday migrations

2016-01-28 Thread Craig Skinner
Hi Jason, On 2016-01-28 Thu 00:34 AM |, Jason McIntyre wrote: > On Wed, Jan 27, 2016 at 11:06:41PM +0000, Craig Skinner wrote: > > > > NOOP;- relocate USA state/national holidays from calendar.holiday > > into existing sparse calendar.usholiday file. > > >

[calendar] United States holiday migrations

2016-01-27 Thread Craig Skinner
Hi folks, NOOP;- relocate USA state/national holidays from calendar.holiday into existing sparse calendar.usholiday file. As they're now in the USA holiday file, strip state names from holiday names where the state is named in the day itself. e.g: 'Oklahoma Day in Oklahoma' becomes 'Oklahoma

Re: [calendar] United States holiday migrations

2016-01-29 Thread Craig Skinner
Hiya, On 2016-01-28 Thu 22:09 PM |, Jason McIntyre wrote: > On Thu, Jan 28, 2016 at 09:02:17PM +0000, Craig Skinner wrote: > > > My thought was to provide a place for more regional U.S. holidays to be > > added, to their file, without impacting the international scene.

Re: [calendar] Addition of a New Zealand holiday file

2016-01-22 Thread Craig Skinner
Anniversary Day > > > > > - Forwarded message from Jason McIntyre <j...@kerhand.co.uk> - > > Date: Wed, 20 Jan 2016 19:12:57 + > From: Jason McIntyre <j...@kerhand.co.uk> > To: tech@openbsd.org > Subject: Re: [calendar] Addition of a New Zeala

Re: security(8) mailbox check question

2016-01-25 Thread Craig Skinner
Hi all, On 2016-01-23 Sat 22:31 PM |, Joerg Jung wrote: > On Sat, Jan 23, 2016 at 08:31:09PM +0100, Ingo Schwarze wrote: > > This was discussed several times before. e.g: http://openbsd-archive.7691.n7.nabble.com/security-8-check-maildir-as-well-as-mailbox-permissions-td239848.html -- Ray's

Re: security(8) mailbox check question

2016-01-25 Thread Craig Skinner
Hi Ted, On 2016-01-23 Sat 17:27 PM |, Ted Unangst wrote: > > I think the possibility to fill up /var makes it a poor choice. For mail servers, /var/mail/ can be a seperate mount point. /var/log/ is commonly a mount point on servers. As is /var/www/ /var/spool/{smtpd,postfix}

Re: spamd & spamlogd open sync port 8025 as root

2016-03-18 Thread Craig Skinner
Hi Ricardo/All, On 2015-12-18 Fri 20:20 PM |, Craig Skinner wrote: > Hi! > > FYI;- I've noticed spamd & spamlogd open their high ports as root. > > These pf rules work, changing to 'user _spamd' doesn't: > > pass in on $ext_if inet proto udp \ > from

Re: spamd - blacklists

2016-03-15 Thread Craig Skinner
Hi Stuart, On 2016-03-14 Mon 16:27 PM |, Stuart Henderson wrote: > > There aren't many who provide their whole dataset to anyone other > than paying customers - e.g. Spamhaus' rsync feeds are for > organisations with >5000 users and cost US$1700+/year. > I've found these free rsync feeds

Re: Remove handrolled function from spamd(8) for privdrop

2016-03-15 Thread Craig Skinner
Hi Ricardo, On 2016-03-14 Mon 16:15 PM |, Ricardo Mestre wrote: > > Comments? > http://marc.info/?l=openbsd-tech=145047019223179

Re: spamd - blacklists

2016-03-14 Thread Craig Skinner
Hi Hans, On 2016-03-14 Mon 11:49 AM |, hans wrote: > On Mar 13 18:56:00, mm...@mykolab.com wrote: > > hans wrote: > > > The link to "the place to search for blacklists" is dead. > > > > Might be better to replace it than to remove it. > > Sure. Any suggestions? > Some DNSRBLs are available as

Re: www.openbsd.org/cgi-bin/man.cgi

2016-03-23 Thread Craig Skinner
On 2016-03-22 Tue 22:49 PM |, Bob Beck wrote: > > A few years back, Ingo moved it to the new mandoc based man.cgi, and > now we've actually moved this to a dedicated place - "man.openbsd.org" > Superb. What's next? $ ssh gu...@man.openbsd.org Welcome guest user to OpenBSD's online manual

Re: cp -i might violate POSIX

2016-03-05 Thread Craig Skinner
On 2016-03-05 Sat 01:41 AM |, Timo Buhrmester wrote: > From src/bin/cp/cp.c: > > while ((ch = getopt(argc, argv, "HLNPRfailprv")) != -1) > > [...] > > case 'i': > > iflag = isatty(fileno(stdin)); > The -i in cp -i is ignored if standard input isn't

Re: machine slow with latest snapshot (bufcache related?) on sparc64

2016-04-30 Thread Craig Skinner
Try sp...@openbsd.org Markus. See: http://www.OpenBSD.Org/mail.html

Re: Is loss of read-only /usr permanent?

2016-05-16 Thread Craig Skinner
On 2016-05-14 Sat 12:25 PM |, RD Thrush wrote: > > Thanks, Craig. That is much better than what I proposed > Another solution occured to me Bob;- ro /usr rw /usr/lib (an additional mount point) If power was lost during boot, most of /usr would be unaffected. The mods I mailed earlier could

Re: Is loss of read-only /usr permanent?

2016-05-14 Thread Craig Skinner
Hi RD/all, On 2016-05-13 Fri 17:16 PM |, RD Thrush wrote: > > # cp -p /etc/fstab /etc/fstab.orig > # sed -e 's,/usr ffs rw,/usr ffs ro,' /etc/fstab > # shutdown -f now > Shutdown NOW! > shutdown: [pid 82541] Something like this in /etc/rc might help here: rebuildlibs() { mount -d /usr

xdm halt & reboot buttons

2016-06-28 Thread Craig Skinner
Hello, This diff presents 'Halt' and 'Reboot' buttons on the xdm screen. Other buttons could be added, such as 'Hibernate' & 'Suspend'. The message box remains after login but can be manually closed. Adapted from

Re: xdm halt & reboot buttons

2016-06-30 Thread Craig Skinner
Hiya, On 2016-06-29 Wed 14:46 PM |, Craig Skinner wrote: > On 2016-06-28 Tue 15:27 PM |, Craig Skinner wrote: > > This diff presents 'Halt' and 'Reboot' buttons on the xdm screen. > > > > Now it closes the message box + adds 'Hibernate' & 'Suspend' buttons. >

Re: mandoc.db(5) without SQLite

2016-07-01 Thread Craig Skinner
On 2016-07-01 Fri 05:28 AM |, Ingo Schwarze wrote: > > Any thoughts? Wow!

Re: xdm halt & reboot buttons

2016-07-01 Thread Craig Skinner
! xmessage resources' mid way down: http://cafim.sssup.it/~giulio/other/Customization_XDM.html > > Maybe just add a button or two to the xdm login panel instead? > Good idea. I'll try to alter that instead Suggestions welcome! Cheers, -- Craig Skinner | http://linkd.in/yGqkv7

Re: xdm halt & reboot buttons

2016-07-01 Thread Craig Skinner
t; using xdm). Yeah, I've a space at the front of the message, so pgrep -l was getting a bit weird. But running xmessage as _x11 changes the situation! Cheers, -- Craig Skinner | http://linkd.in/yGqkv7

Re: xdm halt & reboot buttons

2016-07-01 Thread Craig Skinner
l/, which means ports, and they were so complicated, writing PID files, watcher processes to kill the scripts, ugh... The page I adapted as a starting point was so simple & in base. I hear you about easy on/off, + Alexander with an external widget. -- Craig Skinner | http://linkd.in/yGqkv7

Re: xdm halt & reboot buttons

2016-07-02 Thread Craig Skinner
Hello all, On 2016-07-01 Fri 18:01 PM |, Sebastien Marie wrote: > > It is the fact that xmessage would be run as root that worry me a bit. > [snip] > > Now, as xmessage(1) would be only used to provide UI to user, it should > be possible to run it as _x11 (or other unpriviligied user). The

Re: xdm halt & reboot buttons

2016-07-02 Thread Craig Skinner
On 2016-07-01 Fri 15:38 PM |, Matthieu Herrb wrote: > > If you spend some time providing a set of nice resouces for xmessages > and keep it minimalistic, I think we can include your suggestion. I've > been waiting for other comments. > Thanks Matthieu. I wasted a while making an arse of

Re: xdm halt & reboot buttons

2016-07-04 Thread Craig Skinner
On 2016-07-02 Sat 11:21 AM |, Bob Beck wrote: > On Saturday, 2 July 2016, Craig Skinner <skin...@britvault.co.uk> wrote: > > > > xmessage is now run as '_x11', shutdown as 'operator', and the status > > items as 'nobody'. Only user _x11's xmessage windows are pkilled.

Re: xdm halt & reboot buttons

2016-06-29 Thread Craig Skinner
Hello, On 2016-06-28 Tue 15:27 PM |, Craig Skinner wrote: > This diff presents 'Halt' and 'Reboot' buttons on the xdm screen. > Now it closes the message box + adds 'Hibernate' & 'Suspend' buttons. > > Adapted from http://cafim.sssup.it/~giulio/other/Customization_XDM.html &

Re: xdm halt & reboot buttons

2016-07-01 Thread Craig Skinner
On 2016-07-01 Fri 14:22 PM |, Craig Skinner wrote: > On 2016-06-30 Thu 20:58 PM |, Alexander Hall wrote: > > > > Maybe just add a button or two to the xdm login panel instead? > > > > Good idea. I'll try to alter that instead Suggestions welcome! > Ugh,...

Append system start up messages to new /var/log/dmesg in /etc/rc

2016-10-19 Thread Craig Skinner
Hi, With dmesg's new -s flag, append each boot's full log to a new /var/log/dmesg semi-private log file. Inspired by Alexander Hall's recent post: http://marc.info/?l=openbsd-misc=147674181621645 This works for me (on 5.9) & rotates correctly: Index: rc

Re: Append system start up messages to new /var/log/dmesg in /etc/rc

2016-11-04 Thread Craig Skinner
Resend folks: On 2016-10-19 Wed 14:19 PM |, Craig Skinner wrote: > Hi, > > With dmesg's new -s flag, append each boot's full log to a new > /var/log/dmesg semi-private log file. > > Inspired by Alexander Hall's recent post: > http://marc.info/?l=openbsd-misc=1476741816

cksum not working with both -a and -C flags together

2017-03-28 Thread Craig Skinner
(RMD160) /bsd: OK etc... Is this enough to go on, or would you like it in a bug report? Regards, -- Craig Skinner | http://linkd.in/yGqkv7

Re: newsyslog timestamp

2017-03-15 Thread Craig Skinner
Hiya, On Wed, 15 Mar 2017 02:19:10 +1100 bytevolcano wrote: > Is it worth making newsyslog use the syslog API instead of directly > writing to the top of the file? From syslogd(8): CAVEATS syslogd does not create files, it only logs to existing ones. Cheers, -- Craig Skinner | http://li

gzip not exiting 2 when not compressible

2017-04-06 Thread Craig Skinner
xit code: $?"; break; }; > mv bsd.gz bsd > done 10877658 4903863 4901041 4902548 4904065 4905582 4907089 4908606 4910109 4911631 4913153 ^C The 3rd compression at 4902548 bytes is bigger, and so are the rest. On the 5.6 machine, gzip exits 2 when attempting the 3rd round. Bug? -- Craig Skinner | http://linkd.in/yGqkv7

Re: gzip not exiting 2 when not compressible

2017-04-07 Thread Craig Skinner
On Thu, 06 Apr 2017 15:57:15 -0600 Todd C. Miller wrote: > This was fixed after 6.0 came out. Thanks Todd.

openssl(1) not error exiting on full file system

2017-04-10 Thread Craig Skinner
r wheel 10.4M Apr 10 12:22 bsd.7450 -rw-r- 1 operator wheel 1.1M Apr 10 12:26 bsd.crypto Bug? -- Craig Skinner | http://linkd.in/yGqkv7

Re: openssl(1) not error exiting on full file system

2017-04-10 Thread Craig Skinner
On Mon, 10 Apr 2017 12:46:03 +0100 Craig Skinner wrote: > <operator@palm:~ 0>$ openssl enc -bf -salt \ > -pass file:/etc/myname -in /bsd \ > -out /altroot/tmp/bsd.crypto > > /altroot: write failed, file system is full > <operator@palm:~ 0>$ print $? >

Re: openssl(1) not error exiting on full file system

2017-04-11 Thread Craig Skinner
Hi again, On 2017-04-10 Mon 14:31 PM |, Craig Skinner wrote: > On Mon, 10 Apr 2017 12:46:03 +0100 Craig Skinner wrote: > > <operator@palm:~ 0>$ openssl enc -bf -salt \ > > -pass file:/etc/myname -in /bsd \ > > -out /altroot/tmp/bsd.crypto > > > &

Re: cksum not working with both -a and -C flags together

2017-04-18 Thread Craig Skinner
On 2017-03-28 Tue 11:56 AM |, Todd C. Miller wrote: > On Tue, 28 Mar 2017 09:33:53 -0600, "Todd C. Miller" wrote: > > > It seems to me that in -C mode it should really process all the > > checksums that match the specified file(s), but the documentation > > does not actually specify what the

Re: [patch] Add -z and -Z to apmd for automatic suspend/hibernate

2017-08-15 Thread Craig Skinner
Hi Jesper/all, On Sun, 13 Aug 2017 14:13:42 +0200 Jesper Wallin wrote: > > ... someone on IRC also suggested sensorsd or even ksh and a > cronjob. I personally find it a bit too ducttapey though, especially > for a feature one would expect on a laptop. For what its worth, below is an unpriv

Re: openssl(1) not error exiting on full file system

2017-08-11 Thread Craig Skinner
Ping: On Tue, 11 Apr 2017 11:28:38 +0100 Craig Skinner wrote: > Hi again, > > On 2017-04-10 Mon 14:31 PM |, Craig Skinner wrote: > > On Mon, 10 Apr 2017 12:46:03 +0100 Craig Skinner wrote: > > > <operator@palm:~ 0>$ openssl enc -bf -salt \ > > > -pass f

Re: [PATCH] etc/daily - handle purging accounting records a bit better

2017-07-10 Thread Craig Skinner
anything other than '0' in the 'CORE' column. Cheers, -- Craig Skinner | http://linkd.in/yGqkv7

Re: netstat(1) show only listening sockets

2017-07-03 Thread Craig Skinner
This shows listening UDP ports too: $ netstat -a -f inet | fgrep '*.*' Or limit to only 'Proto' & 'Local Address' fields: $ netstat -a -f inet | awk '/\*.\*/ { print $1"\t"$4 }' Cheers, -- Craig Skinner | http://linkd.in/yGqkv7

Re: cksum not working with both -a and -C flags together

2017-04-25 Thread Craig Skinner
On Tue, 28 Mar 2017 11:56:19 -0600 "Todd C. Miller" wrote: > On Tue, 28 Mar 2017 09:33:53 -0600, "Todd C. Miller" wrote: > > > It seems to me that in -C mode it should really process all the > > checksums that match the specified file(s), but the documentation > > does not actually specify what

Re: spamd: speed up blacklist lookups

2017-10-17 Thread Craig Skinner
On Tue, 17 Oct 2017 05:38:33 -0600 "Todd C. Miller" wrote: > an upcoming diff that performs more lookups. Superb. -- Craig Skinner | http://twitter.com/Craig_Skinner | http://linkd.in/yGqkv7

Re: ksh(1): kill the "version" function

2017-11-27 Thread Craig Skinner
On Sun, 26 Nov 2017 21:55:21 +0100 Jeremie Courreges-Anglas wrote: > Yup. Before someone proposes to remove or significantly change the > content of the version string: please think about shell scripts out > there that might use KSH_VERSION. Long thread from Feb 2015:

Re: [patch] crontab(5) add -n option to suppress mail when the run was successful

2018-06-12 Thread Craig Skinner
On Mon, 11 Jun 2018 20:23:11 + Job Snijders wrote: > > With the above example crontab(5) entry you'll only receive a mail > from cron(8) if the cp(1) encountered some kind of error. Good one Job. Related: https://marc.info/?l=openbsd-tech=142075623225995 Cheers, -- Crai

Re: uniq: add -i option

2017-12-21 Thread Craig Skinner
On Thu, 21 Dec 2017 11:06:02 +0100 Theo Buehler wrote: > I committed a minimally tweaked version of your diff... Thanks everybody.

Re: Should rm(1) -Pf change file permission?

2018-03-31 Thread Craig Skinner
Hi Grégoire/all, On Fri, 30 Mar 2018 18:07:42 +0200 Grégoire Jadi wrote: > ... here is a small test to demonstrate ... Same behaviour noticed and previously bugged:- http://openbsd-archive.7691.n7.nabble.com/rm-P-doesn-t-overwrite-a-user-owned-read-only-file-td266276.html Regards, -- Cr

Re: Add $daemon_nice to rc.subr

2018-09-04 Thread Craig Skinner
es-max=718:\ :tc=daemon: nsd:\ :priority=-5:\ :tc=daemon: etc. etc. etc. Cheers, -- Craig Skinner | http://linkd.in/yGqkv7

Re: Removing old video drivers

2019-04-23 Thread Craig Skinner
intagp0 at vga1 inteldrm0 at vga1 wsdisplay0 at vga1 mux 1: console (std, vt100 emulation) "Intel Pineview Video" rev 0x00 at pci0 dev 2 function 1 not configured uvideo0 at uhub0 port 8 configuration 1 interface 0 "Chicony Corp. Lenovo EasyCamera" rev 2.00/45.42 addr 3 video0

Re: Removing old video drivers

2019-04-23 Thread Craig Skinner
rrent DRM driver. ... OK. Cheers! -- Craig Skinner | http://linkd.in/yGqkv7

Re: sysupgrade: Allow to use another directory for the sets

2019-11-07 Thread Craig Skinner
w about /var/cache/sysupgrade/ as the default? i.e: sysupgrade caches files which are variable over time. Cheers, -- Craig Skinner | http://linkd.in/yGqkv7

Re: sysupgrade: Allow to use another directory for the sets

2019-11-22 Thread Craig Skinner
r /tmp/sysupgrade/ default directory suit most situations? /tmp/ is normally mounted separately from / /home/ /var/ And probably not encrypted, nor over NFS. Cheers, -- Craig Skinner | http://linkd.in/yGqkv7

Re: sysupgrade: Allow to use another directory for the sets

2019-11-19 Thread Craig Skinner
On Thu, 7 Nov 2019 14:42:32 + Stuart Henderson wrote: > On 2019/11/07 11:15, Craig Skinner wrote: > > On Wed, 6 Nov 2019 13:41:07 +0100 Renaud Allard wrote: > > > Given the amount of people which encrypt /home directory on their > > > servers, it might be useful t

Re: Make df output more human friendly in daily(8)

2020-10-03 Thread Craig Skinner
Hi Daniel/Ingo, On Fri, 2 Oct 2020 15:41:31 -0400 Daniel Jakots wrote: > +next_part "Backing up filesystems with dump:" > +dump w | grep -vB1 ^Dump That command doesn't dump disks. w shows the operator what to dump. Cheers, Craig.

Re: services(5): more cleanup

2021-05-17 Thread Craig Skinner
On Sun, 16 May 2021 01:11:51 + Aisha Tammy wrote: > I have a few machines which use something to the effect of `pass in on > egress proto tcp to port smtps ...`. > A quick question, does this mean that the port in pf.conf will also > have to be renamed? From experience doing the same Aisha, #