[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Chown multiple files?



As a general rule I tend to specify the file or directory location.  If your
not paying attention its easy to forget where you are!  If you accidently
chown all your files to admin you will end up in painful shape!

chown -R username fileordirectoryname

if you only wish to chown a single file remove the -R

chown username fileordirectoryname

Thank you,

Michael T. Ross
----- Original Message -----
From: "Rodolfo J. Paiz (E-mail)" <rpaiz@xxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Wednesday, December 20, 2000 4:24 PM
Subject: RE: [cobalt-users] Chown multiple files?


> > 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>
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
>