TIL

yogurtwrong@lemmy.world to Linux@lemmy.ml – 583 points –
39

I assume most of those students weren't "officially" given admin priveleges, which makes it extra funny

They may have been, things were far more trusting back then.

X servers, for example, would accept any connections. So we would often "export DISPLAY=friendscomputer:0.0" in the computer lab and then open windows of embarrassing content. Which at the time would likely be ASCII art....

One of my favourite wars was to open audio files on other people's SPARCs, somebody had the loudest bag pipe music that usually ended things.

Access to the SPARCs was normally restricted to third year but if you knew the right person you could get an account created pretty easily. Had the fastest access to the internet at the time within the uni as well.

I used to work at a company that did distributed QA. Other people's tests would run on your desktop. It worked surprisingly well. But occasionally a test of some audio resource would play on your speakers "The discrete cosine is a real, discrete version of the fast Fourier transform."

Still can. Only a few years ago, I would cat random things to classmates' tty devices.

Little known fact: A Stanford mainframe kept logs of the activities of the 'wheels' in a journal -- the 'journal of the wheels'. Young George Lucas, who briefly attended the university, found that journal, and became fascinated with the 'Wheel Wars'. He later drafted a document that he called 'Journal of the Whills', based largely on what he read on those logs; this is the draft that later became 'Whill Wars', and ultimately, of course, 'Star Wars'.

I have no idea if this is true, but I'd be impressed if you just made it up.

Thanks indeed; but I think I'd be more impressed if it were actually true.

(but yeah, the first draft of Star Wars was called 'journal of the whills'.)

... So... Is it true or not?!

In my freshman year of computer science our main computer lab was filled with Sage IV machines. Basically a Motorola 68k series with 4 or 5 serial terminals. Most people were writing Pascal code or using a simple word processor. But god forbid you were on there with someone taking assembly language. Because they could write really stupid code with super tight loops that never allowed any other code to run, and the only thing you could do was reboot. So if you hadn’t saved your code you were fucked.

So I never purposely wrote really bad code that would overwrite unprotected shared memory with random quotes from Marvin from HHGTG to mess with other people. I would never do that. That would have been unethical and shit… 🤔

I did learn a lot of basic hardware and operating systems though so there’s that.

https://en.m.wikipedia.org/wiki/Sage_Computer_Technology

The best part of working in a meat grinder startup were the Linux masters teaching you stuff like

cat /dev/random > /dev/pty23

or

su _otheruser_
chsh -s /bin/false

What is /dev/pty23? From context, I assume another users terminal so it just spams garbage to their screen?

What OP said. But here's a more detailed answer courtesy of GPT-4:

Adding cat /dev/random > /dev/pty23 to your .profile would result in an interesting situation whenever you start a login shell.

  1. Behavior of the Command: The command cat /dev/random continuously reads random data from the /dev/random device file, which generates an endless stream of random bytes. Redirecting this to /dev/pty23 means it attempts to write this data to the pseudo-terminal device /dev/pty23.

  2. Impact on Shell Startup: When you add this to your .profile, every time you start a login shell (like when you open a new terminal session), it will execute this command. Since /dev/random produces an endless stream of data, the cat command will not terminate on its own. This means your shell will be stuck executing this command, and you won't get a prompt to enter new commands.

  3. Interactive Shell Issue: The shell remains technically interactive, but because the cat command doesn't complete, you won't get a chance to interact with it. The shell is effectively blocked by the cat command continuously running.

  4. Potential Problems: There's a possibility that /dev/pty23 might not exist on your system, or you might not have the permission to write to it. In such cases, the command would fail, but it would still block the shell if it doesn't exit properly.

  5. Fixing the Issue: To regain control of your shell, you might need to edit your .profile from a different context where it doesn't get executed, like using a non-login shell or booting into a recovery mode.

In summary, it's a kind of a "prank" command that can render your login shell unusable until you remove it from your .profile. It's an example of how powerful shell startup scripts can be, and also a reminder to be cautious about what gets added to them!

cat /dev/random > /dev/pty23

Imagine someone adding this to your .profile

I've always wondered why the admin group is called wheel

It's from the phrase "big wheel", meaning a person with a lot of power/influence. Similar to "big cheese"... It would have been better to use "cheese" instead of "wheel" IMO.

I always think of it as 'being behind the wheel', which gives control of whatever direction you want to steer into.

Pretty sure it's not. I saw something on this topic a few weeks ago but can't quite remember. Iirc, it was a term in an early early OS, where a bit in memory was the privilege but and could be set or unset by turning a real wheel on the computer. This Stück with some people developing UNIX, so they called the wheel group wheel, but none of them are sure who came up with this.

Of course, this is just hearsay.

1 more...
1 more...

I remember back in college we would abuse the wall command on our shared Linux server so much that IT had to disable it

Reminds me of the "Op" wars on IRC. All users would be given @ status and the point was to kick everyone before you got kicked. Writing scripts for this was my first "taste" at programming.

Reminds me of the test server shenanigans I had at an old job versus a colleague. All in fun. Nothing in production.

One was the faux Bash shell that kind of worked OK until you pushed it or tried to do anything fancy. It was the default shell for the user called "root", but that wasn't the UID 0 user. It had been, but I renamed it. Then created a new "root" with a different UID. Of course, the faux shell would tell "root" that it was UID 0.

The other was the simple background loop that would detect any rival admin sessions and SIGHUP their shell process. First user on the box to run that pretty much had free reign, and everyone else was logged off instantly.

Why declare a war over it? Just sudo sed -i 's/%wheel/$(whoami)/' /etc/sudoers or smth like that

got a similar situation in MUDs, someone finds a way to frob everyone else up to wizard level and the whole round of the game just becomes a mess of shouts

$ usermod -G wheel lntl

i think that's right

Need to throw a -a in there otherwise wheel will be your only extra group.