LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2012, 12:16 AM   #1
hariomp
LQ Newbie
 
Registered: Sep 2012
Posts: 1

Rep: Reputation: Disabled
knowing all files/directories with the 777 file permissons in system running RHEL6


i want to know all those files through out the system that carry 777 file permissons and want to change them as per their usage.I am working on RHEL6 and on HP-UX.Can I do this using any script in one go.Please suggest.
 
Old 09-18-2012, 12:24 AM   #2
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
You can use following to find out the file carry full permissions


find / -type f -perm 0777


To change the permission 777 - 755


$ find /home/arun -type f -perm 777 -print -exec chmod 755 {} \;
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
system call to know the files and directories in pwd ( alternative to ls command ) vlrk Linux - Newbie 1 03-03-2010 06:30 PM
Linpus Fedora after saving files to file system, CAN'T open FILE SYSTEM from desktop! remiwa Fedora 2 01-07-2009 07:28 AM
file permissons mahmoud Linux - Newbie 12 12-25-2008 12:26 AM
777 directories and deleting files? emme0032 Linux - Security 4 10-31-2006 11:27 AM
Changing Ftp Directories Into 777(rwe) rogier1983 Linux - Networking 0 07-28-2005 07:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration