LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-03-2016, 11:35 AM   #31
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175

Quote:
Originally Posted by dowelld View Post
I haven't built an LFS system is about 6 years, so thanks for the advice. I'll have a look at BLFS now.
the point is what NathanBarley says
Quote:
Originally Posted by NathanBarley View Post
I don't follow your reasoning - you're swapping a simple config change to having to glue together an entire distro, which will still have those upstream defaults.
...and that also suggests to disable root login completely (not even via a key).
 
Old 02-03-2016, 11:40 AM   #32
dowelld
Member
 
Registered: Jan 2005
Location: Somerset, UK
Distribution: Slackware
Posts: 62

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by ponce View Post
the point is what NathanBarley says

...and that also suggests to disable root login completely (not even via a key).
Yes it does, and I've already agreed that disabling the root login is something I agree with and do. Only I'd prefer to do that when it suited the system, not when it suited the software developers.
 
Old 02-03-2016, 11:54 AM   #33
dowelld
Member
 
Registered: Jan 2005
Location: Somerset, UK
Distribution: Slackware
Posts: 62

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by ponce View Post
the point is what NathanBarley says
No the point is what I said before. Accepting this OpenSSH default as the slackware default places slackware squarely in the centre of being a desktop PC only distribution. Designed and defaulting to a state which makes it suitable for installation to such systems. That was never what slackware was, in fact I can recall that one of my first posts on the slackware.com forums was about how slackware was one of the few systems I could install onto a 386 printserver and have up and running in under 30 minutes many, many years ago.

As I said before I'm fine with Pat and you all moving it onto being squarely placed in the primarily a desktop PC operating system, if that's what you all want. No doubt other changes and accepting of other upstream defaults will come along to cement that choice. I just need more flexibility than that.
 
Old 02-03-2016, 12:30 PM   #34
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by dowelld View Post
The dropbear installation used in Pat's initrd doesn't prevent me accessing the installer as root to perform remote installs. So I can do the install, attended or unattended. What I can't then do is anything with the system I just installed. At least not without yet again having to hack the initrd, just like it had to be hacked to bypass the sop to MS minded fuckwits who wanted to set their keyboard layout before the initrd startup was complete.

It seems the default slackware system now has to be hacked immediately after installation if you want to run it on a server. That's the default position OpenSSH has created for slackware.
System has to be hacked? Why don't you just create a user before you reboot the system? (The adduser script is even available if you don't want to remember the useradd command.) Then you can ssh in as that user when the system reboots and then su to root. It really isn't that difficult. I create a user before that initial reboot every time I install Slackware, because I want my system ready to go when I reboot. I also adjust my lilo.conf to remove the comment for compact and change the timeout and reinstall lilo. You can do a lot while still in the installer so as soon as you boot up your new system, you're good to go.

I would think that especially if you reboot a headless server in an unattended installation, you'd want decent security defaults in place, in case you forget to make your desired changes before you do your initial reboot.

Quote:
Originally Posted by dowelld View Post
As for who I am, fuck off knob, I've made no such claims.
Maybe not directly, but you certainly seem to imply you're a really good hacker and you did it right in this thread (emphasis is mine)... And way to be hostile. I wasn't hostile towards you, so I'd prefer the same back (although, obviously, you are able to act however you see fit). We try to keep this a friendly and respectful community.

Quote:
Originally Posted by dowelld View Post
You're trying to sell that locking down the 'root' account is of some value to a man who is paid to hack into proprietary software stacks. I can assure that that just about everyone of them locked down the 'root' account from the outset, and that it doesn't prevent me getting in. All it does is make legitimate system administration of systems harder. Sorry but you were never going to be able to make a convincing argument that OpenSSH defaulting (and slackware as its chosen default settings) to not permitting 'root' logins make them anymore secure. Quite simply because it doesn't.
 
Old 02-03-2016, 12:37 PM   #35
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by dowelld View Post
As I said before I'm fine with Pat and you all moving it onto being squarely placed in the primarily a desktop PC operating system, if that's what you all want. No doubt other changes and accepting of other upstream defaults will come along to cement that choice. I just need more flexibility than that.
As some in the forum will say, since Slackware doesn't have PAM, it's already been relegated to non-corporate use. A simple adjustment in the OpenSSH config did not doom this distro from being used in headless remote areas..

