Re: wifi hotspot workaround

2024-04-02 Thread ofthecentury
Frolicking through the net80211 jungle of the code, it looks like the authenticated wifi client info is stored by the kernel and not exposed to the userspace. But I'm still not 100% sure which source file does it and what variable holds that. I see net80211 code that deals with the association

Re: Bash instead of ksh

2024-04-02 Thread Sean Kamath
> On Apr 2, 2024, at 20:26, Brian Conway wrote: > > On Tue, Apr 2, 2024, at 10:08 PM, Nick Holland wrote: >> What is it that you see bash doing so much better than stock pdksh? > > Multiline command editing. > > (I don't use bash, but it would be a nice feature.) I dunno. It’s a mixed bag.

Re: Bash instead of ksh

2024-04-02 Thread Brian Conway
On Tue, Apr 2, 2024, at 10:08 PM, Nick Holland wrote: > What is it that you see bash doing so much better than stock pdksh? Multiline command editing. (I don't use bash, but it would be a nice feature.) Brian

Re: Bash instead of ksh

2024-04-02 Thread Nick Holland
On 4/2/24 15:34, Steve Litt wrote: ... Does "general shell" mean the interactive shell you use? If so, I think that's an excellent idea for non-root accounts. Ok, I'll bite... Why do you think that's an "excellent idea" -- something you would encourage people to do? What is it that you see

Re: Bash instead of ksh

2024-04-02 Thread Jeremy Mates
On 2024-04-02 15:34:56 -0400, Steve Litt wrote: > If you mean a shell with which to run shellscripts, I wouldn't do that. > Inside bash is a big old messy attack surface. There was a bash exploit > several years ago (was it heartbleed?) that caused me to change all > shellscript shebangs to

Re: Bash instead of ksh

2024-04-02 Thread Steve Litt
Karel Lucas said on Mon, 1 Apr 2024 18:24:06 +0200 >Hi all, > >Instead of ksh I want to use bash as a general shell. But how can I >set it up that way? Bash is already installed. > Does "general shell" mean the interactive shell you use? If so, I think that's an excellent idea for non-root

Re: wifi hotspot workaround

2024-04-02 Thread Peter J. Philipp
On Tue, Apr 02, 2024 at 11:20:52PM +0500, ofthecentury wrote: > I'll take a look at those locations, thanks. It might just be arp > that's the authenticated client data store from the point of view of > the wireless interface. If you really want to debug what's going on I suggest you put another

Re: need help to access my machine after upgrade -- system immediately logs me out

2024-04-02 Thread Otto Moerbeek
On Wed, Apr 03, 2024 at 12:45:33AM +0530, Sandeep Gupta wrote: > Thank you for all the inputs. This is so useful. I am able to at least > access the file system and rescue the data. > However, I'm not able to restore the system yet. The command "pkg_add -u" > runs into "out of memory error". >

Re: need help to access my machine after upgrade -- system immediately logs me out

2024-04-02 Thread Sandeep Gupta
For disclousre, I was able to access the shell/file system via Boot into single-user mode ("boot -s" at the boot loader prompt) -- followed by fsck -p mount -a -t bonds as mentioned in earlier replies. Thank you. On Wed, Apr 3, 2024 at 12:45 AM Sandeep Gupta wrote: > Thank you for all the

Re: need help to access my machine after upgrade -- system immediately logs me out

2024-04-02 Thread Sandeep Gupta
Thank you for all the inputs. This is so useful. I am able to at least access the file system and rescue the data. However, I'm not able to restore the system yet. The command "pkg_add -u" runs into "out of memory error". ulimit -a shows decent memory: memory(kbytes) 11872836. On Tue, Apr 2,

Re: wifi hotspot workaround

2024-04-02 Thread ofthecentury
I'll take a look at those locations, thanks. It might just be arp that's the authenticated client data store from the point of view of the wireless interface. I do know German, I'll see if I can get the book, or if I even need it after I poke around. My OpenWrt router got fried by a remote

Re: wifi hotspot workaround

2024-04-02 Thread Peter J. Philipp
On Tue, Apr 02, 2024 at 10:31:59PM +0500, ofthecentury wrote: > Where does OpenBSD keep a list of all wireless clients that have > been authenticated? Not the dhcpd leases list. Actual wireless stations > that have authenticated to an interface running in hostap mode. Not arp > cache, is it? > >

Re: wifi hotspot workaround

2024-04-02 Thread ofthecentury
Where does OpenBSD keep a list of all wireless clients that have been authenticated? Not the dhcpd leases list. Actual wireless stations that have authenticated to an interface running in hostap mode. Not arp cache, is it? This way I can cycle the wireless interface in hostap mode, which resolves

Re: Bash instead of ksh

2024-04-02 Thread Страхиња Радић
On 24/04/03 12:25AM, jslee wrote: > Thirdly, I recommend avoiding using /bin/sh in the #! line if you intend > things to be portable because: > > * on Linux it might be bash or dash or busybox, depending on distribution > * on macOS it might be bash or zsh or dash, depending on the state of a

Debian 12 Under VMM

2024-04-02 Thread Robert B. Carleton
I thought I'd share a small success with installing Debian 12 under VMM, in case some might find it useful. The boot parameters are "install gfxpayload=text console=ttyS0,115200n8". I added these boot parameters from the Debian installer after selecting the Help menu using "H", then selecting

Re: need help to access my machine after upgrade -- system immediately logs me out

2024-04-02 Thread Dan
Stuart Henderson : > > Running out of space (especially in /usr) during sysupgrade might > do it too. When in single mode I reccomend to check also the root for /dev content, 90% of times I run out of space happens there to me, anyway I'm not sure about the connection with xterm and

Re: Bash instead of ksh

2024-04-02 Thread jslee
On Tue, 2 Apr 2024, at 03:24, Karel Lucas wrote: > Instead of ksh I want to use bash as a general shell. But how can I set > it up that way? Bash is already installed. You're getting plenty of good advice here :-) I have some advice also, hopefully good advice: Firstly, use shellcheck

Re: need help to access my machine after upgrade -- system immediately logs me out

2024-04-02 Thread Stuart Henderson
On 2024-04-01, Peter N. M. Hansteen wrote: > > This sounds very much like a situation where the base system and packages > are out seriously of sync AND your user is et up with a default shell from > packages (I am guessing bash). Running out of space (especially in /usr) during sysupgrade

Re: need help to access my machine after upgrade -- system immediately logs me out

2024-04-02 Thread Stuart Henderson
On 2024-04-01, Sandeep Gupta wrote: > > However when i tried to log from the console -- the login message shows but > the system logs me out immediately. > On the desktop gui too, with only root I was able to login. But running > xterm from the fvwm menu fails. > I am a bit clueless as to how to

Re: Bash instead of ksh

2024-04-02 Thread Stuart Henderson
On 2024-04-01, Nick Holland wrote: > The pdksh that comes with OpenBSD by default is very good and supports > most of the "fancy" stuff that bash does, but is stock with the system, > so it has no dependencies, no issues at upgrade, and is quite lean

Re: need help to access my machine after upgrade -- system immediately logs me out

2024-04-02 Thread Mizsei Zoltán
If you have Xenocara installed, then I assume you can use xedit to modify files on the system. I don't know twm, but it is probably possible to create a new entry in its menu, through which you could run "xterm -e /bin/sh" to override the default shell. If this is not possible using twm, then

Re: need help to access my machine after upgrade -- system immediately logs me out

2024-04-02 Thread Sandeep Gupta
Very likely that would be issue. The problem is that I am not able to access a shell for root or the regular user. On the console, I get logged out immediately. On GUI, fvwm, the root is able to login. I can launch top and other utilities. But I am not able to launch xterm. I guess I would have to