llm-applications icon indicating copy to clipboard operation
llm-applications copied to clipboard

setup-pgvector.sh is corrupting /etc/sudoers file

Open dmoghnie opened this issue 2 years ago • 2 comments

Running the script will result in the /etc/sudoers file containing only "ray ALL=(ALL:ALL) NOPASSWD:ALL"

need to modify the line "echo 'ray ALL=(ALL:ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers " to "echo 'ray ALL=(ALL:ALL) NOPASSWD:ALL' | sudo tee -a /etc/sudoers"

dmoghnie avatar Oct 13 '23 15:10 dmoghnie

This needs a 'hot fix'. I modified the line with echo 'ray ALL=(ALL:ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/ray instead.

bjohn22 avatar Dec 02 '23 12:12 bjohn22

after run "echo 'ray ALL=(ALL:ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers". my user could not work, I can use any command related to "sudo". please help me!!!

hnhoangdz avatar Jan 11 '24 08:01 hnhoangdz