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

RE: [cobalt-users] Need to change username for files



> 
> chown <username> * -R
> 
> Unfortunately it gives me the error "Operation not permitted"
> 
> Anyone have any ideas?
I believe the command is chown -R ./* 
But beware of giving the command in the wrong directory!

Login
change to the site directory
cd /home/sites/siteid
	(eg /home/sites/site4
or 
cd /home/sites/www.somedomain.ext 
	(eg /home/sites/www.mydomain.com )

then change to super user 
su 
Password: enter it here

now you should have a prompt like this.
[root sitex]#
Give the chown command 
[root sitex]# chown -R username ./*

The reason for using ./* and being in the correct directory
is to avoid changing the entire server contents to that users ownership
which will really really screw things up.

Don't hit the enter key till you have verified the command.

As always, if you abuse the chown command, it will abuse you!

for additional info 
[admin somedir]# man chown
or 
[admin somedir]# chown --help

Paul


--sig 
Agility Systems, Inc.
Developers of www.ourfaqsite.com 

Special Discounts of ourfaqsite.com accounts
for Webmasters up to 60% of the published 
account prices.
For info contact ourfaqsite@xxxxxxxxxxxxxxxxxx