Sponsored Content
Operating Systems OS X (Apple) OS X 'find' nogroup/nouser doesn't traverse directories? Post 302723261 by jnojr on Tuesday 30th of October 2012 06:26:29 PM
Old 10-30-2012
Quote:
Originally Posted by [MA]Flying_Meat
It works under Mountain Lion (10.8.2) traversing the folders and finding items.
It appears to run successfully under Snow Leopard (10.6.8) and Lion (10.7.4) but only reports /dev/fd/3 and /dev/fd/4 are not directories.
The 10.6 and 10.7 find only returned those results, nothing else.

What OS version are you using the command on?
Possible permissions repair issue?
Lion 10.7.5

I've done the repairPermissions thing several times, and there are a bunch of items that it still complains about. I haven't had any call yet to try to figure out what it's comparing permissions against to determine what's "right" and what's "wrong".

---------- Post updated 10-30-12 at 03:26 PM ---------- Previous update was 10-29-12 at 04:09 PM ----------

I'm getting this more and more frequently. It isn't just with -nogroup and -nouser... it happens apparently with any find starting in / and it seems to start happening after I've been fiddling around with finds. At first, I wondered if there was an issue with the fact I was using PuTTY from a Windows machine, especially as a few times I closed a session, opened a new one, and this behavior went away, at least for a while. But it started happening again, and it persists even in a terminal on the Mac. And closing sessions isn't helping. I'm guessing some sort of environmental pollution?

For giggles, I cd'ed to / and ran a find from . and it works, while a find from / fails. So I guess I have a workaround.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Fastest way to traverse through large directories

Hi! I have thousands of sub-directories, and hundreds of thousands of files in them. What is the fast way to find out which files are older than a certain date? Is the "find" command the fastest? Or is there some other way? Right now I have a C script that traverses through and checks... (5 Replies)
Discussion started by: sreedharange
5 Replies

2. Shell Programming and Scripting

find in given path do not want to traverse to its sub-directories

Hi All, My UNIX Version is: OS Name Release Version AIX appma538 3 5 I want to find certain files with some criterias under the given path. At the same time i want to find the files which resides under the given directory, but normal find traverse to its sub-directories... (4 Replies)
Discussion started by: Arunprasad
4 Replies

3. Shell Programming and Scripting

How to find 777 permisson is there or not for Directories and sub-directories

Hi All, I am Oracle Apps Tech guy, I have a requirement to find 777 permission is there or not for all Folders and Sub-folders Under APPL_TOP (Folder/directory) with below conditions i) the directory names should start with xx..... (like xxau,xxcfi,xxcca...etc) and exclude the directory... (11 Replies)
Discussion started by: gagan4599
11 Replies

4. Programming

find() doesn't find '|' for some reason

Here's some sample output and my code follows it. Why can't find() find '|'. It just dosn't make a bit of sense at all. AL01463|Pell City|Saint Clair|B|02115|AL|35125|630|Birmingham (Ann and Tusc)|13890|40|Charter Communications|Fairfield|Charter Communications|2 -1... (1 Reply)
Discussion started by: sepoto
1 Replies

5. Shell Programming and Scripting

PERL - traverse sub directories and get test case results

Hello, I need help in creating a PERL script for parsing test result files to get the results (pass or fail). Each test case execution generates a directory with few files among which we are interested in .result file. Lets say Testing is home directory. If i executed 2 test cases. It will... (4 Replies)
Discussion started by: ravi.videla
4 Replies

6. UNIX for Dummies Questions & Answers

Using grep command to find the pattern of text in all directories and sub-directories.

Hi all, Using grep command, i want to find the pattern of text in all directories and sub-directories. e.g: if i want to search for a pattern named "parmeter", i used the command grep -i "param" ../* is this correct? (1 Reply)
Discussion started by: vinothrajan55
1 Replies

7. Shell Programming and Scripting

Why doesn't this Bash shell compile directories?

Hello I'm having a problem trying to get this Bash shell program to function properly. Purpose: In the current directory, more into the sub-directories and compile the .c files. Heres my code: #!/bin/bash wd=$(pwd) for i do cd ${i} gcc *.c cd $wd done Then I save it... (8 Replies)
Discussion started by: murphy
8 Replies

8. Shell Programming and Scripting

Traverse through directories

Hi all, Require help in completing a shell script. i do have a total of 90 directories where in we have different sub-directories and one of the sub directory named logs I need to go inside the logs subdirectory and check if a particular log is present or not. for example below is the... (3 Replies)
Discussion started by: bhaskar t
3 Replies

9. Shell Programming and Scripting

Move directories in script.sh doesn't work

Dear All, I would like move some directories in another location. Basically, my ls -lis drwxr-xr-x 3 XXXXXXXXXXXXXXXXXXXX 4096 Feb 24 02:18 data.N701_N502.ABCDE -rw-r--r-- 1 XXXXXXXXXXXXXXXXXXXX 185865797 Feb 23 11:27 data.N701_N502.ABCDE_file1 -rw-r--r-- 1 XXXXXXXXXXXXXXXXXXXX... (2 Replies)
Discussion started by: giuliangiuseppe
2 Replies

10. Shell Programming and Scripting

Find a pattern and traverse left and pick something from another pattern

I have a Text like below , Detailed Table Information Table(tableName:a1, dbName:default, owner:eedc_hdp_s_d-itm-e, createTime:1520514151, lastAccessTime:0, retention:0, sd:StorageDescriptor(cols:, location:hdfs://DBDP-Dev/apps/hive/warehouse/a1,... (6 Replies)
Discussion started by: nv186000
6 Replies
PWCACHE(3)						   BSD Library Functions Manual 						PWCACHE(3)

NAME
pwcache -- cache password and group entries LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <pwd.h> char * user_from_uid(uid_t uid, int nouser); #include <grp.h> char * group_from_gid(gid_t gid, int nogroup); DESCRIPTION
The user_from_uid() function returns the user name associated with the argument uid. The user name is cached so that multiple calls with the same uid do not require additional calls to getpwuid(3). If there is no user associated with the uid, a pointer is returned to a string rep- resentation of the uid, unless the argument nouser is non-zero, in which case a NULL pointer is returned. The group_from_gid() function returns the group name associated with the argument gid. The group name is cached so that multiple calls with the same gid do not require additional calls to getgrgid(3). If there is no group associated with the gid, a pointer is returned to a string representation of the gid, unless the argument nogroup is non-zero, in which case a NULL pointer is returned. SEE ALSO
getgrgid(3), getpwuid(3) HISTORY
The user_from_uid() and group_from_gid() functions first appeared in 4.4BSD. BSD
June 9, 1993 BSD
All times are GMT -4. The time now is 11:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy