[NTLUG:Discuss] how do I get a list of files that are set read-only?
Jack Snodgrass
jack+ntlug at mylinuxguy.net
Thu Jan 30 20:55:21 CST 2003
On Thu, 2003-01-30 at 20:15, Carl Haddick wrote:
> Seems like a nice scripting exercise if you want to automate the
> process, but be careful on a live system.
>
That was my problem in the first place. ;)
I've come up with
find . -type f | xargs ls -lart | egrep "^\-r\-" | awk '{print $9}'
and that seems to mostly work.
the
find /home ! -perm +222
seems like it worked on my Linux box, but it didn't work
on my Solaris 2.6 box ( where I hosed up the stuff )
jack
--
Jack Snodgrass <jack+ntlug at mylinuxguy.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ntlug.org/pipermail/discuss/attachments/20030130/466d1dd0/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smiley-4.png
Type: image/png
Size: 822 bytes
Desc: not available
Url : http://ntlug.org/pipermail/discuss/attachments/20030130/466d1dd0/smiley-4.png
More information about the Discuss
mailing list