Increase NFS Client Mount Point Security For a Web-Server noexec, nosuid, nodev Options

Posted on in Categories , , , , , last updated February 19, 2014

I am using NFS server version 4.x on a CentOS/RHEL based system. I’m mounting my shared /var/www/ directory on five Apache based nodes using the following syntax:

mount -t nfs4 -o rw,intr,hard,proto=tcp rocknas02:/httproot/www /var/www/

I noticed that due to bug in my app user can sometime upload executable or other device files to get out of chrooted Apache server. How can I prevent such security issues on a CentOS or RHEL based NFS client and sever setup?

Linux NFS Mount: wrong fs type, bad option, bad superblock on fs2:/data3 Error And Solution

Posted on in Categories , , last updated June 12, 2010

I‘ve netapp NFS server with /data3 as shared directory. I type the following command at Ubuntu Linux to mount the NFS server:

mount fs2:/data3 /nfs/
OR
mount 192.168.1.100:/data3 /nfs/

But I’m getting an error which read as follows:

mount: wrong fs type, bad option, bad superblock on fs2:/data3,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount. helper program)
In some cases useful info is found in syslog – try
dmesg | tail or so

How do I fix this problem?