fredldotme / amd-indicator

Indicator applet for Ubuntu laptop users with AMD/Intel switchable graphics
36 stars 9 forks source link

/etc/sudoers/amd-indicator-sudoers breaks system #5

Closed benow closed 10 years ago

benow commented 10 years ago

There's a problem in amd-indicator-sudoers which prevents sudo from running: $ sudo su sudo: >>> /etc/sudoers.d/amd-indicator-sudoers: syntax error near line 1 <<< sudo: parse error in /etc/sudoers.d/amd-indicator-sudoers near line 1 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin

No sudo and no root login means I can't delete or fix. A boot into single mode is required. Not good.

benow commented 10 years ago

For others encountering this, I was able to edit the amd-indicator-sudoers without single user mode via 'pkexec bash'.

The problem is in the file is the lack of a trailing newline, it seems.

Sadi58 commented 10 years ago

I've added a trailing new line now as suggested. Can you confirm if it's OK now? For I'm not using amd/intel hybrid graphics card at the moment.