'Trying to delete all shared memory and semaphore arrays in ipcs but get permission denied?
Can't find this anywhere online but when trying to delete semaphore arrays and shared memory using ipcrm -m id.
I get this error permission denied for id (<id num>)
. Any reason why?
Solution 1:[1]
From the ipcrm
manual:
In order to delete such objects, you must be superuser, or the creator or owner of the object.
If you, acting as an ordinary user, attempt to remove an IPC object for which you are neither creator or owner (usually both the same account) then permission will be denied. This is what is what you describe.
If you have sudo privileges on the machine then you should be able to engage them to remove others' IPCs. You should rarely, if ever, need to do this, however, because you can already remove your own IPCs, and it is almost never a good idea to remove anyone else's. If you have to ask the question, then you are not experienced enough to distinguish whether it is safe or appropriate to remove IPCs that do not belong to you.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | John Bollinger |