Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

When I ssh into my server I log in under root or my user on the system.

However, when I checkout from my svn repos then are then owned by either root or my user, and therefore all files deployed to my server come up with a 500 error on the server with the message "UID of script is less than MIN_UID".

When I FTP files to the server they are owned by user "Sites" so is there any way I can log in under root or my user and checkout files that are owned by "Sites".

What I don't really want to have to do is to have to manually chown all the files every time I checkout or update. I'd like it to happen automatically (or have to do it just the once on checkout).

Is there any way to do this?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Try this in front of your svn commands:

sudo -u Sites
share|improve this answer

Your Answer

 
discard

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.