Re: OT: find command permissions: how to exclude dir?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dave Burns wrote:
On Wed, Oct 29, 2008 at 1:34 PM, Frank Cox <theatre@xxxxxxxxxxx> wrote:
On Wed, 29 Oct 2008 12:27:32 -1000
check whether .gvfs is a mounted
filesystem (it probably is).

Yep.

Why can root not access it?
Perhaps because there is no read permission in the mount point?

I created an identical directory with identical permissions, root and
find have no problem with that one. I think the key was mentioned by
Todd - 'the callbacks and such used when referencing it only exist in
the owner's Gnome instance.'

That was me (Rick).

                              Which I take it to mean, when find (as
root) calls some low-level routine, bad things happen.

No, no bad things, but there's no callbacks in place for root to use
to search that filesystem...they only exist in tburns' Gnome instance.

So... bro has no suggestion for a workaround?

Nope.  As soon as find sees that name it'll barf.  It won't stop the
find, just spit out an error.  You could aim stderr to /dev/null if
you want.  Examples:

	[root@bigdog ~]# find /home/rick -name "fred"
	/home/rick/fred
	find: /home/rick/.gvfs: Permission denied

	[root@bigdog ~]# find /home/rick -name "fred" 2>/dev/null
	/home/rick/fred

It ain't pretty, but it'll work.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer                      ricks@xxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
- Millihelen, adj: The amount of beauty required to launch one ship. -
----------------------------------------------------------------------

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux