Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Не запускаеться сервис, пишет Pemission denied. #1023

Open
DRedGuia opened this issue Jan 6, 2025 · 1 comment
Open

Comments

@DRedGuia
Copy link

DRedGuia commented Jan 6, 2025

dredguia@fedora:/opt/zapret$ sudo systemctl start zapret

Job for zapret.service failed because the control process exited with error code.
See "systemctl status zapret.service" and "journalctl -xeu zapret.service" for details.

dredguia@fedora:/opt/zapret$` systemctl status zapret.service

× zapret.service
Loaded: loaded (/usr/lib/systemd/system/zapret.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf, 50-keep-warm.conf
Active: failed (Result: exit-code) since Mon 2025-01-06 17:23:57 MSK; 2s ago
Invocation: 8ba0d101905448ec8929f4b5dfc4ea9d
Process: 8889 ExecStart=/opt/zapret/init.d/sysv/zapret start (code=exited, status=203/EXEC)
Mem peak: 1M
CPU: 3ms

янв 06 17:23:57 fedora systemd[1]: Starting zapret.service...
янв 06 17:23:57 fedora (zapret)[8889]: zapret.service: Unable to locate executable '/opt/zapret/init.d/sysv/zapret': Permission denied
янв 06 17:23:57 fedora (zapret)[8889]: zapret.service: Failed at step EXEC spawning /opt/zapret/init.d/sysv/zapret: Permission denied
янв 06 17:23:57 fedora systemd[1]: zapret.service: Control process exited, code=exited, status=203/EXEC
янв 06 17:23:57 fedora systemd[1]: zapret.service: Failed with result 'exit-code'.
янв 06 17:23:57 fedora systemd[1]: Failed to start zapret.service.

Сделал chmod 777 всей папке, ничего не помогло

@bol-van
Copy link
Owner

bol-van commented Jan 7, 2025

Не надо делать chmod всей папке.
Заново накатите install_easy.sh из другой локации, чтобы он поправил права
Дальше проверьте права на самом /opt

Еще смотрите dmesg
Нет ли ругани selinux (AVC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants