In Progress

Fix an EC2/Linux privilege problem

The first user to come with an elegant and secure solution, which solves this problem gets 10$ and the highest ratings. Please create a [url removed, login to view] username and provide it together with your solution.

I have an Amazon ec2 linux server. Root login is disabled (I do not want to enable this), and instead the username I log in with is ec2-user. From EC2-user I can write su root to get root access.

I have a PHP application running on the server. This PHP application requires that the user "apache" is the owner of the files in that directory. My problem is that I would like to edit these files in WinSCP. WinSCP can only log in using EC2-user, which is not the owner of these files. My solution right now is is to run

chown -R ec2-user phpapp/

When I need to edit and then

chown -R apache phpapp/

When I am finished.

Skills: Linux, System Admin

See more: root amazon ec2 linux, it su, admin linux, fix root, linux server files, amazon apache php, linux need root, linux create login, chown, chown user, enable root, amazon linux php, linux admin apache, linux server problem, linux problem , amazon ec2 apache, linux php login system, apache problem, running apache amazon ec2, php user login ratings, linux write, ec2 php, amazon ec2 php apache, fix linux, admin linux server

About the Employer:
( 165 reviews ) Copenhagen, Denmark

Project ID: #4162614

Awarded to:


Hello, I'm an experienced developer. I can help you on your problem.

$15 USD / hour
(1 Review)

2 freelancers are bidding on average $13/hour for this job


Please check PM

$10 USD / hour
(35 Reviews)