Unix Technical Forum

limited nfs condivision

This is a discussion on limited nfs condivision within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Is it possible to limit the nfs condivision, so that a certain user from the client could see only ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 08:19 AM
Mauro Sacchetto
 
Posts: n/a
Default limited nfs condivision

Is it possible to limit the nfs condivision,
so that a certain user from the client
could see only certain directories in the server,
and another one other directories?

Thax
MS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 08:19 AM
Dominik L. Borkowski
 
Posts: n/a
Default Re: limited nfs condivision

Mauro Sacchetto wrote:

> Is it possible to limit the nfs condivision,
> so that a certain user from the client
> could see only certain directories in the server,
> and another one other directories?


basic unix ownerships and permissions take care of nfs
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 08:19 AM
Mauro Sacchetto
 
Posts: n/a
Default Re: limited nfs condivision

Dominik L. Borkowski wrote:
> basic unix ownerships and permissions take care of nfs


I don't understand very well... Following your method
is without doubt possible to limit the access to certain dir,
chomod 770 and creating a group, for instance "shares"...
But if I would give to user x the permission to read
dir /a and /b, to user y the permission to read dir /c and /d
and finally to user x the permission to read dir /a and /d?
Is it possible to do that with ownership and permissions?

Thanx
MS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 08:20 AM
bram4
 
Posts: n/a
Default Re: limited nfs condivision

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mauro Sacchetto wrote:
> Dominik L. Borkowski wrote:
>
>>basic unix ownerships and permissions take care of nfs

>
>
> I don't understand very well... Following your method
> is without doubt possible to limit the access to certain dir,
> chomod 770 and creating a group, for instance "shares"...
> But if I would give to user x the permission to read
> dir /a and /b, to user y the permission to read dir /c and /d
> and finally to user x the permission to read dir /a and /d?
> Is it possible to do that with ownership and permissions?
>
> Thanx
> MS


Hi

For such cases, you have to create groups, I'd say one for each folder,
assign each group to a folder, giving it read and execute access (maybe
write too, that's your choice). Then you add the users to the right
groups so that they may access the folders.

The 'trick' is to use groups, which can contain more than one user to
rule the permissions...

I hope this is clear enough for you.

Regards
Bram4

- --


BIG BROTHER IS WATCHING YOU
www.anti-dmca.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCfKepsv7ahDE9W98RAuJoAJ0ameK1JyvxQfNsYOq5y9 TiBaSCkwCfd5sw
tGyTHJ2k3BQsxlzr5FFammg=
=0HAg
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 08:20 AM
Mauro Sacchetto
 
Posts: n/a
Default Re: limited nfs condivision

bram4 wrote:
> For such cases, you have to create groups, I'd say one for each folder,
> assign each group to a folder, giving it read and execute access (maybe
> write too, that's your choice). Then you add the users to the right
> groups so that they may access the folders.
> The 'trick' is to use groups, which can contain more than one user to
> rule the permissions...


Yes, I understand very well,
even if it's not so confortable...

Thanx!
MS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 08:21 AM
Henrik Carlqvist
 
Posts: n/a
Default Re: limited nfs condivision

Mauro Sacchetto <mauro.sacchetto@aliceposta.it> wrote:
>> The 'trick' is to use groups, which can contain more than one user to
>> rule the permissions...


> Yes, I understand very well,
> even if it's not so confortable...


There is also something called Access Control Lists (ACL). If unix groups
is enough my advice is to stick to that only. However, unix groups has
some limitations. Except for the limitations you have already found there
is another limitation in NFS which limits the number of groups a single
user can be a member of to 16.

There are patches which will give ACL functionality to Linux file systems
and also to NFS for Linux. Unfortunately there is no standard for how to
implement ACL in NFS v3 so even if you apply the patches your Linux client
will not be able to modify the ACLs on a NFS-share from another OS like
Solaris.

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc2(at)uthyres.com Examples of addresses which go to spammers:
info@k-soft.se info@k-software.biz info@webrider.ru root@localhost

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 08:21 AM
Mauro Sacchetto
 
Posts: n/a
Default Re: limited nfs condivision

Henrik Carlqvist wrote:
> There is also something called Access Control Lists (ACL). If unix groups

[cut]
> There are patches which will give ACL functionality to Linux file systems
> and also to NFS for Linux.

[cut]

Very interesting, I'll try to study this case

Thanx!
M.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:28 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com