All it takes to fix your problem is to add a user or change the config before you reboot. It really isn't the end of the world (unless you absolutely can't remember to do this after an installation, but, if that's the case, there's probably other important things you're forgetting as well). If it is that difficult to remember, and you do a lot of these remote installs on headless machines, maybe it'd be worth creating a checklist so you can make sure you get everything done you need to.
 
Old 02-03-2016, 01:31 PM   #36
dowelld
Member
 
Registered: Jan 2005
Location: Somerset, UK
Distribution: Slackware
Posts: 62

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by bassmadrigal View Post
As some in the forum will say, since Slackware doesn't have PAM, it's already been relegated to non-corporate use. A simple adjustment in the OpenSSH config did not doom this distro from being used in headless remote areas..

All it takes to fix your problem is to add a user or change the config before you reboot. It really isn't the end of the world (unless you absolutely can't remember to do this after an installation, but, if that's the case, there's probably other important things you're forgetting as well). If it is that difficult to remember, and you do a lot of these remote installs on headless machines, maybe it'd be worth creating a checklist so you can make sure you get everything done you need to.
Ummm I put appliances into corporate environments, running slackware arm. I run slackware x64 in corporate locations, and slackware x86. Slackware is in corporare environments. It's just invisible, primarily because it just sits and works. I'm currently wondering about upgrading a slackware arm appliance which must have now been sat running in a corporate environment for three plus years. It has sat there reliably, never needing attention, doing what I set it to do, exactly how I set it to do it.

Slackware is far more corporate suitable than any of the other distributions, it always has been. I've been running it in corporate environments for at least 15 years.

I did acknowledge earlier (to Alien Bob) that the starting point of this was just me venting pointlessly.

I stand by my point though that accepting the OpenSSH default as the slackware default makes slackware a desktop PC positioned OS. More interestingly the default will have to be corrected for every Raspberry Pi install of slackware ARM, for any headless ARM install, for any S390 install, and for any headless install to a real x86/64 or virtual x86/64 server. This default locks the default slackware into being installed onto systems with screens attached. I can't see that as progress or any kind of improvement.

Saying I am paid to crack my way into proprietary software stacks doesn't constitute me making any special claims, that is one of the many things my boss pays me to do. Right now I'm hacking around inside the software stack on an OEM storage array. I'm not the first person who has been inside these array controllers, and I fairly certainly won't be the last who does this to this particular storage array type. There are any number of people just like me who are employed to things like this, because it's something certain companies need people like us to do. It allows them to make sane business decisions. It does also mean I can state quite happily that if IBM/Brocade/Cisco etc can't lock their root user accounts sufficiently to stop me (or those like me), this ridiculous change won't stop me (or those like me), and we're the good guys, you can be sure it ain't going to make any difference to the bad guys. I'm afraid your previous post felt hostile, hence my semi-hostile response, I apologise if I misread you.

Last edited by dowelld; 02-03-2016 at 01:42 PM.
 
Old 02-03-2016, 01:50 PM   #37
dowelld
Member
 
Registered: Jan 2005
Location: Somerset, UK
Distribution: Slackware
Posts: 62

Original Poster
Rep: Reputation: 12
And one other thing.

Slackware has always been a 'technical' distribution, and over the lset couple of decades many have learned vast amounts about how a linux system works, and how to 'run' it technically from slackware. How does anyone learn anything from a distribution which comes defaulted to do all of that for them on install?
 
Old 02-03-2016, 01:58 PM   #38
NathanBarley
Member
 
Registered: Oct 2014
Location: Western Pennsylvania
Distribution: Slackware, Crux, Gentoo, FreeBSD
Posts: 94

Rep: Reputation: Disabled
Quote:
Originally Posted by dowelld View Post
I stand by my point though that accepting the OpenSSH default as the slackware default makes slackware a desktop PC positioned OS. More interestingly the default will have to be corrected for every Raspberry Pi install of slackware ARM, for any headless ARM install, for any S390 install, and for any headless install to a real x86/64 or virtual x86/64 server. This default locks the default slackware into being installed onto systems with screens attached.
I can't see this as a desktop choice; it's from OpenBSD ('so secure you can't use it', as the joke goes) and I doubt Theo De Raadt sees that OS as desktop-focused.

Any reason you can't change the configuration or add a regular user in your unattended script? Both would allow remote access.
 
Old 02-03-2016, 02:08 PM   #39
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by dowelld View Post
Yes I could thanks, but I've decided I'll go LFS instead and move on. Slackware has been a good distribution over the years, but this new way of accepting upstream software developers from deciding how slackware systems should run as default, doesn't work for me.
Hahahahahaha... Adding an "echo" to your already modified initrd's init script is soooo hard that LFS seems soooo easy ?

Honnestly, it might be a bit "overkill" to block root as default, and yes it might be because a lot of people using it don't understand the risk so it assumes a higher that .5 probability of "dumb user"...

Yet it still a good security practice (I completely remove root login from ssh, and go through a user), and it's not a "new feature", or a lost feature, it's JUST a default setting...

And again, if you had already played with Slack's installer initrd so it should be easy as a lot of persons stated here...

Unless... Unless maybe you didn't play with initrd and just "copy pasted" some howto steps from some websites, and are not able to understand how it works... So... In that case, I don't understand why you complain about "dumb down" as it would be still "thousands of light year" above your actual level (in that case)..

Well, hope that passed the frustration of the "surprise" settings you'll realize that it's not a big deal. Maybe you had a tough day, "shit happens" .

Cheers.

Last edited by NoStressHQ; 02-03-2016 at 02:10 PM.
 
Old 02-03-2016, 03:13 PM   #40
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Quote:
Originally Posted by Alien Bob View Post
Now, get back to work and learn to type something else than the lame "fxck". Be a man and use the real word. Or skip your covert swearing altogether, it serves no purpose at all.
Indeed. The proper term is "fsck".
 
4 members found this post helpful.
Old 02-03-2016, 03:15 PM   #41
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by volkerdi View Post
Indeed. The proper term is "fsck".
Haha true, that's what I first thought fast-reading it the first time.
 
Old 02-03-2016, 04:21 PM   #42
dowelld
Member
 
Registered: Jan 2005
Location: Somerset, UK
Distribution: Slackware
Posts: 62

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by volkerdi View Post
Indeed. The proper term is "fsck".
That's what I get for spending too much time talking to non-technical people on forums with word censor lists.

No offense intended about any of this Pat, I get this was an upstream decision, and you've just accepted it. As Eric said I'll just need to suck it up for now.
 
Old 02-03-2016, 04:45 PM   #43
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by dowelld View Post
Ummm I put appliances into corporate environments, running slackware arm. I run slackware x64 in corporate locations, and slackware x86. Slackware is in corporare environments. It's just invisible, primarily because it just sits and works. I'm currently wondering about upgrading a slackware arm appliance which must have now been sat running in a corporate environment for three plus years. It has sat there reliably, never needing attention, doing what I set it to do, exactly how I set it to do it.

Slackware is far more corporate suitable than any of the other distributions, it always has been. I've been running it in corporate environments for at least 15 years.
I wasn't saying it wasn't good for corporate use, but I know there are some out there that think it doesn't work because of the lack of PAM.

Quote:
Originally Posted by dowelld View Post
I stand by my point though that accepting the OpenSSH default as the slackware default makes slackware a desktop PC positioned OS. More interestingly the default will have to be corrected for every Raspberry Pi install of slackware ARM, for any headless ARM install, for any S390 install, and for any headless install to a real x86/64 or virtual x86/64 server. This default locks the default slackware into being installed onto systems with screens attached. I can't see that as progress or any kind of improvement.
Why? As I stated earlier, it is very easy to create a user after the install process and before you reboot, or to directly modify the ssh config (although, you'd only end up changing it back again, since you do that anyway). There's countless other examples people could use in place of preventing password-based root ssh logins... Since Slackware doesn't create additional users, does that mean it "locks the default slackware into being" used for single user situations? No. It just means you need to do a bit of configuration on your own. Prior to xorg not requiring an xorg.conf file, did that mean that "locks the default slackware into being" console only? I think you can see where I'm going...

Quote:
Originally Posted by dowelld View Post
Saying I am paid to crack my way into proprietary software stacks doesn't constitute me making any special claims, that is one of the many things my boss pays me to do. Right now I'm hacking around inside the software stack on an OEM storage array. I'm not the first person who has been inside these array controllers, and I fairly certainly won't be the last who does this to this particular storage array type. There are any number of people just like me who are employed to things like this, because it's something certain companies need people like us to do. It allows them to make sane business decisions. It does also mean I can state quite happily that if IBM/Brocade/Cisco etc can't lock their root user accounts sufficiently to stop me (or those like me), this ridiculous change won't stop me (or those like me), and we're the good guys, you can be sure it ain't going to make any difference to the bad guys. I'm afraid your previous post felt hostile, hence my semi-hostile response, I apologise if I misread you.
I'm not saying that this change will prevent you from accessing a system (since I have no idea what your skill levels are), but I do know it will prevent a lot of the script kiddies who bank on having root enabled, which is probably a bigger majority of the hacking attempts out there. And I'm not labeling you a bad guy. I know hackers come in many different forms, and not all of them are malicious. But, just because you can get around this type of security does not mean it is a bad security practice to have. Just because some people can break into cars doesn't mean you should leave them unlocked...
 
1 members found this post helpful.
Old 02-03-2016, 04:46 PM   #44
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Quote:
Originally Posted by dowelld View Post
No offense intended about any of this Pat, I get this was an upstream decision, and you've just accepted it. As Eric said I'll just need to suck it up for now.
I accepted it after considering it carefully and deciding that it was the right default. I'm fairly certain that the reaction from other long-time Slackware users would have been worse if I'd decided not to accept the change and shipped a package with worse security than upstream intended.
 
1 members found this post helpful.
Old 02-03-2016, 05:41 PM   #45
dowelld
Member
 
Registered: Jan 2005
Location: Somerset, UK
Distribution: Slackware
Posts: 62

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by bassmadrigal View Post
I wasn't saying it wasn't good for corporate use, but I know there are some out there that think it doesn't work because of the lack of PAM.
Only 'the evil empire' brigade.

Quote:
Originally Posted by bassmadrigal View Post
Why? As I stated earlier, it is very easy to create a user after the install process and before you reboot, or to directly modify the ssh config (although, you'd only end up changing it back again, since you do that anyway). There's countless other examples people could use in place of preventing password-based root ssh logins... Since Slackware doesn't create additional users, does that mean it "locks the default slackware into being" used for single user situations? No. It just means you need to do a bit of configuration on your own. Prior to xorg not requiring an xorg.conf file, did that mean that "locks the default slackware into being" console only? I think you can see where I'm going...
You and everyone else, and of course you're right.

Quote:
Originally Posted by bassmadrigal View Post
I'm not saying that this change will prevent you from accessing a system (since I have no idea what your skill levels are), but I do know it will prevent a lot of the script kiddies who bank on having root enabled, which is probably a bigger majority of the hacking attempts out there. And I'm not labeling you a bad guy. I know hackers come in many different forms, and not all of them are malicious. But, just because you can get around this type of security does not mean it is a bad security practice to have. Just because some people can break into cars doesn't mean you should leave them unlocked...
I'm considering petitioning Pat as he's around to change the default 'root' name to Bob.
https://lh3.googleusercontent.com/-9...p9uuo1_500.gif

That'll stop the bad guys.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh to non-22 not working, edited sshd_config and restarted sshd NirvanaBaby Linux - Server 13 08-18-2011 09:48 AM
Starting sshd: /etc/ssh/sshd_config line 60: garbage at end of line; "no". any clue? loba09 Linux - Server 1 02-17-2011 07:04 PM
crux4slack package updated Falcony Slackware 6 11-04-2009 11:37 AM
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied sumanc Linux - Server 5 03-28-2008 04:59 AM
sshd package? fenderman11111 Debian 2 10-17-2004 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration