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 07-06-2011, 01:58 AM   #1
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Slackware, security


Hi, i'm pretty new to linux, but have been working at it and setting up Slackware. I've used Ubuntu in the past, and quite frankley, used it the way it comes, and assumed it was safe. What things should i do to secure Slackware. Anything special?
 
Old 07-06-2011, 02:14 AM   #2
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 211

Rep: Reputation: 52
First action is to join the security mailing list with the phrase "subscribe [name of list]" in the body of the email.:
Code:
To: majordomo@slackware.com.
Subject: 
Message body: subscribe slackware-security
http://www.slackware.com/lists/ for more info



...and here for (older) archived security announcements,
http://www.slackware.com/security/


Second action is to update when required or when advised by the security mailing-list:
To do this,install slackpkg
http://www.slackpkg.org/stable/ for recent stable releases.

*Then uncomment (remove the # ) from a mirror for your slackware-version in /etc/slackpkg/mirrors, then run as root:
Code:
# slackpkg update

# slackpkg install-new

# slackpkg upgrade-all
*Quoting "brianL; Senior Member"
http://www.linuxquestions.org/questi...03#post4404283

Last edited by dh2k; 07-06-2011 at 02:39 AM.
 
1 members found this post helpful.
Old 07-06-2011, 02:18 AM   #3
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Pretty much boils down to:

Staying up to date (slackpkg can help here)

Making sure you aren't running any services that you don't need.

Create a normal user account for day to day use and only use the root account for Administration purposes.

Use trusted sources for any software you build/install (Verify these using the md5/asc files provided)

Use some common sense... read before you click... etc..
 
1 members found this post helpful.
Old 07-06-2011, 05:17 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Make sure to install a firewall script:
http://connie.slackware.com/~alien/efg/

Also I always disable TCP connections to X by editing /usr/bin/startx:

Code:
serverargs="-nolisten tcp"
I also check for rootkits once in a while using rkhunter, chkrootkit.

Also, use strong passwords.
 
2 members found this post helpful.
Old 07-06-2011, 07:11 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
There are also probably additional steps you could take depending upon how you use the machine. For example, if you're planning on using this as a server connected to the Internet 24/7, I'd be very tempted to install a file integrity checker like Aide, Samhain, Osiris or Tripwire. Depending on what services you're exposing there may be additional hardening steps you could take.
 
Old 07-06-2011, 08:44 AM   #6
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by mRgOBLIN View Post

Use trusted sources for any software you build/install (Verify these using the md5/asc files provided)
Further to mRgOBLIN's post. The trusted sources that I use to build software or install packages are as follows:

1. http://www.slackbuilds.org/

2. Robby's packages

3. Eric's packages

There are other Slackware repositories of packages out there, but, I do not use them. Robby and Eric are Slackware developers. Their packages are completely trustworthy.
 
Old 07-06-2011, 08:08 PM   #7
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465

Original Poster
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Thanks guys, it seems to be simpler than i thought. it's a laptop, and i'm just using it for personal use, not a server. Thanks guys. I'm not going to mark this solved incase anyone has anything else to add
 
Old 07-06-2011, 08:31 PM   #8
prol
Member
 
Registered: May 2008
Posts: 47

Rep: Reputation: 18
is there a website where stuff like this is documented, or does slackware assume that user should know his/her way around?
 
Old 07-06-2011, 08:42 PM   #9
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
If it is a laptop you may want to consider encryption in case it walks away one day. Check out the README: ftp://slackware.mirrors.tds.net/pub/...ADME_CRYPT.TXT

Brian
 
Old 07-06-2011, 11:01 PM   #10
bonixavier
Member
 
Registered: Sep 2010
Distribution: Slackware
Posts: 320

Rep: Reputation: 69
System hardening by dentonj. Aimed at 10.2, but the ideas are nice.
 
Old 07-07-2011, 02:54 AM   #11
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465

Original Poster
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Quote:
Originally Posted by mRgOBLIN View Post
Making sure you aren't running any services that you don't need
How do i do that?

Quote:
Originally Posted by H_TeXMeX_H View Post
Make sure to install a firewall script:
http://connie.slackware.com/~alien/efg/
I tried the link but it asks what type of internet connection i use. I use mobile broadband, what do i put in that box?

Quote:
Originally Posted by dh2k View Post
Then uncomment (remove the # ) from a mirror for your slackware-version in /etc/slackpkg/mirrors, then run as root:
[code]
I did this for the Australian mirror, but i got an error. i first tried the http, but when that didn't work i tried the ftp, but that didn't work either. I'm pretty sure i'm doing it right, and that there's something wrong with the mirror. Can someone confirm the Australian mirror is/isn't working, or provide an alternative Australiain mirror?
 
Old 07-07-2011, 03:18 AM   #12
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 211

Rep: Reputation: 52
Quote:
Originally Posted by Knightron View Post
Can someone confirm the Australian mirror is/isn't working, or provide an alternative Australiain mirror?
I can verify problem with that mirror

# Australia, 250Mbit
# http://mirror.pacific.net.au/linux/s...lackware-13.0/
# ftp://mirror.pacific.net.au/linux/sl...lackware-13.0/

Code:
root@slackware13:/etc/slackpkg# slackpkg update

Updating the package lists...
	Downloading...
			Downloading http://mirror.pacific.net.au/linux/slackware/slackware-13.0/ChangeLog.txt...
--2011-07-07 09:16:19--  http://mirror.pacific.net.au/linux/slackware/slackware-13.0/ChangeLog.txt
Resolving mirror.pacific.net.au... failed: Name or service not known.
wget: unable to resolve host address `mirror.pacific.net.au'

Error downloading from http://mirror.pacific.net.au/linux/slackware/slackware-13.0/.
Please, check your mirror and try again.

root@slackware13:/etc/slackpkg#
Choose a different mirror then try again ;-P


Forwarded upstream at slackpkg.org

Last edited by dh2k; 07-07-2011 at 03:30 AM.
 
Old 07-07-2011, 03:19 AM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Put in the name of the internet interface. See the output of 'ifconfig'. It's probably ppp0, but do check.
 
Old 07-07-2011, 03:27 AM   #14
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by Knightron View Post
How do i do that?
Remove the executable bit on the service scripts. If you run ls -l /etc/rc.d you'll see something like this:

Code:
-rwxr-xr-x 1 root root  572 Dec 18  2010 rc.consolekit
-rw-r--r-- 1 root root 4.3K Jan 21 22:23 rc.cups
-rw-r--r-- 1 root root  512 Mar 15 23:33 rc.dnsmasq
-rwxr-xr-x 1 root root  22K Jun 10 11:05 rc.firewall
-rwxr-xr-x 1 root root  132 Jun 27 14:37 rc.font
In the first column you see the file permissions, r - read, w - write, x - executable. In this case rc.cups and rc.dnsmasq don't have the executable bit, so that means I'm not running those services. The others have the bit set, so they're executed at startup. If you want to prevent a service being executed at startup, remove the executable bit with chmod:

Code:
chmod -x /etc/rc.d/rc.font
And to enable a service, type:

Code:
chmod +x /etc/rc.d/rc.font
Quote:
Originally Posted by Knightron View Post
I tried the link but it asks what type of internet connection i use. I use mobile broadband, what do i put in that box?
You mean the one that says "Select Type of Internet Address"? If so, most probably you're using "Dynamic Internet IP Address". Click on the "Help" link next to the option for information.

Quote:
Originally Posted by Knightron View Post
Can someone confirm the Australian mirror is/isn't working, or provide an alternative Australiain mirror?
I can't reach it either. But I suppose you can use any other mirror close to your location.
 
1 members found this post helpful.
Old 07-07-2011, 07:57 AM   #15
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
I can confirm that mirror.pacific.net.au has been down for a long time. I do not believe that it is coming back. In my unsuccessful search to find the last post I saw on http://forums.whirlpool.net.au/ (where the sysadmin reported that the server had gone down), I came across this as a possible replacement. http://ftp.iinet.net.au/pub/slackware/
I have not tried this, but will certainly be doing so in the future.

On the security question, if you use secure shell (the sshd daemon), then disable root logins. The LQ Security forum has had some unhappy threads recently where the likely point of entry leading to the server being pwned was an attack on the ssh root password.
 
  


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
About security in Slackware Hello-World Slackware 6 10-07-2009 01:22 PM
Security update and hardware: To Slackware or not to Slackware... Vrajgh Slackware 29 12-04-2007 04:35 PM
slackware security... marsques Slackware 5 02-26-2005 10:57 PM
slackware security e1000 Slackware 3 11-15-2003 02:33 PM
Slackware Security Update: GDM security update phoeniXflame Slackware 2 08-26-2003 04:21 PM

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

All times are GMT -5. The time now is 04:59 PM.

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