Score:1

Needs to set nodev option on DB directories in linux

lc flag

I have created two directory for new build linux server & each directory is 200GB in size and will be used for DB . security team did scan they found vulnerability as " No nodev option set to directory". I tried with ""mount -o remount,nodev /mountpoint"" but nodev is not being added in /etc/fstab .

Is it good to add nodev option to DB folder and how I can do this ??

Will unmount the directory and append the line with nodev in /etc/fstab file and remount again will work. I am new to linux and need help on this topic

thanks in advance

Score:2
ar flag

Running mount does not modify /etc/fstab. It merely remounts the filesystem with the new option, valid until it's remounted with another option, or through a reboot.

You'll have to manually edit /etc/fstab to include nodev.

If you're unsure of the format, please run man fstab. The fourth field of fstab contains options.

Newlinux-men avatar
lc flag
Thanks for reply , Will I have to unmount the file system before include nodev in /etc/fstab ? or editing /etc/fstab is enough
vidarlo avatar
ar flag
You don't have to unmount it. `fstab` is only read when mounting it. You can simply do a manual remount *and* edit fstab.
Newlinux-men avatar
lc flag
Thanks this answer worked
Newlinux-men avatar
lc flag
Thanks again I voted this answer useful . Seems like I don't have enough reputation to vote
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.