I am getting numerous find errors: Example /userX is just
example only real account names are being used on system.
# find / \( -path /home -o -path /proc -o -path /var/lib/named/proc \) \
-prune -o -user normal -o -group normal
find: ‘/user1/.gvfs’: Permission denied
find: ‘/user2/.gvfs’: Permission denied
find: ‘/user3/.gvfs’: Permission denied
find: ‘/run/user4/1800/doc’: Permission denied
find: ‘/run/user5/1800/gvfs’: Permission denied
find: ‘/user6/.gvfs’: Permission denied
find: ‘/user7/.gvfs’: Permission denied
find: ‘/user8/.gvfs’: Permission denied
find: ‘/run/user9/1800/doc’: Permission denied
find: ‘/run/user10/1800/gvfs’: Permission denied
I would like to prune the /.gvfs and /run/ Permission denied
problems. Any suggestions welcome and thanks in advance.
Bit Twister <BitTwister@mouse-potato.com>:
I am getting numerous find errors: Example /userX is just
example only real account names are being used on system.
# find / \( -path /home -o -path /proc -o -path /var/lib/named/proc \) \
-prune -o -user normal -o -group normal
find: ‘/user1/.gvfs’: Permission denied
find: ‘/user2/.gvfs’: Permission denied
find: ‘/user3/.gvfs’: Permission denied
find: ‘/run/user4/1800/doc’: Permission denied
find: ‘/run/user5/1800/gvfs’: Permission denied
find: ‘/user6/.gvfs’: Permission denied
find: ‘/user7/.gvfs’: Permission denied
find: ‘/user8/.gvfs’: Permission denied
find: ‘/run/user9/1800/doc’: Permission denied
find: ‘/run/user10/1800/gvfs’: Permission denied
I would like to prune the /.gvfs and /run/ Permission denied
problems. Any suggestions welcome and thanks in advance.
Please describe (i. e. specify) (in plain english words) the
exact criterion to distinguish whether a file or directory should
be found resp. ignored and whether a directory should be
descended into resp. pruned. Consider specifying e. g. the names
and the paths of the pathnames "find" should care of as well as their
ownerships and group memberships and the access rights they should
grant.
Only then will you (or somebody else) be able to set up an
appropriate "find" command.
Bit Twister <BitTwister@mouse-potato.com>:
On Sun, 30 Jul 2023 21:14:39 +0200, Helmut Waitzmann wrote:
Bit Twister <BitTwister@mouse-potato.com>:
I am getting numerous find errors: Example /userX is just
example only real account names are being used on system.
# find / \( -path /home -o -path /proc -o -path /var/lib/named/proc \) \ >>>> -prune -o -user normal -o -group normal
find: ‘/user1/.gvfs’: Permission denied
find: ‘/user2/.gvfs’: Permission denied
find: ‘/user3/.gvfs’: Permission denied
find: ‘/run/user4/1800/doc’: Permission denied
find: ‘/run/user5/1800/gvfs’: Permission denied
find: ‘/user6/.gvfs’: Permission denied
find: ‘/user7/.gvfs’: Permission denied
find: ‘/user8/.gvfs’: Permission denied
find: ‘/run/user9/1800/doc’: Permission denied
find: ‘/run/user10/1800/gvfs’: Permission denied
I would like to prune the /.gvfs and /run/ Permission denied
problems. Any suggestions welcome and thanks in advance.
Please describe (i. e. specify) (in plain english words) the
exact criterion to distinguish whether a file or directory should
be found resp. ignored and whether a directory should be
descended into resp. pruned. Consider specifying e. g. the names
and the paths of the pathnames "find" should care of as well as their
ownerships and group memberships and the access rights they should
grant.
Only then will you (or somebody else) be able to set up an
appropriate "find" command.
Hmm, anyone who can show the appropriate "find" command can see
most of your "Please describe" requirements. The error messages
are what I want ignored, not showed/reported.
If all you want to do is to avoid "find" to run into a lack of
permissions, you could do
find / \
-type d ! \( -exec test -x \{\} \; -exec test -r \{\} \; \) \
! -prune \
-o \
\( -path /home -o -path /proc -o -path /var/lib/named/proc \) \
-prune -o -user normal -o -group normal
That will prevent "find" from trying to descend into any
directory that lacks the search or read permission.
But that will of course hide even errorneously lacking read and
execute permissions on any directory.
-type d ! \( -exec test -x \{\} \; -exec test -r \{\} \; \) \find: ‘/accounts/user_1/.cache/gvfs’: Permission denied
! -prune \
-o \
\( -path /home -o -path /proc -o -path /var/lib/named/proc \) \
-prune -o -user normal -o -group normal
On Sun, 30 Jul 2023 21:14:39 +0200, Helmut Waitzmann wrote:
Bit Twister <BitTwister@mouse-potato.com>:
I am getting numerous find errors: Example /userX is just
example only real account names are being used on system.
# find / \( -path /home -o -path /proc -o -path /var/lib/named/proc \) \ >>> -prune -o -user normal -o -group normal
find: ‘/user1/.gvfs’: Permission denied
find: ‘/user2/.gvfs’: Permission denied
find: ‘/user3/.gvfs’: Permission denied
find: ‘/run/user4/1800/doc’: Permission denied
find: ‘/run/user5/1800/gvfs’: Permission denied
find: ‘/user6/.gvfs’: Permission denied
find: ‘/user7/.gvfs’: Permission denied
find: ‘/user8/.gvfs’: Permission denied
find: ‘/run/user9/1800/doc’: Permission denied
find: ‘/run/user10/1800/gvfs’: Permission denied
I would like to prune the /.gvfs and /run/ Permission denied
problems. Any suggestions welcome and thanks in advance.
Please describe (i. e. specify) (in plain english words) the
exact criterion to distinguish whether a file or directory should
be found resp. ignored and whether a directory should be
descended into resp. pruned. Consider specifying e. g. the names
and the paths of the pathnames "find" should care of as well as their
ownerships and group memberships and the access rights they should
grant.
Only then will you (or somebody else) be able to set up an
appropriate "find" command.
Hmm, anyone who can show the appropriate "find" command can see
most of your "Please describe" requirements. The error messages
are what I want ignored, not showed/reported.
On Mon, 31 Jul 2023 05:30:47 +0200, Helmut Waitzmann wrote:
No joy here, Still getting Permission denied. :(
# find / \
-type d ! \( -exec test -x \{\} \; -exec test -r \{\} \; \) \find: ‘/accounts/user_1/.cache/gvfs’: Permission denied
! -prune \
-o \
\( -path /home -o -path /proc -o -path /var/lib/named/proc \) \
-prune -o -user normal -o -group normal
find: ‘/accounts/user_1/.cache/doc’: Permission denied
find: ‘/run/user/1800/doc’: Permission denied
find: ‘/run/user/1800/gvfs’: Permission denied
Bit Twister <user_1@mouse-potato.com>:
On Mon, 31 Jul 2023 05:30:47 +0200, Helmut Waitzmann wrote:
No joy here, Still getting Permission denied. :(
# find / \
-type d ! \( -exec test -x \{\} \; -exec test -r \{\} \; \) \find: ‘/accounts/user_1/.cache/gvfs’: Permission denied
! -prune \
-o \
\( -path /home -o -path /proc -o -path /var/lib/named/proc \) \
-prune -o -user normal -o -group normal
find: ‘/accounts/user_1/.cache/doc’: Permission denied
find: ‘/run/user/1800/doc’: Permission denied
find: ‘/run/user/1800/gvfs’: Permission denied
I can't see how that "find" command could produce those error
messages. Could you show more context of the "find" invocation?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 498 |
Nodes: | 16 (2 / 14) |
Uptime: | 44:11:21 |
Calls: | 9,800 |
Calls today: | 2 |
Files: | 13,752 |
Messages: | 6,189,748 |