[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Chown multiple files?
- Subject: RE: [cobalt-users] Chown multiple files?
- From: "Rodolfo J. Paiz \(E-mail\)" <rpaiz@xxxxxxxxxxxxxx>
- Date: Wed Dec 20 17:04:33 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> I need to change all the files to ADMIN so I can use FTP. Is
> there a variation of CHOWN that will let me changes all files
> owned by HTTPD to ADMIN in one command? It is a fairly large
> site, so I would like to avoid changing each file individually.
Greg,
Type "man chown" at the command prompt (no quotes) to get the help file for
the chown command. It does support multiple file selection by using
wildcards and it does support recursive operation (on subdirectories). So
yes, you can do exactly what you want with the standard command.
I don't remember exactly and I'm away from my boxen, but I think it's "chown
[options] <newowner> <files>". So try:
chown -R admin *
WARNING, DANGER:
MAKE VERY SURE THAT YOU'RE IN THE SITE FOLDER WHEN YOU DO THIS. ALL FILES IN
THE ACTUAL DIRECTORY AND BELOW WILL NOW BE OWNED BY ADMIN.
--
Rodolfo J. Paiz
rpaiz@xxxxxxxxxxxxxx <mailto:rpaiz@xxxxxxxxxxxxxx>