{"id":1629,"date":"2011-09-29T12:23:35","date_gmt":"2011-09-29T17:23:35","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=1629"},"modified":"2012-08-14T18:07:12","modified_gmt":"2012-08-14T23:07:12","slug":"rm-varempty-operation-not-permitted","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/rm-varempty-operation-not-permitted\/","title":{"rendered":"rm: \/var\/empty: Operation not permitted"},"content":{"rendered":"<p>I was trying to remove a folder at \/var\/empty with no success (<strong>Operation not permitted<\/strong>):<\/p>\n<pre>\r\nls -al\r\ndr-xr-xr-x  2 root     wheel     512B Jul 18  2010 empty\r\n<\/pre>\n<pre>\r\nsudo rm -Rf empty\r\nrm: \/var\/empty: Operation not permitted\r\n<\/pre>\n<p>So I decided to change the permission:<\/p>\n<pre>\r\nsudo chmod a+rw empty\/\r\n<\/pre>\n<p>and it did not work either:<\/p>\n<pre>\r\nchmod: empty\/: Operation not permitted\r\n<\/pre>\n<p>Finally, I gave <strong>chflags<\/strong> a try:<\/p>\n<pre>\r\nchflags -R noschg empty\/\r\nsudo rm -Rf empty\/\r\n<\/pre>\n<p>Done!<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was trying to remove a folder at \/var\/empty with no success (Operation not permitted): ls -al dr-xr-xr-x 2 root wheel 512B Jul 18 2010 empty sudo rm -Rf empty <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/rm-varempty-operation-not-permitted\/\">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":[94,144,6,69],"tags":[171],"class_list":["post-1629","post","type-post","status-publish","format-standard","hentry","category-computer-problems-computer-help-pc-support","category-sever-problem","category-technology","category-troubleshooting-technology","tag-freebsd"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-qh","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":1629,"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":1417,"url":"https:\/\/icesquare.com\/wordpress\/how-to-remove-ds_store-and-appledouble\/","url_meta":{"origin":1629,"position":1},"title":"How to remove .DS_Store and .AppleDouble","author":"Derrick","date":"March 8, 2011","format":false,"excerpt":"If you've shared your Windows \/ Unix drives with Mac OS X before, you may notice that Mac OS X will leave some footprints on your shared folders, such as .DS_Store and .AppleDouble. These files and directories are pretty annoying because they showed up in almost every single directory you\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":"https:\/\/i0.wp.com\/icesquare.com\/wordpress\/wp-content\/uploads\/2012\/01\/400px-broom_icon.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":174,"url":"https:\/\/icesquare.com\/wordpress\/mount_smbfs-kldloadsmbfs-operation-not-permitted-solved\/","url_meta":{"origin":1629,"position":2},"title":"&#8220;mount_smbfs: kldload(smbfs): Operation not permitted&#8221; SOLVED!!!!","author":"Derrick","date":"July 28, 2009","format":false,"excerpt":"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 message on Google, I found that all suggested solutions were related to running this command using sudo, which I already\u2026","rel":"","context":"In &quot;FreeBSD&quot;","block_context":{"text":"FreeBSD","link":"https:\/\/icesquare.com\/wordpress\/category\/sever-problem\/freebsd\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3263,"url":"https:\/\/icesquare.com\/wordpress\/freebsdportsnap-gunzip-cant-stat-files-gz-no-such-file-or-directory\/","url_meta":{"origin":1629,"position":3},"title":"[FreeBSD]Portsnap \/ gunzip: can&#8217;t stat: files\/&#8230; .gz: No such file or directory","author":"Derrick","date":"May 23, 2013","format":false,"excerpt":"My FreeBSD got an unknown fever today. When I updated my ports using portsnap, it gave the following error message: #sudo portsnap fetch Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found. Fetching snapshot tag from your-org.portsnap.freebsd.org... done. Fetching snapshot metadata... done. Updating from Thu May 23 09:08:53 CDT 2013 to Thu\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":1591,"url":"https:\/\/icesquare.com\/wordpress\/the-develautomake110-port-has-been-deleted-no-longer-required-by-any-port-aborting-update\/","url_meta":{"origin":1629,"position":4},"title":"The devel\/automake110 port has been deleted: No longer required by any port&#8230;Aborting update","author":"Derrick","date":"September 21, 2011","format":false,"excerpt":"My FreeBSD box must be sick today. For some reasons, when I ran the portsnap command (i.e., portsnap fetch update), it removed the entire port directory (i.e., rm \/usr\/ports -Rf). Therefore, I decided to build the entire port tree: sudo su cd \/var\/db\/portsnap rm -Rf * portsnap fetch extract I\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":2122,"url":"https:\/\/icesquare.com\/wordpress\/delete-empty-system-mail-box-freebsd-linux\/","url_meta":{"origin":1629,"position":5},"title":"How to Delete System Mail \/ Empty System Mail box in FreeBSD \/ Linux?","author":"Derrick","date":"December 22, 2011","format":false,"excerpt":"[ad#adbrite] When I checked my FreeBSD system mail box today, I found that there were 8000 system mails sitting my mail box: mail Mail version 8.1 6\/6\/93. Type ? for help. \"\/var\/mail\/root\": 8182 messages 8182 new >N 1 root@localhost.my.do Fri Sep 30 03:02 44\/1330 \"x.com output\" N 2 root@localhost.my.do Fri\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\/1629","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=1629"}],"version-history":[{"count":10,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1629\/revisions"}],"predecessor-version":[{"id":2861,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1629\/revisions\/2861"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}