Basic security questions


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Basic security questions
# 1  
Old 01-10-2007
Basic security questions

Hey guys,

I've seen this posted a few times when i searched but I kinda want to know the cleanest way of doing it.

On Solaris 8 and Solaris 9
What is the best way to disable telnet ssh1 and remote root login premanently?

I've seen posts that say edit /etc/services edit this edit that whats the cleanest or most effective way of doing it? Are their config files that should be edited or will /etc/services suffice?

Any tips would be appreciated...
# 2  
Old 01-10-2007
Well telnet and rsh (assuming that's what you mean by remote login) are in /etc/inetd.conf. Just find them, comment them out and kill -HUP the inetd service.

Making sure you're not running ssh1 is located in your /etc/sshd/sshd_config file. Change the "Protocol 2,1" entry and remove the '1'. The location of sshd_config might be in different places such as /usr/local/etc as well. Make sure you kill -HUP the sshd service as well (NOTE! on some boxes kill -HUP will reboot the server; notably an older Solaris x86 install is where I had the problem).

Carl
# 3  
Old 01-10-2007
Is it safe to comment out most of the stuff in inetd.conf???

I don't even know what half this stuff is doing....



Well... I commented it all out and the server still works so I'll have to see if some stuff breaks since i've done it....=)

Thank you for the help!

Last edited by kingdbag; 01-10-2007 at 06:12 PM..
# 4  
Old 01-10-2007
Quote:
Originally Posted by kingdbag
Is it safe to comment out most of the stuff in inetd.conf???

I don't even know what half this stuff is doing....
You should be able to "man" just about anything. There are a few things you should leave running. For example, on a Sun box the Disk Manager stuff is in inetd. But most stuff can be removed for sure.

The quickest way for me is:

Code:
$ grep -v "^#" /etc/inetd.conf

That'll return a list of the active programs. Then just man each of them to see if they need to be cleared. Of course, if you're running a FTP server, commenting that out would be bad Smilie

Carl
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

basic questions on ifconfig -a

lo0: flags=1000849 <UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 qfe0: flags=1004843 <UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 10.0.0.112 netmask ffffff80 broadcast 10.0.0.127 ether 8:0:20:b9:4c:54 qfe1: flags=1004843... (2 Replies)
Discussion started by: jtamminen
2 Replies

2. Shell Programming and Scripting

basic awk questions

I find an script with awk sitting around. I went through some online manuals, but I can't figure out exactly how it works. I can't post the whole program. Not allowed. This is the line that is confusing me. I get when else is in the script grep -v "^REM " $1| grep -v "JUNK;" | awk -F" "... (2 Replies)
Discussion started by: guessingo
2 Replies

3. Solaris

solaris 10 and a few basic questions

hello, first, I'm quite new to solaris. I've installed solaris 10 basic (item 4 on the install-menue). now I had to realize that I don't have any option for connecting the machine from remote. ssh isn't even installed although I've coosed 'yes' for remote access. no matter what solaris is... (10 Replies)
Discussion started by: fourty2
10 Replies

4. UNIX for Dummies Questions & Answers

some basic questions about unix ..

Hi all today i gone through worst interview of my life that for hour questions were so basic but i never though about them now i am figuring out answers my self but i would appreciate if you ppl help me ... i am listing some of the questions i remember .. 1 ) $ cat a.sh #! /usr/bin/ksh... (4 Replies)
Discussion started by: zedex
4 Replies

5. UNIX for Dummies Questions & Answers

hp-ux basic questions

I have multiple questions How to list or find only Nov month's files? How can I get state of process like running, stop, or sleep etc? How can I check dependences of processes? plz ans any if u can thx regards, Mazhar Hussain (3 Replies)
Discussion started by: mazhar99
3 Replies

6. UNIX for Dummies Questions & Answers

Some basic questions

Hi- Newbie here with some basic questions: 1) I can't get alias to work. I tried alias ll='ls -al', but it doesn't work. When just typing 'alias', the new definition doesn't appear. I'm in a bash shell -- is that the problem. I tried switching to csh, but that didn't seem to help. This... (5 Replies)
Discussion started by: Aworstell
5 Replies

7. UNIX for Dummies Questions & Answers

Basic Unix Questions

OK, here's a question from a true UNIX newb: How does one make a 20 line file? I'm lost. :confused: OK, I figured it out. :D (0 Replies)
Discussion started by: Kitchen Zinc
0 Replies

8. Slackware

Basic networking questions.

Hey, I'm new to Linux. I have a few questions about it. I run Slackware. After the installation the Linux installation had problems with my old hardware (network card, sound card) so I removed them and Linux would start. But now, I can't seem to use the network card in Linux because it's not... (3 Replies)
Discussion started by: RellioN
3 Replies
Login or Register to Ask a Question