nouser and nogroup keywords not working

2 posts / 0 new
Last post
#1 Sun, 2017-10-15 01:28
praving5
  • praving5's picture
  • Offline
  • Last seen: 5 months 2 weeks ago
  • Joined: 2017-10-15

Hi,
I want to find unowned and ungrouped files. On other Linux distributions, I use

find / -user nouser
find / -group nogroup

But, the above does not work in Alpine Linux? What are the alternate commands?

I also tried

find / -nouser
find / -nogroup

This does not work as well.

Please help.

Wed, 2017-10-18 23:14
Head_on_a_Stick
  • Head_on_a_Stick's picture
  • Offline
  • Last seen: 1 week 1 day ago
  • Joined: 2016-05-01

Have you installed the findutils package?

I think the stock Alpine system uses a symlink to busybox for `find` (and most other utilities) and the options for that are more limited than the GNU variants.

See also https://wiki.alpinelinux.org/wiki/How_to_get_regular_stuff_working

Log in or register to post comments