> Thanks. But I need specific directory only. > umask way seems to set mode not only under ~/secret but other > directories like ~/public. > Is there any elegant way? elegant way is just to chmod 700 ~/secret and do not do anything more, as files under ~/secret are already inaccessible too for others and group.