{"id":13629,"date":"2023-05-18T16:25:14","date_gmt":"2023-05-18T21:25:14","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/?page_id=13629"},"modified":"2023-05-18T16:25:28","modified_gmt":"2023-05-18T21:25:28","slug":"disable_candbc_nospasswd","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/disable_candbc_nospasswd\/","title":{"rendered":"disable_candbc_nospasswd"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<p>Modify the system so the user must enter a password in order to <br \/>\nchange the baud rate of can devices, making it so CanDbc can not<br \/>\nchange the baud rate.<\/p>\n<p>This script is essentially meant to undo the changes made by<br \/>\nthe enable_candbc_nopasswd command.<\/p>\n<\/div>\n<h3>Enter:<\/h3>\n<p>sudo \/cyflex\/cmds\/disable_candbc_nospasswd<\/p>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>The disable_candbc_nospasswd modifies the \/etc\/sudoers file and <br \/>\nremoves the following line (if it is there):<\/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. By removing it, the user will need to<br \/>\nenter a password to change the baud rate of a CAN device.<\/p>\n<p>After executing this command, 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 enable_candbc_nopasswd<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Modify the system so the user must enter a password in order to change the baud rate of can devices, making it so CanDbc can not change the baud rate. This script is essentially meant to undo the changes made by the enable_candbc_nopasswd command. Enter: sudo \/cyflex\/cmds\/disable_candbc_nospasswd Notes: The disable_candbc_nospasswd modifies the \/etc\/sudoers file [&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-13629","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/13629","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=13629"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/13629\/revisions"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=13629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}