pastebin - collaborative debugging tool
rovema.kpaste.net RSS


Add NFS user to local machines
Posted by Anonymous on Mon 25th Apr 2022 16:30
raw | new post

  1. #
  2. # NFS server side changes
  3. #
  4.  
  5. ~# groupadd -g 8239 mwenzel
  6. ~# useradd -u 8239 -g 8239 -s /bin/bash mwenzel
  7. ~# /home/rmainz/bin/vidiff /etc/exports
  8. # Begin differences
  9. --- /etc/exports.old.2886321    2022-04-25 17:07:09.789709677 +0200
  10. +++ /etc/exports.new.2886321    2022-04-25 17:08:19.340785494 +0200
  11. @@ -7,7 +7,8 @@
  12.  # Example for NFSv4:
  13.  # /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
  14.  /export/home/rmainz    derfwpc5131(rw,async,no_subtree_check,no_root_squash)   127.0.0.1(rw,async,no_subtree_check,no_root_squash) fe80::d6f5:27ff:fe2b:8588/64(rw,async,no_subtree_check,no_root_squash) fe80::219:99ff:fee6:963f/64(rw,async,no_subtree_check,no_root_squash)
  15. -/export/home/swulsch   derfwpc5131(rw,async,no_subtree_check,no_root_squash)   127.0.0.1(rw,async,no_subtree_check,no_root_squash) fe80::d6f5:27ff:fe2b:8588/64(rw,async,no_subtree_check,no_root_squash) fe80::219:99ff:fee6:963f/64(rw,async,no_subtree_check,no_root_squash)
  16. +/export/home/swulsch   derfwpc5131(rw,async,no_subtree_check,no_root_squash)   127.0.0.1(rw,async,no_subtree_check,no_root_squash) fe80::d6f5:27ff:fe2b:8588/64(rw,async,no_subtree_check,no_root_squash) fe80::219:99ff:fee6:963f/64(rw,async,no_subtree_check,no_root_squash)
  17. +/export/home/mwenzel   derfwpc5131(rw,async,no_subtree_check,no_root_squash)   127.0.0.1(rw,async,no_subtree_check,no_root_squash) fe80::d6f5:27ff:fe2b:8588/64(rw,async,no_subtree_check,no_root_squash) fe80::219:99ff:fee6:963f/64(rw,async,no_subtree_check,no_root_squash)
  18.  
  19.  # mail dir
  20.  /var/mail      derfwpc5131(rw,no_root_squash)  127.0.0.1(rw,no_root_squash) fe80::d6f5:27ff:fe2b:8588/64(rw,no_root_squash) fe80::219:99ff:fee6:963f/64(rw,no_root_squash)
  21. # End differences
  22.  
  23. ~# cd /export/home/
  24. ~# mkdir mwenzel
  25. ~# chown mwenzel:mwenzel mwenzel/
  26. ~# service nfs-server restart
  27.  
  28. ####################################################
  29.  
  30. #
  31. # NFS client side changes
  32. #
  33.  
  34. ~# /home/rmainz/bin/vidiff /etc/auto.home
  35. # Begin differences
  36. --- /etc/auto.home.old.1140     2022-04-25 17:19:07.167312709 +0200
  37. +++ /etc/auto.home.new.1140     2022-04-25 17:19:30.305670816 +0200
  38. @@ -1,5 +1,6 @@
  39.  rmainz -fstype=nfs             [fe80::219:99ff:feae:73ce%eno1]:/export/home/rmainz
  40.  swulsch -fstype=nfs             [fe80::219:99ff:feae:73ce%eno1]:/export/home/swulsch
  41. +mwenzel -fstype=nfs             [fe80::219:99ff:feae:73ce%eno1]:/export/home/mwenzel
  42.  test001                                localhost:/export/home/test001
  43.  
  44.  
  45. # End differences
  46.  
  47. ~# groupadd -g 8239 mwenzel
  48. ~# useradd -u 8239 -g 8239 -s /bin/bash mwenzel
  49. ~# passwd mwenzel
  50. New password:
  51. Retype new password:
  52. passwd: password updated successfully
  53. ~# service autofs restart

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.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at