How to hide. etc and Lost+found directory

Source: Internet
Author: User

Failure phenomenon:

When using the Vnx shared File Services feature, the file system is shared with the CIFS protocol or the NFS protocol, which is automatically generated in the client's shared file system. etc directory and Lost+found directory. This article mainly introduces the CIFS application of VNX system, how to hide for the client. etc directory and Lost+found directory?


First let's look at the/.etc directory and the/lost+found directory. In the operating system,. etc directories are used to store a variety of system profiles, which are used to restore lost files when an error occurs in the file system by placing some missing pieces into this directory. Lost+found After understanding the important role of two directories, in order to avoid the daily use of the. etc directory and the Lost+found directory mistakenly deleted, the administrator can use the following two ways to hide the directory:

Method One: Create subdirectories under the root directory, and then mount subdirectories. This method applies to creating a new file system, making sure that there is no data in the file system when you operate. The specific actions are as follows:

1, the Authentication CIFS server is joined correctly domain, for example: Nascifsserver.

2, new file system, such as: Itdocuments.

3, mount the file system to the data mover, to ensure the correctness of the data mover.

4, the file system using CIFS export, such as: Itdocuments.

5, use Windows client to log on to the new export file system, such as: \nascifsserveritdocuments

6. In the new export file system you can see the. etc and Lost+found directory, and then create a new directory, such as: Itdocuments. At this point, you can see three directories in the file system:. etc directory, Lost+found directory, and itdocuments directory.

7, in the Vnx graphical interface, the output (Unexport) The newly created file system, and then use the new pathname \nascifsserveritdocumentsitdocuments to re-export the file system.

8. Use Windows client to log on to the new export file system again, at which time. etc directories and Lost+founder directories are hidden.

Method Two: Start the Abe (access based enumeration) feature in a shared folder.

The Abe feature is a new feature introduced in Windows 2003 that allows domain users to log on to a file server and see only those shared folders for which they have permissions, and no shared folders that do not have permissions to see. VNX also supports this feature, which is configured with the following steps:

1. Edit the "etc" and "lost+found" permissions in the folder to specify administrator unique access rights.

2, download the Emcabe.exe tool to the Windows client in the CIFS Toolsemcabe directory of the Celerra Applcationcs CD, or you can log in to the website for downloading.

3. To run the Abe feature of the CIFS folder on the Windows client (the client needs to be able to access the CIFS server) runs the command emcabe.exe command. The command format is as follows:

Emcabe [/e |/d |/g] [/t servername] [/a |/s sharename] [/h]

/e enables ABE on specified share (s).

/d disables ABE on specified share (s).

/g Gets ABE State of the specified share (s).

the/e,/d,/g options are mutually exclusive.

/t servername specifies the target server name. By default, the target server was the local machine.

/s sharename specifies the shared folder on which to run the command.

/A runs the command on all shares of the target server.

the/a and/s options are mutually exclusive.

/h displays a usage message.

4, in addition to the administrator of the unexpected account login test, you can find that the directory has been hidden.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.