[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Site admin privileges... what happened? How to fix?
- Subject: Re: [cobalt-users] Site admin privileges... what happened? How to fix?
- From: "Steven Werby" <steven-lists@xxxxxxxxxxxx>
- Date: Tue Aug 1 17:38:44 2000
Mark G. Castillo <mark@xxxxxxxxxxxxxxxx> wrote:
> 2. You can telnet in and chown all the files. I don't know if wildcards
> work here, but why not try it? You will have to login as root. You can
> always go back and do step 1.
Yes, wildcards will work, but in this case the poster needs to just use the "-R"
(recursive) flag with the "chown" program.
Zero Z. Batzell Dean wrote:
> I accidentally instructed with admin privileges to upload their site pages
> to "site1", when I meant "site2".
>
> In order to keep them from having to re-upload their files to "site2", I
> telnetted in as admin and copied the files from "site1" to "site2".
Zero, you can use the "chown" command to change the ownership of the files. The
files should be owned by:
httpd:site2 or [siteadmin]:site2 (if the user uses FrontPage it will need to be
the former, otherwise the latter)
To change the ownership of all of the files in the site's web directory do:
cd /home/sites/site2
chown -R [siteadmin]:site2 web
You can repeat the process on other directories, but if the site has any other
users with directories in /home/sites/site2/users do:
chown -R [username]:site2 users/[username] or the user won't be able to access
his/her files in that directory.
Also, take a look at the ownership of other files in sites on your server to
better understand the proper file ownerships. Use:
"ls -al" to do so (-l flag shows long file format, -a shows files beginning with
a "." also, -R is recursive and might be useful, too).
Steven Werby {steven-lists@xxxxxxxxxxxx}