S
S
sebol2020-12-23 14:09:58
linux
sebol, 2020-12-23 14:09:58

When running an .exe file via mono in the terminal, an insufficient privileges error pops up?

Good day!
I work with Ubuntu 14.04 OS.
When you run the .exe file through mono, the terminal gets an error of insufficient privileges, please tell me, what could be the reason for this?
I start it with the command sudo /usr/bin/mono /home/..../...../AutoStartApplication.exe
In 99% of cases, the launch works correctly, but sometimes this error pops up and the launch of the command is almost impossible to execute through AutoStartApplication.exe
Launching by double-clicking in MidnightCommander on Application.exe starts the program without problems
. All rights and owners are correct. A temporary solution was to run via crontab (*/5 * * * * root sudo /usr/bin/mono /home/.../.../AutoStartApplication.exe >/dev/null 2>&1 ), but recently and it doesn't help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vreitech, 2020-12-23
@fzfx

presumably, after launching the program, it tries to access some object in the file system via a relative path, and the start directory in this case will be the directory in which the command to start the program was given.
in the case of midnight commander, everything is simple - this is the directory in which the program itself is located. in the case of a manual launch, it all depends on which directory the person went into before. and in the case of cron, this will be the home directory of the user under which the program is launched (in your case, apparently, root).
apparently in the last two cases there is no required access to the object (due to the absence of the object or some rights to it) - hence the problems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question