LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Let me what will happen if i remove the following file from Linux server (https://www.linuxquestions.org/questions/linux-server-73/let-me-what-will-happen-if-i-remove-the-following-file-from-linux-server-800079/)

puja1387 04-05-2010 04:06 AM

Let me what will happen if i remove the following file from Linux server
 
Let me what will happen if i remove the following file from Linux server.

1. /etc/hosts.equiv
.rhosts files
.netrc files

2. Shell
/etc/inetd.conf
/etc/inetd.conf.orig

XavierP 04-05-2010 04:17 AM

Nothing until you reboot. I assume this is a school question?

ganiutomo 04-05-2010 04:22 AM

it depend on your distribution

my distribution don't have /etc/hosts.equiv and /etc/inetd.conf.orig, so it perfectly save to remove.
and /etc/inetd.conf is an empty file.

but since it was located in /etc directory, I "don't" suggest you to remove it.

note:
if file with ".orig" or ".bak" exist, it usually a backup file.

Tuttle 04-05-2010 04:23 AM

Quote:

Originally Posted by puja1387 (Post 3924575)
Let me what will happen if i remove the following file from Linux server.

1. /etc/hosts.equiv
.rhosts files
.netrc files

2. Shell
/etc/inetd.conf
/etc/inetd.conf.orig

You won't find much changes if you remove these files, /etc/hosts.equiv for example is part of the configuration for NFS mounting, if it doesn't exist then it will be ignored. You can recreate it at any time.

.rhosts is a config file for rsh logins, no drama if it goes missing, again you can re-create it.

/etc/inetd.conf is part of the BSD inetd package and will certainly be missed by the inetd daemon! I can post a default file for /etc/inetd.conf if you need a template. /etc/inet.conf.orig is just the 'original' inetd.conf file on your system.

bakdong 04-05-2010 04:34 AM

hosts.equiv and .rhosts are part of the r commands. If you don't use them, and they are generally considered to be unsecure now, you don't need the files. The .netrc file contains login and initialization information used by the auto-login process for ftp.

inetd.conf is the config file for inetd (the old super server). http://linux.about.com/od/lna_guide/a/gdelna98.htm

All the distributions that I use have xinetd installed as default. If you're actually using inetd then deleting the conf file will delete all your services supplied by it.

The .orig file is the original config file, renamed from some time in the past.

diff is a useful utility if you want to see the differences between files:

diff -u /etc/inetd.conf /etc/inetd.conf.orig


All times are GMT -5. The time now is 05:15 PM.