Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

This has been discussed before herehere.

What I'd like to know is how to turn these:

Recursive chmod only files within this folder:

find . -type f -exec chmod 0600 {} \; 

Recursive chmod only folders within this folder:

find . -type d -exec chmod 0755 {} \; 

into a bash script, so it could be something like:

For files:

rchmodf 744 . 

For directories:

rchmodd 755 . 

and... also maybe into a nautilus right click menu option if that's possible.

This has been discussed before here.

What I'd like to know is how to turn these:

Recursive chmod only files within this folder:

find . -type f -exec chmod 0600 {} \; 

Recursive chmod only folders within this folder:

find . -type d -exec chmod 0755 {} \; 

into a bash script, so it could be something like:

For files:

rchmodf 744 . 

For directories:

rchmodd 755 . 

and... also maybe into a nautilus right click menu option if that's possible.

This has been discussed before here.

What I'd like to know is how to turn these:

Recursive chmod only files within this folder:

find . -type f -exec chmod 0600 {} \; 

Recursive chmod only folders within this folder:

find . -type d -exec chmod 0755 {} \; 

into a bash script, so it could be something like:

For files:

rchmodf 744 . 

For directories:

rchmodd 755 . 

and... also maybe into a nautilus right click menu option if that's possible.

Post Merged (destination) from unix.stackexchange.com/questions/26451/…
Tweeted twitter.com/#!/StackUnix/status/79568152022888448
Source Link
DM8
  • 183
  • 1
  • 1
  • 4

Recursive chmod only folders or only files via script or nautilus menu?

This has been discussed before here.

What I'd like to know is how to turn these:

Recursive chmod only files within this folder:

find . -type f -exec chmod 0600 {} \; 

Recursive chmod only folders within this folder:

find . -type d -exec chmod 0755 {} \; 

into a bash script, so it could be something like:

For files:

rchmodf 744 . 

For directories:

rchmodd 755 . 

and... also maybe into a nautilus right click menu option if that's possible.