Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying the following:

sudo dd if=/dev/sda1 of=/mnt/nfs/l bs=1M

It fails:

dd: opening `/mnt/nfs/l': Permission denied

However, normal file creation and writing with "cat" works.

What could be the cause for this?

Linux, NFS v3

share|improve this question
    
Did you use 'sudo' when testing normal file creation and writing with cat? –  sciurus Jul 20 '11 at 20:58
add comment

1 Answer 1

up vote 5 down vote accepted

The most likely cause is root squashing. This is a server option that changes the the requester for file operations when coming from the clients root user. Commonly the root user is changed to nobody on the server.

If /mnt/nfs is exported from the server with root squashing then the user nobody will need to have permissions to write to the directory.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.