WebFaction
Community site: login faq

I setup setfacl permission to a user, by doing

setfacl -m u:user:rx ../../../apache2/bin/restart

Giving user access to run the restart script.

but at the user end, he's unable to execute the restart script-

./apache2/bin/restart 
sh: line 0: kill: (346) - Operation not permitted
sh: line 0: kill: (349) - Operation not permitted
sh: line 0: kill: (353) - Operation not permitted
sh: line 0: kill: (357) - Operation not permitted
(98)Address already in use: make_sock: could not bind to address [::]:15552
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:15552
no listening sockets available, shutting down
Unable to open logs

asked 17 Dec '12, 11:43

Prajwal
10611830
accept rate: 33%

edited 17 Dec '12, 12:58


This is because the processes are run as your primary account user. They can not be restarted by a secondary user.

permanent link

answered 17 Dec '12, 13:33

bmeyer71 ♦♦
1.5k3613
accept rate: 33%

is there any workaround to fix this? everytime i have to restart the apache process. Doesn't make much sense.

(17 Dec '12, 13:40) Prajwal

There is no work around. Only root can kill processes started by another user. This is part of the security model of the OS.

(17 Dec '12, 14:54) bmeyer71 ♦♦

http://community.webfaction.com/questions/6213/how-can-i-let-another-user-restart-my-django-apps-apache-server

Solved. ;)

permanent link

answered 22 Dec '12, 07:45

Prajwal
10611830
accept rate: 33%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×64
×11
×7

question asked: 17 Dec '12, 11:43

question was seen: 4,210 times

last updated: 22 Dec '12, 07:45

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM