--- Paul Taylor <ptaylor@uklinux.net> wrote:
Hi all:
I have a directory on a remote server that I need to change ownership on. The directory has been set as group "wheel" with no owner and file
Of course directories have an owner, root by default.
permissions 644. I want to set it to psaserv in line with all other directories on the server. The files need to be 755 I assume. Hope this makes sense to someone...
I don't fully understand what you're asking, Paul. If you just want to change all files below a certain directory, do: find /my_directory -type f -exec chmod 755 {} ; If you wanted to ensure that all files created in a said directory are of a consistent permission, then you need to set an appropriate umask (done by default), and change the perms on the parent directory to something like: chmod u+X /my_directory Does that help? -- Thomas Adam ===== "The Linux Weekend Mechanic" -- http://linuxgazette.net "TAG Editor" -- http://linuxgazette.net "<shrug> We'll just save up your sins, Thomas, and punish you for all of them at once when you get better. The experience will probably kill you. :)" -- Benjamin A. Okopnik (Linux Gazette Technical Editor) ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com