Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create dirs 000 to prevent mounting accidents #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tsaavik
Copy link

@tsaavik tsaavik commented Oct 28, 2014

With the mountpoints set to 000 processes will not be able to write to an un-mounted mount point, in the event that a disk is not mounted.

Without this mogile could start up with an unmounted disk and start writing to the mount point's directory, which in all likelihood is the system drive. If the system drive fills you could be in for a world of hurt.

There is (optional) code later in the script to fix this, but it would affect existing directories which may (for one reason on another) be non-ideal to users. But there is no reason not to create NEW directories this way to protect the majority of use cases.

With the mountpoints set to 000 processes will not be able to write to an un-mounted mount point, in the event that a disk is not mounted.

Without this mogile could start up with an unmounted disk and start writing to the mount point's directory, which in all likelihood is the system drive. If the system drive fills you could be in for a world of hurt.

There is code later in the script to fix this, but it would affect existing directories which may (for one reason on another) be non-ideal to users. But there is no reason not to create NEW directories this way to protect the majority of use cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant