Re: Whooda thunkit?

2015-06-02 Thread Rod Whitworth
On Wed, 03 Jun 2015 10:31:26 +1000, Rod Whitworth wrote:
>I hope the contributations are generous..
>
 Oh dear! Fingers running without brain looking.

Rod/

In the beginning was The Word
and The Word was Content-type: text/plain
The Word of Rod.



Whooda thunkit?

2015-06-02 Thread Rod Whitworth
Microsoft To Support SSH In Windows and Contribute To OpenSSH

Seen on /. this morning (Australia EST)

I hope the contributations are generous..

R/

Rod/

>From the land "down under": Australia.
Do we look  from up over?



Re: Microsoft will support and contribute to OpenSSH (and they're excited! :)

2015-06-02 Thread Kirill Bychkov
On Tue, June 2, 2015 22:40, Артур Истомин wrote:
> http://blogs.msdn.com/b/looking_forward_microsoft__support_for_secure_shell_ssh1/archive/2015/06/02/managing-looking-forward-microsoft-support-for-secure-shell-ssh.aspx
>
> "I?m pleased to announce that the PowerShell team will support and contribute
> to the OpenSSH community - Very excited to work with the OpenSSH community to
> deliver the PowerShell and Windows SSH solution!"
>
> \o/
>
>
unix> ssh windoze.domain.loc
Администратор@windoze.domain.loc's password:
PowerShell>

Profit?



Microsoft will support and contribute to OpenSSH (and they're excited! :)

2015-06-02 Thread Артур Истомин
http://blogs.msdn.com/b/looking_forward_microsoft__support_for_secure_shell_ssh1/archive/2015/06/02/managing-looking-forward-microsoft-support-for-secure-shell-ssh.aspx

"I’m pleased to announce that the PowerShell team will support and contribute 
to the OpenSSH community - Very excited to work with the OpenSSH community to 
deliver the PowerShell and Windows SSH solution!"

\o/



Re: Intel i217-LM Ethernet not working in -current

2015-06-02 Thread Stuart Henderson
It doesn't work - it broke sometime after an upgrade when I was too short on 
time to provide a useful bug report so I switched to a pcie nic and forgot 
about it.

On 2 June 2015 16:55:20 BST, Christian Weisgerber  wrote:
>Sonic:
>
>> However as it was reported earlier in the thread by Paulo to be
>> working in 5.6 but not in 5.7 I reverted the following files back to
>> their 5.6 release states (keeping the rest of the kernel at
>-current):
>> [...]
>> Then rebuilt the kernel and the i217-LM now works.
>
>My i217-LM does not work with 5.6 either.  I tried a simple test
>setup this time, no VLAN, and it sends packets (ARP queries) but
>doesn't receive any incoming packets (ARP replies, ARP queries).
>
>That's the em0 interface in my Dell T20.  Stuart, does the em0 work
>in yours?

-- 
Sent from a phone, please excuse the formatting.



Re: Intel i217-LM Ethernet not working in -current

2015-06-02 Thread Christian Weisgerber
Sonic:

> However as it was reported earlier in the thread by Paulo to be
> working in 5.6 but not in 5.7 I reverted the following files back to
> their 5.6 release states (keeping the rest of the kernel at -current):
> [...]
> Then rebuilt the kernel and the i217-LM now works.

My i217-LM does not work with 5.6 either.  I tried a simple test
setup this time, no VLAN, and it sends packets (ARP queries) but
doesn't receive any incoming packets (ARP replies, ARP queries).

That's the em0 interface in my Dell T20.  Stuart, does the em0 work
in yours?

-- 
Christian "naddy" Weisgerber  na...@mips.inka.de



Re: help setting up ralink rt3290 compatible wifi drivers?

2015-06-02 Thread Alexey Suslikov
Joel Rees  gmail.com> writes:

> Care to point me in a general direction in the source tree? ports or
> src, for instance?

Well, I was hacking around src/sys/dev/pci/if_ral_pci.c and
friends.

At first, RT3290 needs different firmware (I do believe I used
Debian package to extract rt3290.bin).

And you need to port other stuff (I passed device detection/
attachment but stuck on firmware loading).



Re: help setting up ralink rt3290 compatible wifi drivers?

2015-06-02 Thread Joel Rees
On Tue, Jun 2, 2015 at 7:51 PM, Alexey Suslikov
 wrote:
> Joel Rees  gmail.com> writes:
>
>>
>> From my dmesg:
>>
>> "Ralink RT3290" rev 0x00 at pci2 dev 0 function 0 not configured
>> "Ralink Bluetooth" rev 0x00 at pci2 dev 0 function 1 not configured
>
> RT3290 isn't supported.
>
> But you can play with
>
> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?
> id=a89534edaaa7008992b878680490e9b02a665563
>
> (I have tried in the past with no success, but there is
> a laptop with RT3290 here so I can test diffs).
>
> Cheers,
> Alexey
>

Care to point me in a general direction in the source tree? ports or
src, for instance?

-- 
Joel Rees



Re: pms0: not in sync yet, discard input (state 0)

2015-06-02 Thread Joel Rees
On Tue, Jun 2, 2015 at 8:19 PM, Alexey Suslikov
 wrote:
> Joel Rees  gmail.com> writes:
>
>>
>> When I touch the trackpad while running xfce4, the console and the
>> dmesg fill up with
>>
>> pms0: not in sync yet, discard input (state n)
>
> It isn't strictly related to X11 and should now be fixed in -current.
>
> Check out recent snapshot.
>

erk. (As I break out in cold sweat. ;-)

I guess it's time for me to take that plunge. Saturday. (Running out
of time today, no free time until then.)

Thanks.

-- 
Joel Rees



Re: pms0: not in sync yet, discard input (state 0)

2015-06-02 Thread Alexey Suslikov
Joel Rees  gmail.com> writes:

> 
> When I touch the trackpad while running xfce4, the console and the
> dmesg fill up with
> 
> pms0: not in sync yet, discard input (state n)

It isn't strictly related to X11 and should now be fixed in -current.

Check out recent snapshot.



Re: help setting up ralink rt3290 compatible wifi drivers?

2015-06-02 Thread Alexey Suslikov
Joel Rees  gmail.com> writes:

> 
> From my dmesg:
> 
> "Ralink RT3290" rev 0x00 at pci2 dev 0 function 0 not configured
> "Ralink Bluetooth" rev 0x00 at pci2 dev 0 function 1 not configured

RT3290 isn't supported.

But you can play with

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?
id=a89534edaaa7008992b878680490e9b02a665563

(I have tried in the past with no success, but there is
a laptop with RT3290 here so I can test diffs).

Cheers,
Alexey



help setting up ralink rt3290 compatible wifi drivers?

2015-06-02 Thread Joel Rees
>From my dmesg:

"Ralink RT3290" rev 0x00 at pci2 dev 0 function 0 not configured
"Ralink Bluetooth" rev 0x00 at pci2 dev 0 function 1 not configured

(I have no interest in bluetooth, but, ...)

Full dmesg below

-- 
Joel Rees

OpenBSD 5.7-stable (GENERIC.MP) #0: Thu May 28 06:12:04 JST 2015
r...@phool.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1835790336 (1750MB)
avail mem = 1783062528 (1700MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xe4800 (43 entries)
bios0: vendor Insyde version "F.0A" date 07/16/2014
bios0: Hewlett-Packard HP Pavilion 10 Notebook PC
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI HPET APIC MCFG ASF! BOOT FPDT MSDM SSDT
SSDT SSDT SSDT SSDT
acpi0: wakeup devices GPP0(S5) GPP1(S4) OHC1(S3) OHC2(S3) OHC3(S3)
EHC1(S3) EHC2(S3) EHC3(S3) XHC0(S4) AWAD(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD A4-1200 APU with Radeon(TM) HD Graphics, 998.27 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 1MB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.0.0.0.0, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD A4-1200 APU with Radeon(TM) HD Graphics, 998.14 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 1MB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 21, 24 pins
ioapic1 at mainbus0: apid 5 pa 0xfec01000, version 21, 32 pins
ioapic1: misconfigured as apic 0, remapped to apid 5
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (GPP0)
acpiprt2 at acpi0: bus 5 (GPP1)
acpiprt3 at acpi0: bus -1 (GPP2)
acpiprt4 at acpi0: bus -1 (GPP3)
acpiprt5 at acpi0: bus -1 (GFX_)
acpiec0 at acpi0
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpipwrres0 at acpi0: FN00, resource for FAN0
acpitz0 at acpi0: critical temperature is 118 degC
acpibtn0 at acpi0: PWRB
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model "Primary" serial 43346 03/09/2014 type
LIon oem "Hewlett-Packard"
acpibtn1 at acpi0: LID_
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
cpu0: 998 MHz: speeds: 1000 900 800 700 600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 16h Host" rev 0x00
vga1 at pci0 dev 1 function 0 vendor "ATI", unknown product 0x9839 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 1 function 1 vendor "ATI", unknown product 0x9840
rev 0x00: msi
azalia0: no supported codecs
pchb1 at pci0 dev 2 function 0 vendor "AMD", unknown product 0x1538 rev 0x00
ppb0 at pci0 dev 2 function 2 "AMD AMD64 16h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
rtsx0 at pci1 dev 0 function 0 "Realtek RTL8402 Card Reader" rev 0x01: msi
sdmmc0 at rtsx0
re0 at pci1 dev 0 function 2 "Realtek 8101E" rev 0x06: RTL8402
(0x4400), msi, address 14:58:d0:06:96:26
rlphy0 at re0 phy 7: RTL8201E 10/100 PHY, rev. 2
ppb1 at pci0 dev 2 function 3 "AMD AMD64 16h PCIE" rev 0x00: msi
pci2 at ppb1 bus 5
"Ralink RT3290" rev 0x00 at pci2 dev 0 function 0 not configured
"Ralink Bluetooth" rev 0x00 at pci2 dev 0 function 1 not configured
xhci0 at pci0 dev 16 function 0 vendor "AMD", unknown product 0x7814
rev 0x01: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 "AMD xHCI root hub" rev 3.00/1.00 addr 1
ahci0 at pci0 dev 17 function 0 "AMD Hudson-2 SATA" rev 0x00: apic 0
int 19, AHCI 1.3
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0:  SCSI3
0/direct fixed naa.5395a340583a
sd0: 305245MB, 512 bytes/sector, 625142448 sectors
ohci0 at pci0 dev 18 function 0 "AMD Hudson-2 USB" rev 0x39: apic 0
int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "AMD Hudson-2 USB2" rev 0x39: apic 0 int 17
usb

pms0: not in sync yet, discard input (state 0)

2015-06-02 Thread Joel Rees
When I touch the trackpad while running xfce4, the console and the
dmesg fill up with

pms0: not in sync yet, discard input (state n)

where n is mostly 0 or 3. And the result, rather than mouse cursor
movement, I get pop-up menus and such in semi-random places.

I haven't been able to make sense of what I've found on the web about
this. (Saw something about a potential regression in 5.4 current, but
I have no idea whether it's relevant, not sure which source the thread
refers to, and then the thread trails off ...)

dmesg follows. Relevant line seems to be

pms0: Elantech Touchpad, version 3, firmware 0x354f00

Also, the output of synclient -l might be relevant?


$ synclient -l
Parameter settings:
LeftEdge= 89
RightEdge   = 2155
TopEdge = 35
BottomEdge  = 625
FingerLow   = 1
FingerHigh  = 1
MaxTapTime  = 180
MaxTapMove  = 102
MaxDoubleTapTime= 180
SingleTapTimeout= 180
ClickTime   = 100
EmulateMidButtonTime= 75
EmulateTwoFingerMinZ= 282
EmulateTwoFingerMinW= 7
VertScrollDelta = 46
HorizScrollDelta= 46
VertEdgeScroll  = 0
HorizEdgeScroll = 0
CornerCoasting  = 0
VertTwoFingerScroll = 1
HorizTwoFingerScroll= 0
MinSpeed= 1
MaxSpeed= 1.75
AccelFactor = 0.0855066
TouchpadOff = 0
LockedDrags = 0
LockedDragTimeout   = 5000
RTCornerButton  = 0
RBCornerButton  = 0
LTCornerButton  = 0
LBCornerButton  = 0
TapButton1  = 0
TapButton2  = 0
TapButton3  = 0
ClickFinger1= 1
ClickFinger2= 1
ClickFinger3= 1
CircularScrolling   = 0
CircScrollDelta = 0.1
CircScrollTrigger   = 0
CircularPad = 0
PalmDetect  = 0
PalmMinWidth= 10
PalmMinZ= 200
CoastingSpeed   = 20
CoastingFriction= 50
PressureMotionMinZ  = 30
PressureMotionMaxZ  = 160
PressureMotionMinFactor = 1
PressureMotionMaxFactor = 1
GrabEventDevice = 0
TapAndDragGesture   = 1
AreaLeftEdge= 0
AreaRightEdge   = 0
AreaTopEdge = 0
AreaBottomEdge  = 0
HorizHysteresis = 11
VertHysteresis  = 11
ClickPad= 0


But I have no idea what variables to monkey with. Well, I can
completely turn the touchpad off with

synclient TouchPadOff=1

;-)

Any suggestions appreciated.

-- 
Joel Rees

OpenBSD 5.7-stable (GENERIC.MP) #0: Thu May 28 06:12:04 JST 2015
r...@phool.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1835790336 (1750MB)
avail mem = 1783062528 (1700MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xe4800 (43 entries)
bios0: vendor Insyde version "F.0A" date 07/16/2014
bios0: Hewlett-Packard HP Pavilion 10 Notebook PC
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI HPET APIC MCFG ASF! BOOT FPDT MSDM SSDT
SSDT SSDT SSDT SSDT
acpi0: wakeup devices GPP0(S5) GPP1(S4) OHC1(S3) OHC2(S3) OHC3(S3)
EHC1(S3) EHC2(S3) EHC3(S3) XHC0(S4) AWAD(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD A4-1200 APU with Radeon(TM) HD Graphics, 998.27 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 1MB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.0.0.0.0, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD A4-1200 APU with Radeon(TM) HD Graphics, 998.14 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 1MB
64b/line 16-way L2 ca

Re: Thinkpad E550

2015-06-02 Thread Sébastien Morand
Hi,

Yes wifi works fine, scan and eveything, no trouble with it when I switch
to -current, it's really just the graphics card the point.


On Mon, Jun 1, 2015 at 3:51 PM, Stefan Sperling  wrote:

> On Mon, Jun 01, 2015 at 03:41:24PM +, Sébastien Morand wrote:
> > Hi,
> >
> > I got a Lenovo Thinkpad E550. I installed -current and everything looks
> > fine except a few things:
>
> > iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wirelsss AC 3160" rev
> 0x93,
>
> So 3160 intel cards work fine? Excellent!
> First time I've seen one reported.
> It seems we have typo in the pcidevs file ("Wireless" vs. "Wirelsss").
>
> Can't comment on your suspend/graphics problems, unfortunately.



Re: Install file sets from msdos fs

2015-06-02 Thread Raimo Niskanen
On Mon, Jun 01, 2015 at 07:23:07PM +0200, ludovic coues wrote:
> 2015-06-01 16:53 GMT+02:00 Raimo Niskanen :
> > Hello misc.
> >
> > Yesterday I upgraded a laptop (i386) from 5.6 snapshot to 5.7.  This laptop
> > has no CD reader so I copied 5.7/i386 directory to an msdos formatted USB
> > stick on a Windows 7 machine and adjusted all filenames manually according
> > to the TRANS.TBL files.
> >
> > I tested the USB stick before upgrading and found some oddities regarding
> > long vs short filenames, something like this:
> > $ ls
> > BSD BSD.RD ...
> >
> > $ ls BSD.RD
> > BSD.RD
> >
> > $ ls bsd.rd
> > BSD.RD
> >
> > So it seems the filenames are case insensitive and lists with capitals.
> >
> > The upgrade went fine, the sets were installed, but with these glitches:
> > * The file INSTALL.i386 was not found but that could be ignored
> > * The file SHA256.sig was not found but that could be ignored - skipping
> >   the verification.
> >
> > I had verified the SHA256.sig after download, so no harm done.
> >
> > Note that both files did exist and could be listed at least when mounting
> > msdos with the -l option and with the names the installer claimed could not
> > be found.  And the toplevel directory had filenames that should force the
> > usage of long filenames.  I am also pretty sure the filenames had lowercase
> > suffixes when viewed on the Windows 7 machine.
> >
> > I suspect the installer lists the files and compares filenames by itself
> > and therefore the filenames does not match.  If it would list by explicit
> > names I guess it would find the files.
> >
> > I tried to mount the msdos filesystem myself (with long filenames) and
> > use the installer option to install sets from a mounted filesystem,
> > but then it could not find any sets at all.  What worked was to install
> > from unmounted filesystem telling the installer which partition the sets
> > were on and then it found all file sets but not the two files above.
> >
> > It is great that it worked, but installing sets from a msdos filesystem can
> > be improved.  I think it is a useful way around having no CD reader.
> >
> > Best Regards
> > --
> >
> > / Raimo Niskanen, Erlang/OTP, Ericsson AB
> >
> 
> For my upgrade from 5.6 to 5.7 on a laptop without CD reader, I got
> bsd.rd and put it at /bsd.57.rd on the machine to upgrade.
> 
> Then on the prompt at early boot, I typed "boot bsd.57.rd" instead of
> waiting for the machine to boot. Just like instructed in the upgrade
> page of the FAQ.
> This work really well.

Well, yes, that was also how I booted the 5.7 bsd.rd kernel.

My post was about then from the bsd.rd kernel installing/upgrading
the file sets from an msdos filesystem, which only half-worked.

I found out that the bsd.rd kernel in 5.7 assembled my encrypted root
softraid disk automatically!  A great improvement - good work!

/ Raimo Niskanen


> 
> -- 
> 
> Cordialement, Coues Ludovic
> +336 148 743 42

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



Re: httpd.conf macros

2015-06-02 Thread Yegor Timoschenko
> However, if I replace
>   root "/roundcubemail"
> with:
>   root "$roundcube_dir"
> I get a 404.  Removing the quotes from around $roundcube_dir results in a 
> config that fails httpd -n with a syntax error.

httpd(8) config parser, just as any other parse.y based parser doesn't expand 
macros inside strings.
I've fixed the manual. Sorry for misinforming you.

It should work without quotes, though. Looks like a bug.



Re: Have sudo and login changed between 5.6 and 5.7?

2015-06-02 Thread Joel Rees
On Tue, Jun 2, 2015 at 10:15 AM, Joel Rees  wrote:
> Checked in openbsd 5.6.
>
> 2015/05/31 23:38 "Joel Rees" :
>>
>> I have a home directory buried one deep in a directory owned by a
>> non-login user:
>>
>> /home
>> /home/bubble
>> /home/bubble/userA
>>
>> where /home/bubble is owned by user/group bubble, with read and search
>> permissions set for owner and group. userA is a member of the bubble
>> group.
>>
>> Login says the home directory does not exist.
>>
>> When I make /home/bubble world readable, login finds the home directory.
>
> 5.6 has the same behavior here, even without special login classes.
>
>> Once logged in, when I try to
>>
>> sudo -H -u userB firefox
>>
>> it appears to try to start firefox, then give up. Nothing special in
>> the logs, that I have noticed.
>
> Similar in 5.6, but more noise from firefox, so that I can see it is trying
> to start. No error message in /var/log or on stdout to explain why it gives
> up.
>
>> userB is s a member of the userA group.
>
> So I have to correct this:
>
>> sudo-ing firefox worked in 5.6. I'm not sure about the login stuff
>
> None of this worked as I decribe it here in openbsd 5.6. I think I'm going
> to assume that the firefox engineers must have recently decided that hiding
> user directories was a suspicious, malware-like activity.  Or something.

sudo -H -u userB -s "cd; firefox"

seems to work. I Haven't tried all the variations, but it looks like I
just needed to get the working directory set to userB's home
directory. Which makes sense. Guess I was forgetting how sudo works.

>> dmesg below:
>>[...]

Sorry to use the list as a place to talk to myself.

-- 
Joel Rees