LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 01: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, 01: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:30 PM
Linpus Fedora after saving files to file system, CAN'T open FILE SYSTEM from desktop! remiwa Fedora 2 01-07-2009 08:28 AM
file permissons mahmoud Linux - Newbie 12 12-25-2008 01:26 AM
777 directories and deleting files? emme0032 Linux - Security 4 10-31-2006 12:27 PM
Changing Ftp Directories Into 777(rwe) rogier1983 Linux - Networking 0 07-28-2005 08:56 AM


All times are GMT -5. The time now is 01:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration