Difference between
modified post b9bd8815 by Anonymous on Fri 19th Jan 2024 16:26
original post 5121e00d by Anonymous on Tue 16th Jan 2024 14:55
Download diff
Show
old version |
new version |
both versions
| 1 | 1 | git clone https://github.com/kofemann/simple-nfs.git | |
| 2 | 2 | cd simple-nfs/ | |
| 3 | 3 | mvn package | |
| 4 | 4 | find . -name \*.jar | |
| 5 | - | echo "/ *(rw,insecure,all_squash,anonuid=$(id -u),anongid=$(id -g))" >exports | |
| 5 | + | printf "/ *(rw,insecure,all_squash,anonuid=%d,anongid=%d)\n" "$(id -u)" "$(id -g)" >exports | |
| 6 | 6 | mkdir nfsroot | |
| 7 | 7 | chmod a=u nfsroot | |
| 8 | - | java -jar ./target/simple-nfs-1.0-SNAPSHOT-jar-with-dependencies.jar -root "$PWD/nfsroot" -port 30000 -exports $PWD/exports | |
| 8 | + | cat exports | |
| 9 | + | (umask 0000 ; java -jar ./target/simple-nfs-1.0-SNAPSHOT-jar-with-dependencies.jar -root "$PWD/nfsroot" -port 30000 -nfsvers 4 -exports $PWD/exports) | |
| 9 | 10 |
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
nrubsig.kpaste.net RSS