{"id":1184,"date":"2025-05-28T14:12:57","date_gmt":"2025-05-28T12:12:57","guid":{"rendered":"https:\/\/baptistetellier.fr\/?p=1184"},"modified":"2025-05-28T14:13:49","modified_gmt":"2025-05-28T12:13:49","slug":"script-for-granular-sudo-permissions-in-pve","status":"publish","type":"post","link":"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/","title":{"rendered":"Script for Granular sudo Permissions in PVE"},"content":{"rendered":"<p>Salut la team,<\/p>\n<p>Depuis la version 12.3.1 vous pouvez configurer un compte user pour ajouter un hyperviseur Proxmox dans Veeam Backup &amp; Replication. Le d\u00e9tail est expliqu\u00e9 dans la KB suivante : <a href=\"https:\/\/www.veeam.com\/kb4701\" target=\"_blank\" rel=\"noopener\">https:\/\/www.veeam.com\/kb4701<\/a><\/p>\n<p>Voici un script a executer sur l&rsquo;hyperviseur PVE pour fluidifier tout cela. Il va cr\u00e9er un user \u00ab\u00a0veeamdep\u00a0\u00bb, vous demander son password puis configurer les bons param\u00e9trages.<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p>#!\/bin\/bash<\/p>\n<p>set -e<\/p>\n<p>USERNAME=\u00a0\u00bbveeamdep\u00a0\u00bb<br \/>\nREALM=\u00a0\u00bbpam\u00a0\u00bb\u00a0 # Change this to the desired auth realm, e.g., \u00ab\u00a0pve\u00a0\u00bb<br \/>\nSUDOERS_FILE=\u00a0\u00bb\/etc\/sudoers.d\/$USERNAME\u00a0\u00bb<br \/>\nLOG_FILE=\u00a0\u00bb\/var\/log\/create_veeam_user.log\u00a0\u00bb<\/p>\n<p># Logging function<br \/>\nlog() {<br \/>\necho \u00ab\u00a0$(date +&rsquo;%Y-%m-%d %H:%M:%S&rsquo;) | $1\u00a0\u00bb | tee -a \u00ab\u00a0$LOG_FILE\u00a0\u00bb<br \/>\n}<\/p>\n<p># Function to securely read password<br \/>\nprompt_password() {<br \/>\nwhile true; do<br \/>\nread -s -p \u00ab\u00a0Enter password for &lsquo;$USERNAME&rsquo;: \u00a0\u00bb PASSWORD<br \/>\necho<br \/>\nread -s -p \u00ab\u00a0Confirm password: \u00a0\u00bb PASSWORD_CONFIRM<br \/>\necho<br \/>\nif [[ -z \u00ab\u00a0$PASSWORD\u00a0\u00bb ]]; then<br \/>\necho \u00ab\u00a0Password cannot be empty. Try again.\u00a0\u00bb<br \/>\nelif [[ \u00ab\u00a0$PASSWORD\u00a0\u00bb != \u00ab\u00a0$PASSWORD_CONFIRM\u00a0\u00bb ]]; then<br \/>\necho \u00ab\u00a0Passwords do not match. Try again.\u00a0\u00bb<br \/>\nelse<br \/>\nbreak<br \/>\nfi<br \/>\ndone<br \/>\n}<\/p>\n<p>log \u00ab\u00a0&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\u00a0\u00bb<br \/>\nlog \u00ab\u00a0Starting user creation script for &lsquo;$USERNAME'\u00a0\u00bb<\/p>\n<p># Ensure sudo and visudo are installed<br \/>\nif ! command -v visudo &amp;&gt;\/dev\/null; then<br \/>\nlog \u00ab\u00a0&lsquo;visudo&rsquo; not found. Installing &lsquo;sudo&rsquo; package&#8230;\u00a0\u00bb<br \/>\napt update &amp;&amp; apt install -y sudo<br \/>\nfi<\/p>\n<p># Prompt for password<br \/>\nprompt_password<\/p>\n<p># Create user<br \/>\nif id \u00ab\u00a0$USERNAME\u00a0\u00bb &amp;&gt;\/dev\/null; then<br \/>\nlog \u00ab\u00a0User &lsquo;$USERNAME&rsquo; already exists. Skipping creation.\u00a0\u00bb<br \/>\nelse<br \/>\nlog \u00ab\u00a0Creating user &lsquo;$USERNAME&rsquo;&#8230;\u00a0\u00bb<br \/>\nuseradd -m -s \/bin\/bash \u00ab\u00a0$USERNAME\u00a0\u00bb<\/p>\n<p>log \u00ab\u00a0Setting password for &lsquo;$USERNAME&rsquo;&#8230;\u00a0\u00bb<br \/>\nENCRYPTED_PASS=$(openssl passwd -6 \u00ab\u00a0$PASSWORD\u00a0\u00bb)<br \/>\necho \u00ab\u00a0$USERNAME:$ENCRYPTED_PASS\u00a0\u00bb | chpasswd -e<br \/>\nfi<\/p>\n<p># Add to sudo group<br \/>\nlog \u00ab\u00a0Adding &lsquo;$USERNAME&rsquo; to the &lsquo;sudo&rsquo; group&#8230;\u00a0\u00bb<br \/>\nusermod -aG sudo \u00ab\u00a0$USERNAME\u00a0\u00bb<\/p>\n<p># Create sudoers file<br \/>\nlog \u00ab\u00a0Creating sudoers file &lsquo;$SUDOERS_FILE&rsquo;&#8230;\u00a0\u00bb<br \/>\ncat &lt;&lt;EOF &gt; \u00ab\u00a0$SUDOERS_FILE\u00a0\u00bb<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/sbin\/dmidecode -s system-uuid<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/kvm -S *<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/qemu-img info *<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/qemu-img create *<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/sbin\/qm create *<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/sbin\/qm ^showcmd [0-9]+ &#8211;pretty$<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/sbin\/qm ^unlock [0-9]+$<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/socat ^TCP-LISTEN:[0-9]+,bind=127\\.0\\.0\\.1 UNIX-CONNECT:\/[a-zA-Z0-9_.\/-]+$<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/mkdir -p \/var\/lib\/vz\/snippets\/<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/pvenode cert info &#8211;output-format json<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/pvesh ^get storage\/([a-zA-Z0-9_-]+) &#8211;output json$<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/pvesh ^set \/nodes\/([a-zA-Z0-9_-]+)\/qemu\/([0-9]+)\/config &#8211;lock ([a-zA-Z]+)$<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/pkill -9 -e -f -x socat *<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/sbin\/lvchange -ay *<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/sbin\/lvchange -an *<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/rbd device map *<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/mv ^-n \/tmp\/([a-zA-Z0-9_-]+\\.config) \/var\/lib\/vz\/snippets\/([a-zA-Z0-9_-]+\\.config)$<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/rm ^\/[a-zA-Z0-9_\/-]+\/VeeamTmp[a-zA-Z0-9_.-]+$<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/rm ^-f \/[a-zA-Z0-9_\/-]+\/VeeamTmp[a-zA-Z0-9_.-]+$<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/rm ^-f \/var\/lib\/vz\/snippets\/[a-zA-Z0-9_-]+\\.config$<br \/>\n$USERNAME ALL=(root) PASSWD: \/usr\/bin\/rm ^-f \/var\/lib\/vz\/template\/iso\/[a-zA-Z0-9_.-]+\\.img$<br \/>\nEOF<\/p>\n<p># Validate sudoers file<br \/>\nlog \u00ab\u00a0Setting permissions and validating syntax&#8230;\u00a0\u00bb<br \/>\nchmod 440 \u00ab\u00a0$SUDOERS_FILE\u00a0\u00bb<br \/>\nvisudo -cf \u00ab\u00a0$SUDOERS_FILE\u00a0\u00bb<\/p>\n<p># Add user to Proxmox configuration<br \/>\nlog \u00ab\u00a0Adding &lsquo;$USERNAME&rsquo; to Proxmox VE as &lsquo;Administrator&rsquo; on &lsquo;\/&rsquo;&#8230;\u00a0\u00bb<br \/>\nif ! pveum user list | grep -q \u00ab\u00a0^$USERNAME@$REALM\u00a0\u00bb; then<br \/>\npveum user add \u00ab\u00a0$USERNAME@$REALM\u00a0\u00bb<br \/>\npveum aclmod \/ -user \u00ab\u00a0$USERNAME@$REALM\u00a0\u00bb -role Administrator<br \/>\nlog \u00ab\u00a0Proxmox user &lsquo;$USERNAME@$REALM&rsquo; added successfully.\u00a0\u00bb<br \/>\nelse<br \/>\nlog \u00ab\u00a0Proxmox user &lsquo;$USERNAME@$REALM&rsquo; already exists. Skipping.\u00a0\u00bb<br \/>\nfi<\/p>\n<p>log \u00ab\u00a0User &lsquo;$USERNAME&rsquo; configured successfully.\u00a0\u00bb<br \/>\nlog \u00ab\u00a0End of script.\u00a0\u00bb<\/p><\/blockquote>\n<p>Une fois le script execut\u00e9, le r\u00e9sultat est le suivant :<\/p>\n<blockquote><p>2025-05-28 13:56:39 | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n2025-05-28 13:56:39 | Starting user creation script for &lsquo;veeamdep&rsquo;<br \/>\nEnter password for &lsquo;veeamdep&rsquo;:<br \/>\nConfirm password:<br \/>\n2025-05-28 13:56:44 | User &lsquo;veeamdep&rsquo; already exists. Skipping creation.<br \/>\n2025-05-28 13:56:44 | Adding &lsquo;veeamdep&rsquo; to the &lsquo;sudo&rsquo; group&#8230;<br \/>\n2025-05-28 13:56:44 | Creating sudoers file &lsquo;\/etc\/sudoers.d\/veeamdep&rsquo;&#8230;<br \/>\n2025-05-28 13:56:44 | Setting permissions and validating syntax&#8230;<br \/>\n\/etc\/sudoers.d\/veeamdep: parsed OK<br \/>\n2025-05-28 13:56:44 | Adding &lsquo;veeamdep&rsquo; to Proxmox VE as &lsquo;Administrator&rsquo; on &lsquo;\/&rsquo;&#8230;<br \/>\n2025-05-28 13:56:45 | Proxmox user &lsquo;veeamdep@pam&rsquo; added successfully.<br \/>\n2025-05-28 13:56:45 | User &lsquo;veeamdep&rsquo; configured successfully.<br \/>\n2025-05-28 13:56:45 | End of script.<\/p><\/blockquote>\n<p>Vous pouvez v\u00e9rifier sur la webUI :<\/p>\n<p><a href=\"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140320.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1185\" src=\"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140320.png\" alt=\"\" width=\"733\" height=\"411\" srcset=\"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140320.png 733w, https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140320-300x168.png 300w, https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140320-482x270.png 482w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/a><\/p>\n<p>Il n&rsquo;y a plus qu&rsquo;a utiliser cet utilisateur dans VBR :<\/p>\n<p><a href=\"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140433.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1186\" src=\"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140433.png\" alt=\"\" width=\"809\" height=\"696\" srcset=\"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140433.png 809w, https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140433-300x258.png 300w, https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140433-768x661.png 768w, https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140433-314x270.png 314w\" sizes=\"auto, (max-width: 809px) 100vw, 809px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Et c&rsquo;est tout bon !<\/p>\n<p><a href=\"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140505.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1187\" src=\"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140505.png\" alt=\"\" width=\"933\" height=\"668\" srcset=\"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140505.png 933w, https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140505-300x215.png 300w, https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140505-768x550.png 768w, https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/Capture-decran-2025-05-28-140505-377x270.png 377w\" sizes=\"auto, (max-width: 933px) 100vw, 933px\" \/><\/a><\/p>\n<p>credit bertrand c.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Salut la team, Depuis la version 12.3.1 vous pouvez configurer un compte user pour ajouter un hyperviseur Proxmox dans Veeam Backup &amp; Replication. Le d\u00e9tail est expliqu\u00e9 dans la KB suivante : https:\/\/www.veeam.com\/kb4701 Voici un script a executer sur l&rsquo;hyperviseur PVE pour fluidifier tout cela. Il va cr\u00e9er un user \u00ab\u00a0veeamdep\u00a0\u00bb, vous demander son password puis configurer les bons param\u00e9trages. &nbsp; #!\/bin\/bash set -e USERNAME=\u00a0\u00bbveeamdep\u00a0\u00bb REALM=\u00a0\u00bbpam\u00a0\u00bb\u00a0 # Change this to the desired auth realm, e.g., \u00ab\u00a0pve\u00a0\u00bb SUDOERS_FILE=\u00a0\u00bb\/etc\/sudoers.d\/$USERNAME\u00a0\u00bb LOG_FILE=\u00a0\u00bb\/var\/log\/create_veeam_user.log\u00a0\u00bb # Logging&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/\">Lire la suite<span class=\"screen-reader-text\"> Lire la suite<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1190,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,2],"tags":[26,142,163,164,54,17,25],"class_list":["post-1184","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vbr","category-veeam","tag-backup-replication","tag-proxmox","tag-pve","tag-script","tag-vbr","tag-veeam","tag-veeam-backup"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Script for Granular sudo Permissions in PVE - Baptiste Tellier<\/title>\n<meta name=\"description\" content=\"Baptiste Tellier Script for Granular sudo Permissions in PVE - VBR - Focus sur les VCSP - Veeam Cloud Service Provider about Veeam Cloud Connect and more !\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Script for Granular sudo Permissions in PVE - Baptiste Tellier\" \/>\n<meta property=\"og:description\" content=\"Baptiste Tellier Script for Granular sudo Permissions in PVE - VBR - Focus sur les VCSP - Veeam Cloud Service Provider about Veeam Cloud Connect and more !\" \/>\n<meta property=\"og:url\" content=\"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/\" \/>\n<meta property=\"og:site_name\" content=\"Baptiste Tellier\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-28T12:12:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-28T12:13:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/ChatGPT-Image-28-mai-2025-14_11_33-1024x683.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"683\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Baptiste Tellier\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Baptiste Tellier\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/index.php\\\/2025\\\/05\\\/28\\\/script-for-granular-sudo-permissions-in-pve\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/index.php\\\/2025\\\/05\\\/28\\\/script-for-granular-sudo-permissions-in-pve\\\/\"},\"author\":{\"name\":\"Baptiste Tellier\",\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/#\\\/schema\\\/person\\\/0e3e43784261c58dd916e9f0a1673541\"},\"headline\":\"Script for Granular sudo Permissions in PVE\",\"datePublished\":\"2025-05-28T12:12:57+00:00\",\"dateModified\":\"2025-05-28T12:13:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/index.php\\\/2025\\\/05\\\/28\\\/script-for-granular-sudo-permissions-in-pve\\\/\"},\"wordCount\":747,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/#\\\/schema\\\/person\\\/0e3e43784261c58dd916e9f0a1673541\"},\"image\":{\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/index.php\\\/2025\\\/05\\\/28\\\/script-for-granular-sudo-permissions-in-pve\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/baptistetellier.fr\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/ChatGPT-Image-28-mai-2025-14_11_33.png\",\"keywords\":[\"backup &amp; replication\",\"proxmox\",\"PVE\",\"script\",\"VBR\",\"Veeam\",\"Veeam Backup\"],\"articleSection\":[\"VBR\",\"Veeam\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/baptistetellier.fr\\\/index.php\\\/2025\\\/05\\\/28\\\/script-for-granular-sudo-permissions-in-pve\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/index.php\\\/2025\\\/05\\\/28\\\/script-for-granular-sudo-permissions-in-pve\\\/\",\"url\":\"https:\\\/\\\/baptistetellier.fr\\\/index.php\\\/2025\\\/05\\\/28\\\/script-for-granular-sudo-permissions-in-pve\\\/\",\"name\":\"Script for Granular sudo Permissions in PVE - Baptiste Tellier\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/index.php\\\/2025\\\/05\\\/28\\\/script-for-granular-sudo-permissions-in-pve\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/index.php\\\/2025\\\/05\\\/28\\\/script-for-granular-sudo-permissions-in-pve\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/baptistetellier.fr\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/ChatGPT-Image-28-mai-2025-14_11_33.png\",\"datePublished\":\"2025-05-28T12:12:57+00:00\",\"dateModified\":\"2025-05-28T12:13:49+00:00\",\"description\":\"Baptiste Tellier Script for Granular sudo Permissions in PVE - VBR - Focus sur les VCSP - Veeam Cloud Service Provider about Veeam Cloud Connect and more !\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/index.php\\\/2025\\\/05\\\/28\\\/script-for-granular-sudo-permissions-in-pve\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/baptistetellier.fr\\\/index.php\\\/2025\\\/05\\\/28\\\/script-for-granular-sudo-permissions-in-pve\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/index.php\\\/2025\\\/05\\\/28\\\/script-for-granular-sudo-permissions-in-pve\\\/#primaryimage\",\"url\":\"https:\\\/\\\/baptistetellier.fr\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/ChatGPT-Image-28-mai-2025-14_11_33.png\",\"contentUrl\":\"https:\\\/\\\/baptistetellier.fr\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/ChatGPT-Image-28-mai-2025-14_11_33.png\",\"width\":1536,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/index.php\\\/2025\\\/05\\\/28\\\/script-for-granular-sudo-permissions-in-pve\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/baptistetellier.fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Script for Granular sudo Permissions in PVE\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/#website\",\"url\":\"https:\\\/\\\/baptistetellier.fr\\\/\",\"name\":\"Baptiste Tellier\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/#\\\/schema\\\/person\\\/0e3e43784261c58dd916e9f0a1673541\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/baptistetellier.fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/#\\\/schema\\\/person\\\/0e3e43784261c58dd916e9f0a1673541\",\"name\":\"Baptiste Tellier\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/20190315_110256-2.jpg\",\"url\":\"https:\\\/\\\/baptistetellier.fr\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/20190315_110256-2.jpg\",\"contentUrl\":\"https:\\\/\\\/baptistetellier.fr\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/20190315_110256-2.jpg\",\"width\":2025,\"height\":1562,\"caption\":\"Baptiste Tellier\"},\"logo\":{\"@id\":\"https:\\\/\\\/baptistetellier.fr\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/20190315_110256-2.jpg\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Script for Granular sudo Permissions in PVE - Baptiste Tellier","description":"Baptiste Tellier Script for Granular sudo Permissions in PVE - VBR - Focus sur les VCSP - Veeam Cloud Service Provider about Veeam Cloud Connect and more !","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/","og_locale":"fr_FR","og_type":"article","og_title":"Script for Granular sudo Permissions in PVE - Baptiste Tellier","og_description":"Baptiste Tellier Script for Granular sudo Permissions in PVE - VBR - Focus sur les VCSP - Veeam Cloud Service Provider about Veeam Cloud Connect and more !","og_url":"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/","og_site_name":"Baptiste Tellier","article_published_time":"2025-05-28T12:12:57+00:00","article_modified_time":"2025-05-28T12:13:49+00:00","og_image":[{"width":1024,"height":683,"url":"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/ChatGPT-Image-28-mai-2025-14_11_33-1024x683.png","type":"image\/png"}],"author":"Baptiste Tellier","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"Baptiste Tellier","Dur\u00e9e de lecture estim\u00e9e":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/#article","isPartOf":{"@id":"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/"},"author":{"name":"Baptiste Tellier","@id":"https:\/\/baptistetellier.fr\/#\/schema\/person\/0e3e43784261c58dd916e9f0a1673541"},"headline":"Script for Granular sudo Permissions in PVE","datePublished":"2025-05-28T12:12:57+00:00","dateModified":"2025-05-28T12:13:49+00:00","mainEntityOfPage":{"@id":"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/"},"wordCount":747,"commentCount":0,"publisher":{"@id":"https:\/\/baptistetellier.fr\/#\/schema\/person\/0e3e43784261c58dd916e9f0a1673541"},"image":{"@id":"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/#primaryimage"},"thumbnailUrl":"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/ChatGPT-Image-28-mai-2025-14_11_33.png","keywords":["backup &amp; replication","proxmox","PVE","script","VBR","Veeam","Veeam Backup"],"articleSection":["VBR","Veeam"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/","url":"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/","name":"Script for Granular sudo Permissions in PVE - Baptiste Tellier","isPartOf":{"@id":"https:\/\/baptistetellier.fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/#primaryimage"},"image":{"@id":"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/#primaryimage"},"thumbnailUrl":"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/ChatGPT-Image-28-mai-2025-14_11_33.png","datePublished":"2025-05-28T12:12:57+00:00","dateModified":"2025-05-28T12:13:49+00:00","description":"Baptiste Tellier Script for Granular sudo Permissions in PVE - VBR - Focus sur les VCSP - Veeam Cloud Service Provider about Veeam Cloud Connect and more !","breadcrumb":{"@id":"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/#primaryimage","url":"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/ChatGPT-Image-28-mai-2025-14_11_33.png","contentUrl":"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2025\/05\/ChatGPT-Image-28-mai-2025-14_11_33.png","width":1536,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/baptistetellier.fr\/index.php\/2025\/05\/28\/script-for-granular-sudo-permissions-in-pve\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/baptistetellier.fr\/"},{"@type":"ListItem","position":2,"name":"Script for Granular sudo Permissions in PVE"}]},{"@type":"WebSite","@id":"https:\/\/baptistetellier.fr\/#website","url":"https:\/\/baptistetellier.fr\/","name":"Baptiste Tellier","description":"","publisher":{"@id":"https:\/\/baptistetellier.fr\/#\/schema\/person\/0e3e43784261c58dd916e9f0a1673541"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/baptistetellier.fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":["Person","Organization"],"@id":"https:\/\/baptistetellier.fr\/#\/schema\/person\/0e3e43784261c58dd916e9f0a1673541","name":"Baptiste Tellier","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2020\/09\/20190315_110256-2.jpg","url":"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2020\/09\/20190315_110256-2.jpg","contentUrl":"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2020\/09\/20190315_110256-2.jpg","width":2025,"height":1562,"caption":"Baptiste Tellier"},"logo":{"@id":"https:\/\/baptistetellier.fr\/wp-content\/uploads\/2020\/09\/20190315_110256-2.jpg"}}]}},"_links":{"self":[{"href":"https:\/\/baptistetellier.fr\/index.php\/wp-json\/wp\/v2\/posts\/1184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/baptistetellier.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/baptistetellier.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/baptistetellier.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/baptistetellier.fr\/index.php\/wp-json\/wp\/v2\/comments?post=1184"}],"version-history":[{"count":3,"href":"https:\/\/baptistetellier.fr\/index.php\/wp-json\/wp\/v2\/posts\/1184\/revisions"}],"predecessor-version":[{"id":1191,"href":"https:\/\/baptistetellier.fr\/index.php\/wp-json\/wp\/v2\/posts\/1184\/revisions\/1191"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/baptistetellier.fr\/index.php\/wp-json\/wp\/v2\/media\/1190"}],"wp:attachment":[{"href":"https:\/\/baptistetellier.fr\/index.php\/wp-json\/wp\/v2\/media?parent=1184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/baptistetellier.fr\/index.php\/wp-json\/wp\/v2\/categories?post=1184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/baptistetellier.fr\/index.php\/wp-json\/wp\/v2\/tags?post=1184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}