<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Command for checking world-writable access in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/command-for-checking-world-writable-access/m-p/3769053#M102002</link>
    <description>Hi Harry / James, &lt;BR /&gt;&lt;BR /&gt;Thanks a lot. It looks ok for me now. Thanks again for your great help. &lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dewa</description>
    <pubDate>Mon, 10 Apr 2006 09:30:01 GMT</pubDate>
    <dc:creator>Dewa Negara_4</dc:creator>
    <dc:date>2006-04-10T09:30:01Z</dc:date>
    <item>
      <title>Command for checking world-writable access</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-for-checking-world-writable-access/m-p/3769048#M101997</link>
      <description>Hi All, &lt;BR /&gt;&lt;BR /&gt;I have a script to check world-writable access using the following command:&lt;BR /&gt;&lt;BR /&gt;grep -v "#" /etc/fstab| awk '{print $2}'|grep -E -v "^/tmp$|^/var/tmp$|\.\.$"|xargs -n1 ls -ld|grep "wx "&lt;BR /&gt;&lt;BR /&gt;However, this command is giving me a bug when the ownership of the mount point with "wx" chars as below:&lt;BR /&gt;&lt;BR /&gt;[root@PROD:/opt/soeg/validation/scripts]&lt;BR /&gt;# grep -v "#" /etc/fstab| awk '{print $2}'|grep -E -v "^/tmp$|^/var/tmp$|\.\.$"|xargs -n1 ls -ld|grep "wx "&lt;BR /&gt;drwxrwxrwx   6 p50adm     sapsys          96 Jun 30  2005 /usr/sap/P50&lt;BR /&gt;drwxrwxrwx  19 oratwx     dba           2048 Oct 21 21:37 /oracle/TWX&lt;BR /&gt;drwxrwxr-x  56 oratwx     dba           2048 Oct 14 16:59 /oracle/TWX/920_64&lt;BR /&gt;drwxr-xr-x   3 oratwx     dba          24576 Feb 13 14:00 /oracle/TWX/saparch&lt;BR /&gt;drwxr-xr-x   5 oratwx     dba           1024 Oct 27 11:21 /oracle/TWX/sapreorg&lt;BR /&gt;&lt;BR /&gt;How can I do a little bit modification on the command, so it only checks for the world-writable permission?&lt;BR /&gt;&lt;BR /&gt;Pls help. &lt;BR /&gt;&lt;BR /&gt;Thanks and Best Regards,&lt;BR /&gt;Dewa&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Apr 2006 08:26:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-for-checking-world-writable-access/m-p/3769048#M101997</guid>
      <dc:creator>Dewa Negara_4</dc:creator>
      <dc:date>2006-04-10T08:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Command for checking world-writable access</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-for-checking-world-writable-access/m-p/3769049#M101998</link>
      <description>Hi Dewa:&lt;BR /&gt;&lt;BR /&gt;If you want to find files with world-writable permissions do:&lt;BR /&gt;&lt;BR /&gt;# find /path -xdev -type f -perm -o+w&lt;BR /&gt;&lt;BR /&gt;The '-xdev' argument prevents crossing mountpoints.  If you want you want to brutally search every filesystem, do:&lt;BR /&gt;&lt;BR /&gt;# find / -type f -perm -o+w&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 10 Apr 2006 08:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-for-checking-world-writable-access/m-p/3769049#M101998</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-04-10T08:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Command for checking world-writable access</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-for-checking-world-writable-access/m-p/3769050#M101999</link>
      <description>Change your ending grep with:&lt;BR /&gt;&lt;BR /&gt;grep "^d.......wx "&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Mon, 10 Apr 2006 08:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-for-checking-world-writable-access/m-p/3769050#M101999</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2006-04-10T08:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Command for checking world-writable access</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-for-checking-world-writable-access/m-p/3769051#M102000</link>
      <description>Hi (again) Dewa:&lt;BR /&gt;&lt;BR /&gt;OK, you want mountpoints.  How about this:&lt;BR /&gt;&lt;BR /&gt;while read DEV MPT NULL&lt;BR /&gt;do&lt;BR /&gt;  find ${MPT} -xdev -type d -perm -o+w&lt;BR /&gt;done &amp;lt; /etc/fstab&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Apr 2006 08:52:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-for-checking-world-writable-access/m-p/3769051#M102000</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-04-10T08:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Command for checking world-writable access</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-for-checking-world-writable-access/m-p/3769052#M102001</link>
      <description>Hi Dewa:&lt;BR /&gt;&lt;BR /&gt;Oops, that should be:&lt;BR /&gt;&lt;BR /&gt;while read DEV MPT NULL&lt;BR /&gt;do&lt;BR /&gt;find ${MPT} -xdev -type d -prune -perm -o+w&lt;BR /&gt;done &amp;lt; /etc/fstab&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Apr 2006 09:28:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-for-checking-world-writable-access/m-p/3769052#M102001</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-04-10T09:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Command for checking world-writable access</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-for-checking-world-writable-access/m-p/3769053#M102002</link>
      <description>Hi Harry / James, &lt;BR /&gt;&lt;BR /&gt;Thanks a lot. It looks ok for me now. Thanks again for your great help. &lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dewa</description>
      <pubDate>Mon, 10 Apr 2006 09:30:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-for-checking-world-writable-access/m-p/3769053#M102002</guid>
      <dc:creator>Dewa Negara_4</dc:creator>
      <dc:date>2006-04-10T09:30:01Z</dc:date>
    </item>
  </channel>
</rss>

