Restrict user to a particular directory

Hi

I have a Fedora10 server and i need a particular user to view files only in a particular folder.
All other files in other folders having "read" permission for all shouldn't be accessible to this user.

Please let me know if ther's a way.

Thanks,
HG

chroot would be the only way. Having read for all means just that. ANYBODY can read them.

You can also use NFSv4 ACLs if your filesystem supports it.

I took his question to mean the user would be local. If they are, then NFS won't enter into it. If the user is remote, then there are far more options

Most versions of Fedora include a bunch of unstable and experimental software... The latest version does have support for NFSv4 ACLs and it's not exclusive to NFS; they can also be used on ext3 filesystems.

I think it was introduced on Fedora 11 (or 12?) with nfs4-acl-tools package. :smiley:

U can use
#setfacl -m u:(username):rwx (particular file or folder to whom u want to set rule for)