RE: Searching through Directories and Files.

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

 



Thats not great either ;), try this

find . -perm 700 -exec ls -l {} \; | awk '$4 != "projects" {print $NF}'

Could put a bit of a load on the server tho if there's a big dir heirarchy with lots of files.



> -----Original Message-----
> From: Lunt, Nick 
> Sent: 04 July 2006 11:43
> To: General Red Hat Linux discussion list
> Subject: RE: Searching through Directories and Files.
> 
> 
> Oops that prints files owned by group 'projects'.
> 
> To find ones NOT owned by projects you could try this:
> 
> find . -perm 700 -group any_other_legit_group
> 
> Nick .
> 
> > -----Original Message-----
> > From: Lunt, Nick 
> > Sent: 04 July 2006 11:40
> > To: General Red Hat Linux discussion list
> > Subject: RE: Searching through Directories and Files.
> > 
> > 
> > Hi Andrew,
> > 
> > > -----Original Message-----
> > > From: Andrew.Bridgeman@xxxxxxxxxxxxxx
> > > [mailto:Andrew.Bridgeman@xxxxxxxxxxxxxx]
> > > Sent: 04 July 2006 11:39
> > > To: redhat-list@xxxxxxxxxx
> > > Subject: Searching through Directories and Files.
> > > 
> > > 
> > > 
> > > 
> > > Hello,
> > >              I am currently running many Redhat machines and 
> > > wondered if
> > > someone could give the correct command to  recursively find 
> > > out which Files
> > > and Directories have not got rwx in the group permission's 
> > for example
> > > things like rwx- - - - - - and also i need to find out which 
> > > directories do
> > > not have the group set to "projects" group. Any help would be much
> > > appreciated.
> > 
> > 
> > You can try this:
> > 
> > find . -group projects -perm 700
> > 
> > or modify it to suit your needs.
> > 
> > Nick .
> > 
> > "wesleyan.co.uk" is the email address for the Wesleyan group 
> > of companies which includes the following firms :-
> > 
> > Wesleyan Assurance Society* (registered no. ZC145) which is a 
> > life and pensions product provider.
> > 
> > Wesleyan Financial Services Limited* (registered no. 1651212) 
> > which provides an advisory service on investments, pensions, 
> > protection and general insurance business through its 
> > Wesleyan Medical Sickness, Wesleyan for Teachers, Wesleyan 
> > Insurance Services and Wesleyan Financial Services divisions.
> > 
> > Wesleyan Unit Trust Managers Limited* (registered no. 
> > 2114859) which is an ISA/ Unit Trust Manager. ("WUTM ").
> > 
> > Wesleyan Savings Bank Ltd* (registered no. 2839202) which is 
> > a retail bank.
> > 
> > * Authorised and regulated by the Financial Services Authority.
> > 
> > Address: Colmore Circus, Birmingham B4 6AR Telephone  0845 351 2352.
> > Website address: www.wesleyan.co.uk.
> > 
> > WUTM's Administration Centre is PO Box 9033, Chelmsford, SM99 
> > 2WQ Dedicated Telephone 0870 601 6129.
> > 
> > All telephone calls may be recorded for monitoring and 
> > training purposes.
> > 
> > CONFIDENTIALITY NOTICE
> > 
> > This communication and the information it contains is 
> > intended for the person or organisation to whom it is 
> > addressed. Its contents are confidential and may be 
> protected in law.
> > 
> > Unauthorised use, copying or disclosure of any of it may be 
> > unlawful. If you are not the intended recipient, please 
> > contact us immediately.
> > 
> > The contents of any attachments in this email may contain 
> > software viruses, which could damage your own computer 
> > system. While every reasonable precaution to minimise the 
> > risk has been taken, we cannot accept liability for any 
> > damage that you sustain as a result of procedure before 
> > opening any attachment.
> > 
> > 
> > -- 
> > redhat-list mailing list
> > unsubscribe 
> mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> > https://www.redhat.com/mailman/listinfo/redhat-list
> > 
> > 
> > 
> > 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 
> 
> 
> 

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux