Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering if there is a way to change the owner permissions of a file only is the owner is currently "fred" for example, leave all groups the same.

The reason for this is that I have recently been forced to login to SFTP via a different user and need to update all of the previous owned files to the new user. Although I dont want to change every files permissions.

share|improve this question
up vote 7 down vote accepted

Assuming that you have permission to change ownership, try this:

find /path/to/your/folder -user fred -exec chown <new_user> '{}' \;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.