Click to See Complete Forum and Search --> : chmod multiple files at once


crgordon
02-25-2001, 03:12 PM
Yes I am new to linux:} Is there anyway to set the permissions of several files at once? I have over 500 files I want to ftp to my personal pc from my server, but I created them all as root. so is there a way to ftp them under my normal userid? :rolleyes:

Tyr-7BE
02-25-2001, 03:17 PM
chmod --help says that chmod -R will change the mode of files recursively. Not sure if that's EXACTLY what you're looking for, but "man chmod" will tell you a lot more.

dante_d
02-25-2001, 04:01 PM
You can do a chmod 644 * (for example) and it will chmod the whole directories worth of contents.

As long as you have permission to copy the files as a regular user, the copied files will be owned by the 'copier.'