Networking Forums

Networking Forums > Computer Networking > Linux Networking > NFS and POSIX acl

Reply
Thread Tools Display Modes

NFS and POSIX acl

 
 
hungryblank@gmail.com
Guest
Posts: n/a

 
      02-18-2005, 01:21 PM
Hi there

I'm using kernel based NFS server in combination with POSIX ACL

Server: SuSE 9.1 all patches applied
Client: SuSE 9.2 all patches applied and SuSE 9.0 all patches applied

The beahviour of acl isn't the same on local server than on the clients

this is the problem i have in detail:

on server, as user root

server # mkdir group
server # setfacl -d -m group:testgroup:rwx group
server # setfacl -m group:testgroup:rwx group

server # getfacl group

# file: group
# owner: root
# group: root
user::rwx
group::r-x
group:testgroup:rwx
mask::rwx
other::r-x
default:user::rwx
default:group::r-x
default:group:testgroup:rwx
default:mask::rwx
defaultther::r-x

as user linus (member of testgroup) on server

server # touch fileserver
server # getfacl fileserver
# file: fileserver
# owner: linus
# group: users
user::rw-
group::r-x #effective:r--
group:testgroup:rwx #effective:rw-
mask::rw-
other::r--

server # mkdir serverdir
server # getfacl serverdir/
# file: serverdir
# owner: linus
# group: users
user::rwx
group::r-x
group:testgroup:rwx
mask::rwx
other::r-x
default:user::rwx
default:group::r-x
default:group:testgroup:rwx
default:mask::rwx
defaultther::r-x

So this is really fine testgroup has the write access to files and dirs
created by user linus.

Go on the client side, now and create a file and a directory

as user linus we check first how client see remote ACL...

client # getfacl group/
# file: group
# owner: root
# group: root
user::rwx
group::r-x
group:testgroup:rwx
mask::rwx
other::r-x
default:user::rwx
default:group::r-x
default:group:testgroup:rwx
default:mask::rwx
defaultther::r-x

It seems to be all right

client # cd group

client # touch fileclient
client # getfacl fileclient
# file: fileclient
# owner: linus
# group: users
user::rw-
group::r-x #effective:r--
group:testgroup:rwx #effective:r--
mask::r--
other::r--

client # mkdir clientdir
client # getfacl clientdir/
# file: clientdir
# owner: linus
# group: users
user::rwx
group::r-x
group:testgroup:rwx #effective:r-x
mask::r-x
other::r-x
default:user::rwx
default:group::r-x
default:group:testgroup:rwx
default:mask::rwx
defaultther::r-x

As you can see in this case the group testgroup doesn't have write
permission on file and dirs. How can I fix this problem?

Thanks

 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11