{"id":13631,"date":"2023-05-18T16:30:25","date_gmt":"2023-05-18T21:30:25","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/?page_id=13631"},"modified":"2023-05-18T16:31:04","modified_gmt":"2023-05-18T21:31:04","slug":"enable_candbc_nospasswd","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/enable_candbc_nospasswd\/","title":{"rendered":"enable_candbc_nospasswd"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<p>Enable the CanDbc application to change the baud rate of can devices <br \/>\nwithout requiring a sudo password.<\/div>\n<h3>Enter:<\/h3>\n<p>sudo \/cyflex\/cmds\/enable_candbc_nospasswd<\/p>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>The enable_candbc_nospasswd modifies the \/etc\/sudoers file and adds<br \/>\nthe following line:<\/p>\n<p>%wheel ALL=(ALL) NOPASSWD:\/usr\/sbin\/ip,\/usr\/bin\/link<\/p>\n<p>This line allows the test cell account user to execute the ip and <br \/>\nlink commands, which require root\/sudo privileges, without needing <br \/>\nto enter a sudo password. The line could be added manually if <br \/>\npreferred, but the command does it automatically.<\/p>\n<p>Without this modification, the user will need to execute the <br \/>\nfollowing commands when changing the baud rate for a device<br \/>\nusing CanDbc<\/p>\n<p>sudo ip link set canX down<br \/>\nsudo ip link set canX up type can bitrate &lt;rate&gt;<\/p>\n<p>where X is the integer representing the can device<br \/>\nand &lt;rate&gt; represents the baud rate<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<p><a href=\"\/index.php\/usage-help-manual\/14-i-o-systems\/ai_transfer\/\">CanDbc,\u00a0 disable_candbc_nopasswd<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Enable the CanDbc application to change the baud rate of can devices without requiring a sudo password. Enter: sudo \/cyflex\/cmds\/enable_candbc_nospasswd Notes: The enable_candbc_nospasswd modifies the \/etc\/sudoers file and adds the following line: %wheel ALL=(ALL) NOPASSWD:\/usr\/sbin\/ip,\/usr\/bin\/link This line allows the test cell account user to execute the ip and link commands, which require root\/sudo privileges, [&hellip;]<\/p>\n","protected":false},"author":30,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-13631","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/13631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=13631"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/13631\/revisions"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=13631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}