• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Search | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

/etc/services

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> UNIX // GNU/Linux

View previous topic :: View next topic  
Author Message
ramandegan
Just Arrived
Just Arrived


Joined: 17 Sep 2004
Posts: 0


Offline

PostPosted: Fri Sep 17, 2004 12:56 pm    Post subject: /etc/services Reply with quote

Everybody says " close unused services on your computer".
I can see the services at /etc/services
I know how to disable them . But how can I get more information about that services ? I cant decide to close the service or not ? because I dont know what does it do ?
can anybody show me the way ?
Back to top
View user's profile Send private message
Cass
Lurker
Lurker


Joined: 14 Aug 2003
Posts: 14
Location: Scotland

Offline

PostPosted: Fri Sep 17, 2004 1:03 pm    Post subject: Reply with quote

What are the services you are confused about ??

normal services to be stopped can include anything from sendmail to telnet, there are many, your requirements will dictate which services to close and what to leave open.


Cass
Back to top
View user's profile Send private message
UziMonkey
SF Reviewer
SF Reviewer


Joined: 19 Dec 2003
Posts: 5


Offline

PostPosted: Fri Sep 17, 2004 1:22 pm    Post subject: Reply with quote

/etc/services holds a list of services and the port they most commonly run on. All these services are _not_ running on your machine, /etc/services exists only to give a service name to port number match, mostly for convenience.

To disable services, you have to know what you're really running. To do this, look in your init scripts. Since you didn't say which OS you're running, it's hard to give specific advice, but the startup scripts are usually in /etc/init.d. Links are made to these scripts in rcX.d, where X is the runlevel. If your system doesn't use this style of init scritps, there's probably a configuration file to shut services off, usually called /etc/rc.conf. Also, look at /etc/inetd.conf, services run through inetd are configured here.
Back to top
View user's profile Send private message Visit poster's website
ramandegan
Just Arrived
Just Arrived


Joined: 17 Sep 2004
Posts: 0


Offline

PostPosted: Fri Sep 17, 2004 10:45 pm    Post subject: Reply with quote

oh. right. I use RH9 linux.
I mean when I read the etc/services I see many words that I ve never heard before. how can I know what they are ?

for example I see this line

echo 7/tcp
echo 7/udp
discard 9/tcp sink null
discard 9/udp sink null
systat 11/tcp users
daytime 13/tcp
daytime 13/udp
netstat 15/tcp
chargen 19/tcp ttytst source
chargen 19/udp ttytst source
ftp-data 20/tcp
ftp 21/tcp
telnet 23/tcp
smtp 25/tcp


In this example , ftp, smtp,telnet ok. but what are discard,chargen,systat,echo ...?

Actually I mean where can I find information about these services ? should I use man pages ?
Back to top
View user's profile Send private message
ryansutton
Trusted SF Member
Trusted SF Member


Joined: 25 Aug 2004
Posts: 67
Location: San Francisco, California

Offline

PostPosted: Fri Sep 17, 2004 11:09 pm    Post subject: Reply with quote

Here ya go, hope this helps

http://www.iss.net/security_center/advice/Exploits/Ports/default.htm
Back to top
View user's profile Send private message
ramandegan
Just Arrived
Just Arrived


Joined: 17 Sep 2004
Posts: 0


Offline

PostPosted: Sat Sep 18, 2004 10:42 am    Post subject: Reply with quote

thank you ever so much.
I read some of themm .
Back to top
View user's profile Send private message
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> UNIX // GNU/Linux All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Community Area

Log in | Register