I just took over for the old Linux admin...
I'm trying to figure out how to verify if some users who have a home directory 'owner' of their Active Directory Userid are indeed valid users.
So far, I've done:
find . -nouser -type d | grep -v .kde
but the results are less than satisfactory...
Example:
./joe.setty
./joe.setty/src
./joe.setty/us
./joe.setty/us/xx
I'd like just the name on the home directory, without all the subdirectories.
Once that is done, I'd like to pipe the output to a 'finger' command, to see if the user is valid.
Any ideas?
Many thanks!