This is a discussion on How to make a file/folder invisible in NFS exported fs? within the Linux software forums, part of the Linux Getting Started category; Hi all, Anyone knows how to make files or folder invisible in NFS exports? In samba there's an option veto ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Hi all,
Anyone knows how to make files or folder invisible in NFS exports? In samba there's an option veto files...this will make certain files or directories invisible and unaccessible but I dont have idea in NFS. Looks like there are no equivalent options in NFS...? Thanks for any help.. Warren |
| Sponsored Links | ||
|
|
|
||||
|
Use chmod and chgrp/chown command to setup permission on files. For example only root should allow to see folder foo:
Code:
chmod 0700 foo chown root:root foo In short use NIS to give same UID,GID to both client/server to permission works nicely.
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
|
|||
|
thanks for the reply.
So the point is we just set the permission of the file in which only the root have access. What I mean is that when the client mounts the exported fs, certain files/folders would be totally invisible to him. ex: /etc/exports /mnt/nfs *(rw,root_squash,secure,sync,no_wdelay) -bash-3.00# mkdir test -bash-3.00# chmod 0700 test -bash-3.00# chown root:root test -bash-3.00# ls -l total 1 drwx------ 2 root root 1024 Apr 10 17:35 test When the nfs client mounts it, he can still see the folder "test" but have no access. My problem is how this folder will become hidden to him. I tried hiding this folder but the client may still able to see if he set his browser to show hidden files. |
|
|||
|
yes, hiding will partially work but if the clients set his browser to show all hidden files or "ls -a" then he's still able to see it all.
something like veto in samba but there's no equivalent option in nfs. acls might do a trick for this. |
|
|||
|
yup acls might do a trick for this but note that ACL is not supported by all Linux/UNIX NFS client, especially the nfs 2 clients. But you can force all client to use nfs v3 or higher
|
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ubuntu Linux folder permissions | myfoot | Ubuntu / Debian | 1 | 12-01-2007 09:03 PM |
| A script for Removing all the files inside a folder and its sub folder | vivekv | Shell scripting | 1 | 10-25-2007 02:44 PM |
| Make file script, need help understanding | shaziluk | Shell scripting | 0 | 09-16-2007 04:30 AM |
| rsync folder | zafar466 | Shell scripting | 1 | 04-28-2007 04:28 AM |
| i need a script to delete one folder with files on my ftp | silver_ch | Shell scripting | 1 | 03-27-2007 11:15 AM |