[Novalug] VVDQ chown
Tux subscriber Dave Aronson
tux2dave at davearonson.com
Wed Feb 7 13:44:23 EST 2007
Beartooth [mailto:karhunhammas at Lserv.com] writes:
If I grok right, what you want to do is move a bunch of files from ~root to ~btth, and have them owned by btth. Some of these files are dirs, and all of the files, including what's in those dirs, is now all owned by root. Right?
This is doable in two steps. In one, you have to change the ownership of the files from root to btth. In the other, you have to move it.
It shouldn't matter what order you do these in. You'll have to do them both as root. (You could possibly *copy* them as btth, but not *move* them, which is more efficient, nor then delete the original out of ~root.)
To change ownership, do basically the same as before, when you did:
> [root at localhost ~]# chown -R btth:btth /home/btth
except you want to change the target. Instead of doing it to /home/btth, you want to do it to those files you want to move. So, that would be:
chown -R btth:btth FC-6-*
(while you're root, and in the same dir as the files.) To move them, you got that right:
> I *think* I can simply do "mv FC-6-* /home/btth" to get
> the lot (and nothing else). Right?
assuming you want to put those files directly in your home directory. Since mv moves files, not just copies them, this implies deleting the directory entries out of ~root, so you'd have to do this as root.
More information about the Novalug