Needs to set nodev option on DB directories in linux

Posted on

A server stack is the collection of software that forms the operational infrastructure on a given machine. In a computing context, a stack is an ordered pile. A server stack is one type of solution stack — an ordered selection of software that makes it possible to complete a particular task. Like in this post about Needs to set nodev option on DB directories in linux was one problem in server stack that need for a solution. Below are some tips in manage your linux server when you find problem about linux, redhat, filesystems, database, .

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

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.

Leave a Reply

Your email address will not be published. Required fields are marked *