0

I'm developing application that is installing in /opt folder. My application fetches .zip file and tries to write in /opt/myprogram/ but it is failing due to permission issues. If I run as root it will work. So how can I create Deb package such that it has full read and write permission for that user under /opt/myprogram

  • What do you mean by "that user"? The program will run with the privileges of whoever invokes it, so you seem to be asking how to make a system directory world-writable, which obviously is not good practice. – tripleee Feb 08 '19 at 05:05
  • A good workaround might be to have a simple downloader component which runs once when you install the package, and then periodically from a system crontab as root. – tripleee Feb 08 '19 at 05:06
  • "That user" running user – Virupaksha H Feb 11 '19 at 10:59

0 Answers0