{"id":174,"date":"2009-07-28T19:27:39","date_gmt":"2009-07-29T00:27:39","guid":{"rendered":"http:\/\/24.183.55.167:8101\/wordpress\/mount_smbfs-kldloadsmbfs-operation-not-permitted-solved\/"},"modified":"2012-08-14T20:54:12","modified_gmt":"2012-08-15T01:54:12","slug":"mount_smbfs-kldloadsmbfs-operation-not-permitted-solved","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/mount_smbfs-kldloadsmbfs-operation-not-permitted-solved\/","title":{"rendered":"&#8220;mount_smbfs: kldload(smbfs): Operation not permitted&#8221; SOLVED!!!!"},"content":{"rendered":"<p>When I tried to mount a windows share from FreeBSD:<br \/>\n<code><br \/>\nsudo mount_smbfs -I WindowsBoxIPaddress \/\/username@WindowsBoxIPaddress\/WindowsShare \/mnt<br \/>\n<\/code><\/p>\n<p>I always got this error:<br \/>\n<code><br \/>\nmount_smbfs: kldload(smbfs): Operation not permitted<br \/>\n<\/code><\/p>\n<p>After searching this error message on Google, I found that all suggested solutions were related to running this command using sudo, which I already did. Today morning, I tried a different way and the problem is solved!<\/p>\n<p>In \/etc\/rc.conf, I disable the following configurations:<br \/>\n<code><br \/>\n#kern_securelevel=\"1\"<br \/>\n#kern_securelevel_enable=\"YES\"<br \/>\n<\/code><\/p>\n<p>After I rebooted the machine, and mounted the Windows share again, it worked! That&#8217;s simple, isn&#8217;t it?<\/p>\n<p>Note: These two lines are for making the FreeBSD box more secure, and I highly recommend to put these in a public accessible server. I don&#8217;t think it is safe to make a public accessible server to access to any Windows box because there are not many protections you can do on a Windows box. In case the public server got hacked, the connections to other internal servers should be blocked, i.e., other internal servers can always access the public server, but not vice versa.<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I tried to mount a windows share from FreeBSD: sudo mount_smbfs -I WindowsBoxIPaddress \/\/username@WindowsBoxIPaddress\/WindowsShare \/mnt I always got this error: mount_smbfs: kldload(smbfs): Operation not permitted After searching this error <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/mount_smbfs-kldloadsmbfs-operation-not-permitted-solved\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[7,144,6],"tags":[171,32,33],"class_list":["post-174","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-sever-problem","category-technology","tag-freebsd","tag-samba","tag-troubleshooting"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-2O","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3380,"url":"https:\/\/icesquare.com\/wordpress\/freebsdmount-devda0p2-rw-mount-of-denied-filesystem-is-not-clean-run-fsck-forced-mount-will-invalidate-journal-contents-operation-not-permitted\/","url_meta":{"origin":174,"position":0},"title":"[FreeBSD]mount: \/dev\/da0p2: R\/W mount of \/ denied. Filesystem is not clean &#8211; run fsck. Forced mount will invalidate journal contents: Operation not permitted","author":"Derrick","date":"January 5, 2014","format":false,"excerpt":"When I tried to mount a hard drive on FreeBSD today, I got the following error message. sudo mount -t ufs \/dev\/da0p2 \/mnt\/ mount: \/dev\/da0p2: R\/W mount of \/ denied. Filesystem is not clean - run fsck. Forced mount will invalidate journal contents: Operation not permitted Here is how to\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2662,"url":"https:\/\/icesquare.com\/wordpress\/solvedfailed-to-enable-the-dataready-accept-filter\/","url_meta":{"origin":174,"position":1},"title":"[Solved]Failed to enable the &#8216;dataready&#8217; Accept Filter","author":"Derrick","date":"February 1, 2012","format":false,"excerpt":"After I updated the Apache to 2.2.22 for my FreeBSD box today, I got a problem: #apachectl stop #apachectl start [warn] (2)No such file or directory: Failed to enable the 'dataready' Accept Filter If you search for Failed to enable the 'dataready' Accept Filter on Google, you probably will find\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3125,"url":"https:\/\/icesquare.com\/wordpress\/freebsdthe-netsamba35-port-has-been-deleted-obsoleted-by-netsamba36\/","url_meta":{"origin":174,"position":2},"title":"[FreeBSD]The net\/samba35 port has been deleted: Obsoleted by net\/samba36","author":"Derrick","date":"February 11, 2013","format":false,"excerpt":"FreeBSD is designed for users who got lots of spare time. Every once a while, it will give you some troubles (or \"snacks\" in programmer language), which help you to burn some of your spare time. If you cannot handle these troubles, then FreeBSD is not for you. Although FreeBSD\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2181,"url":"https:\/\/icesquare.com\/wordpress\/freebsd-updateinstalling-updates-install-usrsrcliblibcgenlibc_dlopen-c-no-such-file-or-directory\/","url_meta":{"origin":174,"position":3},"title":"[FreeBSD-update]Installing updates&#8230;install: \/\/\/usr\/src\/lib\/libc\/gen\/libc_dlopen.c: No such file or directory","author":"Derrick","date":"December 23, 2011","format":false,"excerpt":"When I tried to upgrade my FreeBSD system today, I received a last minute Christmas gift from the FreeBSD team. :-) #sudo freebsd-update fetch Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 8.2-RELEASE from update4.FreeBSD.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files...\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2840,"url":"https:\/\/icesquare.com\/wordpress\/freebsdthe-develpkg-config-port-moved-to-develpkgconf-reason-pkg-config-has-been-replace-by-pkgconf-pkgconf-0-8-5-conflicts-with-installed-packages-pkg-config-0-25_1\/","url_meta":{"origin":174,"position":4},"title":"[FreeBSD]The devel\/pkg-config port moved to devel\/pkgconf; Reason: pkg-config has been replace by pkgconf; pkgconf-0.8.5 conflicts with installed package(s): pkg-config-0.25_1","author":"Derrick","date":"July 31, 2012","format":false,"excerpt":"FreeBSD is designed for users who got lots of spare time. Every once a while, it will give you some troubles (or \"snacks\" in programmer language), which help you to burn some of your spare time. If you cannot handle those troubles, then FreeBSD is not for you. Although FreeBSD\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2777,"url":"https:\/\/icesquare.com\/wordpress\/solvedproblem-to-update-openldap-in-freebsd\/","url_meta":{"origin":174,"position":5},"title":"[Solved]Problem to Update OpenLDAP in FreeBSD","author":"Derrick","date":"April 29, 2012","format":false,"excerpt":"Recently, I found the following error message when updating my FreeBSD system regarding to the OpenLDAP: ===> Installing for openldap-client-2.4.31 ===> Generating temporary packing list ===> Checking if net\/openldap24-client already installed ===> Creating users and\/or groups. Using existing group `ldap'. Creating user `ldap' with uid `389'. pw: user 'ldap' already\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":10,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"predecessor-version":[{"id":2940,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/174\/revisions\/2940"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}