[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] How to delete a user with files in web site dir.? 550
- Subject: RE: [cobalt-users] How to delete a user with files in web site dir.? 550
- From: "Tunc Eresen\(?`..,,.-> Cobalt M447785363481 " <tunceresen@xxxxxxxxxx>
- Date: Thu Nov 6 21:49:01 2003
- Organization: FINDMENET.COM
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Subject: Re: [cobalt-users] How to delete a user with files in web site
dir.? 550
"Tunc Eresen(?`..,,.-> Cobalt M447785363481 " wrote:
>
> I am getting following message when I tried delete a user, How can I
> reassign the ownership?
>
> " This user owns files that are under the site's directory but not in
> the user's home directory that you may want to keep. You must delete
> these files or reassign the ownership to another user before deleting this
user. "
>
> Best Regards
> Tunc
> Tunc AT eresen DOT com
First verify the locations of owned files for the USER by using the 'find'
command and the path for the directory of the virtual domain.
type: find /home/sites/www.DOMAINNAME.COM/web/ -user USERNAME
This should list all of the USER owned files in this web directory and
subdirectories.
OR
type: find / -user USERNAME
This should list all of the USER owned files on the Raq550.
Change ownership with the 'chown' command. (NOTE: Be sure that you are in a
virtual site directory and not in a higher level like root.) In a directory
type: chown nobody *
This will change all files to be owned by 'nobody'
OR
type: chown -R nobody *
This will change all files and subdirectories to be owned by 'nobody'
(BE CAREFUL HERE)
These are just a few examples. You can get more information on these two
commands by using 'man find' and 'man chown' from the command line on your
raq550.
I hope that this helps.
John Gorena
----
I will test it this weekend
Thanks
Tunc