<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-49  評(píng)論-67  文章-27  trackbacks-0
    If you're new to Linux or know someone who is, here's an explanation of what's in the /etc subdirectory.

    Newcomers to Linux, especially those coming from a Windows background, often find files in the /etc directory to be difficult to understand. In this article, I provide a brief explanation of some of these files and their uses. Before we dive into the /etc directory however, I would like to point out that changes to some of these files can render your system unstable or in some circumstances unbootable. I cannot emphasize enough that you should make a backup of these files before making any changes.

    Let's dive in:

    /etc/exports: this file contains the partition configuration to load NFS (network filesystem). It states how partitions are mounted and shared with other Linux/UNIX systems.

    /etc/ftpusers: this file contains the login names of users who are not allowed to log in by way of FTP. For security reasons, it is recommended to add the root user to this file.

    /etc/fstab: this file automatically mounts filesystems that are spread across multiple drives or separate partitions. This file is checked when the system boots and filesystems are mounted.

    /etc/hosts.[allow, deny]: you can control access to your network by using these files. Adds hosts that you want to grant access to your network to the hosts.allow file; add hosts that you want to deny access to hosts.deny.

    /etc/inetd.conf or /etc/xinetd.conf: the inetd file can be called the father of networking services. This file is responsible for starting services such as FTP, telnet and the like. Some Linux distributions come with xinetd.conf, which stands for extended Internet services daemon. This file provides all the functionalities and capabilities of inetd but extends them further.

    It is advisable to comment out services you do not use.

    /etc/inittab: this file describes what takes place or which processes are started at bootup or at different runlevels. A runlevel is defined as the state in which the Linux box currently is in. Linux has seven runlevels, from 0-6.

    /etc/motd: motd stands for message of the day. This file is executed and its contents displayed after a successful login.

    /etc/passwd: this file contains user information. Whenever a new user is added, an entry is added to this file containing the user's login name, password and so on. This file is readable by everyone on the system. If the password field contains "x", then encrypted passwords are stored in /etc/shadow, a file that is accessible only by the root user.

    /etc/profile: when a user logs in, a number of configuration files are executed, including /etc/profile. This file contains settings and global startup information for the bash shell.

    /etc/services: this file works in conjunction with /etc/inetd.conf or /etc/xinetd.conf files (see above). This file determines which port a service mentioned in inetd.conf is to use, for example, FTP/21, TELNET/23 and so on.

    /etc/securetty: this file lists TTYs from which root is allowed to log in. For security reasons it is recommended to keep only tty1 for root login.

    /etc/shells: this file contains the names of all the shells installed on the system, along with their full path names.

    I hope you enjoyed this article and hope it helped in your understanding the /etc directory. You might find other subdirectories beneath the /etc directory that are application specific. /etc/httpd and /etc/sendmail, for example, are for Apache and sendmail, respectively.

    Copyright (c) 2003, AmirAli Lalji. Originally published in Linux Gazette issue 94. Copyright (c) 2003, Specialized Systems Consultants, Inc.

    AmirAli Lalji is a system administrator/DBA who lives and works in the UK and Portugal.

    posted on 2005-10-30 07:55 思考 閱讀(446) 評(píng)論(0)  編輯  收藏 所屬分類: Linux技術(shù)
    主站蜘蛛池模板: 亚洲第一区二区快射影院| 久久99亚洲网美利坚合众国| 亚洲欧美日韩综合久久久| 成年人网站免费视频| 久久亚洲国产精品成人AV秋霞| 久久久精品午夜免费不卡| 久久亚洲国产中v天仙www| 国产一区二区三区免费| 亚洲成人在线电影| 最近中文字幕免费mv在线视频| 中文字幕在线观看亚洲| 99在线视频免费观看视频| 456亚洲人成影院在线观| 毛片免费在线观看网站| 亚洲人成色在线观看| 全亚洲最新黄色特级网站| 一级一级一级毛片免费毛片| 亚洲女久久久噜噜噜熟女 | 欧美激情综合亚洲一二区| 国产精品视频免费一区二区三区 | 精品国产免费一区二区| 污网站在线观看免费| 国产亚洲色婷婷久久99精品| 久久综合给合久久国产免费| 亚洲最大天堂无码精品区| 亚洲精品国产高清嫩草影院 | 在线播放高清国语自产拍免费| 色噜噜噜噜亚洲第一| 国产亚洲精AA在线观看SEE| 亚洲最大免费视频网| 精品国产亚洲第一区二区三区| 中文亚洲成a人片在线观看| 无码囯产精品一区二区免费 | 免费精品久久久久久中文字幕| 亚洲第一AAAAA片| 免费99精品国产自在现线| 高清免费久久午夜精品| 亚洲视频国产视频| 国产男女猛烈无遮档免费视频网站| 三年片免费观看大全国语| 亚洲中文字幕人成乱码|