Hi guys.My linux shell is a little bit rusty.So here is the problem:two users using FTP/SSH on the same group. I'm trying to change the the owner from one user to the other, using chown -R user2 *but every time I try, I get an error. any ideas? isnt this permitted on DH?
-- BUGabundo :o)(-_-´´)http://BrinKadeiraS.BUGabundo.netat http://www.dreamhost.com/r.cgi?24919550$ discount with promo code "BUG50" on ALL plans
You are doing it correctly, but it won't work on Dreamhost. an excerpt from the Dreamhost Wiki article on Unix File Permissions says:
So, without being superuser, you can't run chown on Dreamhost. Maybe the suggested "workaround" will do in a pinch?
guess i'll have to copy them with user2 and then delete them form user1.thanks!!!I was going mad, 'cause I new that had to be right
EDIT: what can i do to just find and copy files from user2?-- BUGabundo :o)(-_-´´)http://BrinKadeiraS.BUGabundo.netat http://www.dreamhost.com/r.cgi?24919550$ discount with promo code "BUG50" on ALL plans
The linux "find" command has a "-user" option. General format is:
You can also just type "find --help" or "man find" from the shell prompt for more info.
that I knew. but can I pass the results of find to copy?
Couldn't you use find's -exec option to cp the files as they are found?