Skip to contentSkip to conversation

some problems about permission of subdirectory

DISCUSSION houlinfei 2 participants 2 messages Feb 22, 2017

Subsystems (2)
lore
Share & tools
lore

houlinfei

author
#0 lore raw

aGkgS2luZ2xvbmc6ClRoYW5rIHlvdSBmb3IgeW91ciBhbnN3ZXIgYWJvdXQgdGhpcyBwaGVub21l bm9uLCBpIGp1c3QgdHJ5IHRoZSBtZXRob2QgeW91IHByb3ZpZGUsIGJ1dCBwcm9ibGVtIGFsc28g ZXhpc3QuIElmIGkgd2FudCB0byBjaGFuZ2UgdGhlIGNvZGUgYWJvdXQgbmZzZCBhbmQgcnBjLm1v dW50ZCwgd2hlcmUgc2hvdWxkIGkgY2hhbmdlPyBJJ20gbm90IGZhbWlsaWFyIHdpdGggdGhpcyBw YXJ0IG9mIHRoZSBjb2RlLiAKVGhhbmtzIHZlcnkgbXVjaH4KaG91bGluZmVp

#1 lore raw
Quoted 2 lines · houlinfei

hi Kinglong:
Thank you for your answer about this phenomenon, i just try the method you provide, but problem also exist. If i want to change the code about nfsd and rpc.mountd, where should i change? I'm not familiar with this part of the code.

Sorry, I test it with the following sets (with "no_root_squash"),
/root/hh/hh1 *(rw,no_subtree_check,no_root_squash,insecure)

It's okay for your problem, but all client's process will be treated as root. But, it's just a hacker method with many limits,
I think you'd better change your exports as,

/root/hh/hh1 *(ro,sync,insecure,no_subtree_check) /root/hh/hh2 *(rw,sync,insecure,no_subtree_check)

thanks,
Kinglong Mee