{"id":112359,"date":"2023-12-20T09:10:14","date_gmt":"2023-12-20T07:10:14","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/ispolzovanie-ssh-poverh-unix-soketa-vmesto-sudo-dlya-izbavleniya-ot-suid-fajlov"},"modified":"2023-12-20T09:10:14","modified_gmt":"2023-12-20T07:10:14","slug":"ispolzovanie-ssh-poverh-unix-soketa-vmesto-sudo-dlya-izbavleniya-ot-suid-fajlov","status":"publish","type":"post","link":"https:\/\/prohoster.info\/sq\/blog\/novosti-interneta\/ispolzovanie-ssh-poverh-unix-soketa-vmesto-sudo-dlya-izbavleniya-ot-suid-fajlov","title":{"rendered":"P\u00ebrdorimi i SSH mbi socket-in UNIX n\u00eb vend t\u00eb sudo p\u00ebr t\u00eb eliminuar skedar\u00ebt suid","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>\u0422\u0438\u043c\u043e\u0442\u0438 \u0420\u0430\u0432\u044c\u0435 (Timothee Ravier) \u0438\u0437 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Red Hat, \u043c\u044d\u0439\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 Fedora Silverblue \u0438 Fedora Kinoite, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0445\u043e\u0434\u0430 \u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u044b sudo, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0439  suid-\u0431\u0438\u0442 \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439. \u0412\u043c\u0435\u0441\u0442\u043e sudo \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434 \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 root \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 ssh \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u043c \u043a \u0442\u043e\u0439 \u0436\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0447\u0435\u0440\u0435\u0437 UNIX-\u0441\u043e\u043a\u0435\u0442 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 SSH-\u043a\u043b\u044e\u0447\u0435\u0439.    <\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 ssh \u0432\u043c\u0435\u0441\u0442\u043e sudo \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 suid-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0438 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c  \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u0445\u043e\u0441\u0442-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043d\u0443\u044e \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u044e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a Fedora Silverblue, Fedora Kinoite,  Fedora Sericea \u0438 Fedora Onyx. \u0414\u043b\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u0439 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 USB-\u0442\u043e\u043a\u0435\u043d\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Yubikey).     <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 OpenSSH \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0447\u0435\u0440\u0435\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 Unix-\u0441\u043e\u043a\u0435\u0442 (\u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 sshd \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u0444\u0430\u0439\u043b\u043e\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438):    <\/p>\n<p>\/etc\/systemd\/system\/sshd-unix.socket:       [Unit]     Description=OpenSSH Server Unix Socket     Documentation=man:sshd(8) man:sshd_config(5)       [Socket]     ListenStream=\/run\/sshd.sock     Accept=yes       [Install]     WantedBy=sockets.target      <\/p>\n<p>\/etc\/systemd\/system\/sshd-unix@.service:       [Unit]     Description=OpenSSH per-connection server daemon (Unix socket)     Documentation=man:sshd(8) man:sshd_config(5)     Wants=sshd-keygen.target     After=sshd-keygen.target       [Service]     ExecStart=-\/usr\/sbin\/sshd -i -f \/etc\/ssh\/sshd_config_unix     StandardInput=socket      <\/p>\n<p>\/etc\/ssh\/sshd_config_unix:       # \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043f\u043e \u043a\u043b\u044e\u0447\u0430\u043c     PermitRootLogin prohibit-password     PasswordAuthentication no     PermitEmptyPasswords no     GSSAPIAuthentication no       # \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c     AllowUsers root adminusername       # \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 .ssh\/authorized_keys (\u0431\u0435\u0437 .ssh\/authorized_keys2     AuthorizedKeysFile .ssh\/authorized_keys       # \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c sftp     Subsystem sftp \/usr\/libexec\/openssh\/sftp-server      <\/p>\n<p>\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u044e\u043d\u0438\u0442 systemd:       sudo systemctl daemon-reload     sudo systemctl enable &#8212;now sshd-unix.socket      <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0432\u043e\u0439 SSH-\u043a\u043b\u044e\u0447 \u0432 \/root\/.ssh\/authorized_keys    <\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 SSH-\u043a\u043b\u0438\u0435\u043d\u0442\u0430.    <\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 socat:       sudo dnf install socat      <\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u044f\u0435\u043c \/.ssh\/config, \u0443\u043a\u0430\u0437\u0430\u0432 socat \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u043e\u043a\u0441\u0438 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0447\u0435\u0440\u0435\u0437 UNIX-\u0441\u043e\u043a\u0435\u0442:       Host host.local         User root         # \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \/run\/host\/run \u0432\u043c\u0435\u0441\u0442\u043e \/run \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432         ProxyCommand socat &#8212; UNIX-CLIENT:\/run\/host\/run\/sshd.sock           # \u041f\u0443\u0442\u044c \u043a SSH-\u043a\u043b\u044e\u0447\u0443         IdentityFile ~\/.ssh\/keys\/localroot           # \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 TTY \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438         RequestTTY yes           # \u0423\u0431\u0438\u0440\u0430\u0435\u043c \u043b\u0438\u0448\u043d\u0438\u0439 \u0432\u044b\u0432\u043e\u0434         LogLevel QUIET    <\/p>\n<p>\u0412 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u0432\u0438\u0434\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c adminusername \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 root \u0431\u0435\u0437 \u0432\u0432\u043e\u0434\u0430 \u043f\u0430\u0440\u043e\u043b\u044f. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443:       $ ssh host.local     [root ~]#      <\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0432 bash \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c sudohost \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 &#171;ssh host.local&#187; \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441 sudo:       sudohost() {         if [[ ${#} -eq 0 ]]; then             ssh host.local &#171;cd &#92;&#187;${PWD}&#92;&#187;; exec &#92;&#187;${SHELL}&#92;&#187; &#8212;login&#187;         else             ssh host.local &#171;cd &#92;&#187;${PWD}&#92;&#187;; exec &#92;&#187;${@}&#92;&#187;&#187;         fi      }    <\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:       $ sudohost id     uid=0(root) gid=0(root) groups=0(root)       <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u0439 \u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0434\u0432\u0443\u0445\u0444\u0430\u043a\u0442\u043e\u0440\u043d\u0443\u044e \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e, \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0449\u0443\u044e \u0434\u043e\u0441\u0442\u0443\u043f \u043a root \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u0432\u0441\u0442\u0430\u0432\u043a\u0435 USB-\u0442\u043e\u043a\u0435\u043d\u0430 Yubikey.    <\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u043a\u0430\u043a\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442  \u0438\u043c\u0435\u044e\u0449\u0438\u0439\u0441\u044f Yubikey:       lsusb -v 2>\/dev\/null | grep -A2 Yubico | grep &#171;bcdDevice&#187; | awk &#8216;{print $2}&#8217;    <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u043e 5.2.3 \u0438\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c ed25519-sk \u043f\u0440\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043b\u044e\u0447\u0435\u0439, \u0438\u043d\u0430\u0447\u0435 &#8212; ecdsa-sk:       ssh-keygen -t ed25519-sk  \u0438\u043b\u0438     ssh-keygen -t ecdsa-sk    <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447 \u0432 \/root\/.ssh\/authorized_keys    <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0443 \u043a \u0442\u0438\u043f\u0443 \u043a\u043b\u044e\u0447\u0430 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e sshd:    \/etc\/ssh\/sshd_config_unix:       PubkeyAcceptedKeyTypes sk-ecdsa-sha2-nistp256@openssh.com,sk-ssh-ed25519@openssh.com    <\/p>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a Unix-\u0441\u043e\u043a\u0435\u0442\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0432\u044b\u0448\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 (\u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 &#8212; adminusername). \u0412 \/etc\/systemd\/system\/sshd-unix.socket \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c:       [Socket]     &#8230;     SocketUser=adminusername     SocketGroup=adminusername     SocketMode=0660<br \/>\n<br \/>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=60317\">opennet.ru<\/a> <\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0422\u0438\u043c\u043e\u0442\u0438 \u0420\u0430\u0432\u044c\u0435 (Timothee Ravier) \u0438\u0437 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Red Hat, \u043c\u044d\u0439\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 Fedora Silverblue \u0438 Fedora Kinoite, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0445\u043e\u0434\u0430 \u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u044b sudo, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0439 suid-\u0431\u0438\u0442 \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439. \u0412\u043c\u0435\u0441\u0442\u043e sudo \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434 \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 root \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 ssh \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u043c \u043a \u0442\u043e\u0439 \u0436\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0447\u0435\u0440\u0435\u0437 UNIX-\u0441\u043e\u043a\u0435\u0442 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-112359","post","type-post","status-publish","format-standard","hentry","category-novosti-interneta"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0422\u0438\u043c\u043e\u0442\u0438 \u0420\u0430\u0432\u044c\u0435 (Timothee Ravier) \u0438\u0437 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Red Hat, \u043c\u044d\u0439\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 Fedora Silverblue \u0438 Fedora Kinoite, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0445\u043e\u0434\u0430 \u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u044b sudo, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0439 suid-\u0431\u0438\u0442 \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439. \u0412\u043c\u0435\u0441\u0442\u043e sudo \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434 \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 root \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 ssh \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u043c \u043a \u0442\u043e\u0439 \u0436\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0447\u0435\u0440\u0435\u0437 UNIX-\u0441\u043e\u043a\u0435\u0442 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/sq\/blog\/novosti-interneta\/ispolzovanie-ssh-poverh-unix-soketa-vmesto-sudo-dlya-izbavleniya-ot-suid-fajlov\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"sq_AL\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 SSH \u043f\u043e\u0432\u0435\u0440\u0445 UNIX-\u0441\u043e\u043a\u0435\u0442\u0430 \u0432\u043c\u0435\u0441\u0442\u043e sudo \u0434\u043b\u044f \u0438\u0437\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0442 suid-\u0444\u0430\u0439\u043b\u043e\u0432 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0422\u0438\u043c\u043e\u0442\u0438 \u0420\u0430\u0432\u044c\u0435 (Timothee Ravier) \u0438\u0437 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Red Hat, \u043c\u044d\u0439\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 Fedora Silverblue \u0438 Fedora Kinoite, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0445\u043e\u0434\u0430 \u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u044b sudo, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0439 suid-\u0431\u0438\u0442 \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439. \u0412\u043c\u0435\u0441\u0442\u043e sudo \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434 \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 root \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 ssh \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u043c \u043a \u0442\u043e\u0439 \u0436\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0447\u0435\u0440\u0435\u0437 UNIX-\u0441\u043e\u043a\u0435\u0442 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/sq\/blog\/novosti-interneta\/ispolzovanie-ssh-poverh-unix-soketa-vmesto-sudo-dlya-izbavleniya-ot-suid-fajlov\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-12-20T07:10:14+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-12-20T07:10:14+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47P\u00ebrdorimi i SSH mbi UNIX-soket n\u00eb vend t\u00eb sudo p\u00ebr t\u00eb eliminuar skedar\u00ebt suid | ProHoster","description":"Timothee Ravier nga kompania Red Hat, mbajt\u00ebsi i projekteve Fedora Silverblue dhe Fedora Kinoite, propozoi nj\u00eb m\u00ebnyr\u00eb p\u00ebr t'u larguar nga p\u00ebrdorimi i utilitarit sudo, i cili p\u00ebrdor bitin suid p\u00ebr t\u00eb rritur privilegjet. N\u00eb vend t\u00eb sudo p\u00ebr t\u00eb ekzekutuar komanda me t\u00eb drejta root nga nj\u00eb p\u00ebrdorues i zakonsh\u00ebm, sugjerohet t\u00eb p\u00ebrdoret utilitari ssh me lidhje lokale n\u00eb t\u00eb nj\u00ebjt\u00ebn sistem p\u00ebrmes nj\u00eb UNIX-socket dhe verifikimin e autoriteteve mbi baz\u00ebn e","canonical_url":"https:\/\/prohoster.info\/sq\/blog\/novosti-interneta\/ispolzovanie-ssh-poverh-unix-soketa-vmesto-sudo-dlya-izbavleniya-ot-suid-fajlov","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"sq_AL","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 SSH \u043f\u043e\u0432\u0435\u0440\u0445 UNIX-\u0441\u043e\u043a\u0435\u0442\u0430 \u0432\u043c\u0435\u0441\u0442\u043e sudo \u0434\u043b\u044f \u0438\u0437\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0442 suid-\u0444\u0430\u0439\u043b\u043e\u0432 | ProHoster","og:description":"\u0422\u0438\u043c\u043e\u0442\u0438 \u0420\u0430\u0432\u044c\u0435 (Timothee Ravier) \u0438\u0437 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Red Hat, \u043c\u044d\u0439\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 Fedora Silverblue \u0438 Fedora Kinoite, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0445\u043e\u0434\u0430 \u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u044b sudo, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0439 suid-\u0431\u0438\u0442 \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439. \u0412\u043c\u0435\u0441\u0442\u043e sudo \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434 \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 root \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 ssh \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u043c \u043a \u0442\u043e\u0439 \u0436\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0447\u0435\u0440\u0435\u0437 UNIX-\u0441\u043e\u043a\u0435\u0442 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435","og:url":"https:\/\/prohoster.info\/sq\/blog\/novosti-interneta\/ispolzovanie-ssh-poverh-unix-soketa-vmesto-sudo-dlya-izbavleniya-ot-suid-fajlov","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2023-12-20T07:10:14+00:00","article:modified_time":"2023-12-20T07:10:14+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":[],"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/112359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/comments?post=112359"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/112359\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media?parent=112359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/categories?post=112359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/tags?post=112359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}