{"id":56,"date":"2021-12-22T04:40:25","date_gmt":"2021-12-22T04:40:25","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/paul\/?p=56"},"modified":"2021-12-22T06:26:04","modified_gmt":"2021-12-22T06:26:04","slug":"etc-fstab-for-engr-servers","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/paul\/2021\/12\/22\/etc-fstab-for-engr-servers\/","title":{"rendered":"\/etc\/fstab for ENGR servers"},"content":{"rendered":"\n<p>I had some trouble getting set up with the ENGR servers from my Arch Linux laptop. <\/p>\n\n\n\n<p>What I was trying: <code>smbclient \/\/stak.engr.oregonstate.edu\/users\/<strong>ONID<\/strong> -U <strong>ONID<\/strong>@oregonstate.edu<\/code>, and various permutations.<\/p>\n\n\n\n<p>Eventually, I found that <code>smbclient '\/\/depot.engr.oregonstate.edu\/users' -U=<strong>ONID<\/strong>@oregonstate.edu<\/code> was successful. <em>Note that appending \/<strong>ONID<\/strong> to the path didn&#8217;t work, and this solution requires <code>cd<\/code>ing into your <strong>ONID<\/strong> directory.<\/em> <\/p>\n\n\n\n<p>So that worked, but I wanted to be able to run <code>mount \/mnt\/engr<\/code>, so I created an fstab entry.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/stak.engr.oregonstate.edu\/users\/ONID \/mnt\/engr cifs _netdev,nofail,uid=<strong>paul<\/strong>,gid=<strong>paul<\/strong>,credentials=\/etc\/samba\/credentials\/engr 0 0<\/pre>\n\n\n\n<p>This requires a file called <code>\/etc\/samba\/credentials\/engr<\/code>, which should have strict permissions and look something like <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">username=<strong>ONID<\/strong>@oregonstate.edu\npassword=<strong>hunter2<\/strong><\/pre>\n\n\n\n<p>Now, <code>sudo mount \/mnt\/engr<\/code> will get you access to your remote directory!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had some trouble getting set up with the ENGR servers from my Arch Linux laptop. What I was trying: smbclient \/\/stak.engr.oregonstate.edu\/users\/ONID -U ONID@oregonstate.edu, and various permutations. Eventually, I found that smbclient &#8216;\/\/depot.engr.oregonstate.edu\/users&#8217; -U=ONID@oregonstate.edu was successful. Note that appending \/ONID to the path didn&#8217;t work, and this solution requires cding into your ONID directory. So &hellip; <a href=\"https:\/\/blogs.oregonstate.edu\/paul\/2021\/12\/22\/etc-fstab-for-engr-servers\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\/etc\/fstab for ENGR servers<\/span><\/a><\/p>\n","protected":false},"author":11809,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/paul\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/paul\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/paul\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/paul\/wp-json\/wp\/v2\/users\/11809"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/paul\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":3,"href":"https:\/\/blogs.oregonstate.edu\/paul\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":60,"href":"https:\/\/blogs.oregonstate.edu\/paul\/wp-json\/wp\/v2\/posts\/56\/revisions\/60"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/paul\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/paul\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/paul\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}