ikwzm / udmabuf

User space mappable dma buffer device driver for Linux.
BSD 2-Clause "Simplified" License
545 stars 165 forks source link

Fix sudo echo permissions #67

Closed luca-della-vedova closed 3 years ago

luca-della-vedova commented 3 years ago

sudo echo "string" > file fails with permission denied errors because superuser privileges are only applied to the echo command.

Changing to sudo sh -c "echo 'string' > file" fixes the issue.

This was not an issue because the bash shell was likely logged in as root when the tutorial was written.

ikwzm commented 3 years ago

Thank you for your precious pull request.