[root@manager SAMPLESRV]# vim /usr/lib/ambari-server/web/javascripts/app.js isAllowedDir: function isAllowedDir(value) { var dirs = value.replace(/,/g, ' ').trim().split(new RegExp("\\s+", "g")); for (var i = 0; i < dirs.length; i++) { if (dirs[i].startsWith('/home') || dirs[i].startsWith('/homes')) { return false; } } return true; },