Skip to content

nixCraft

Linux and Unix tutorials for new and seasoned sysadmin

  • Home
  • About
  • Linux Shell Scripting TutoriaL
  • RSS/Feed
  • Donations
Search

nixCraft

Linux and Unix tutorials for new and seasoned sysadmin

nixCraft

Tag: 0777

Linux / UNIX: Change File Permissions Recursively ( conditional )

in Categories BASH Shell, Debian / Ubuntu, File system, FreeBSD, Linux, Solaris, Suse, Ubuntu Linux, UNIX last updated July 9, 2015

How do I recursively change files with 777 permissions to 755 in /home/user/demo directory? I have a number of files in this directory and I need to change permission from 0777 to only if that file has 777 permissions. Is there an easy way out to achieve this?

20 Comments

Featured Articles:

  • 30 Cool Open Source Software I Discovered in 2013
  • 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
  • Top 30 Nmap Command Examples For Sys/Network Admins
  • 25 PHP Security Best Practices For Sys Admins
  • 20 Linux System Monitoring Tools Every SysAdmin Should Know
  • 20 Linux Server Hardening Security Tips
  • Linux: 20 Iptables Examples For New SysAdmins
  • Top 20 OpenSSH Server Best Security Practices
  • Top 20 Nginx WebServer Best Security Practices
  • 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
  • 15 Greatest Open Source Terminal Applications Of 2012
  • My 10 UNIX Command Line Mistakes
  • Top 10 Open Source Web-Based Project Management Software
  • Top 5 Email Client For Linux, Mac OS X, and Windows Users
  • The Novice Guide To Buying A Linux Laptop

Sign up for my newsletter

Sign up for my newsletter

Follow us

TwitterFacebookGoogle+



RSS Recently updated

  • How To Use Bash Parameter Substitution Like A Pro
  • How To Run Multiple SSH Command On Remote Machine And Exit Safely
  • Delete all root mail / inbox on Linux / Unix from a shell prompt
  • How to use lftp to accelerate ftp/https download speed on Linux/UNIX
  • How To Recover Linux Grub Boot Loader Password
  • OpenBSD install or add binary software package using pkg_add
  • How to use yum-cron to automatically update RHEL/CentOS Linux
  • Download Tux Paint Program For Young Children (Linux/macOS/Windows)
  • Linux Find Out Last System Reboot Time and Date Command
  • Linux wget: Your Ultimate Command Line Downloader
nixCraft @2000-2018 nixCraft. All rights reserved.
  • PRIVACY
  • TERM OF SERVICE
  • CONTACT/EMAIL
  • DONATIONS
Hosted by Linode
DNS & CDN by Cloudflare
Designed and Developed by Prospect One