MrMEEE / bumblebee-Old-and-abbandoned

OUTDATED!!!!! - Replaced by "The Bumblebee Project" and "Ironhide"
http://www.martin-juhl.dk/2011/08/ironhide-reporting-for-duty/
469 stars 50 forks source link

Sudo optirun? #439

Closed csnv closed 13 years ago

csnv commented 13 years ago

Before version 2 I ran optirun with no special privileges, but now I need to run it as sudo everytime.

Is it normal due to newer version or something else?

ArchangeGabriel commented 13 years ago

No, looks like it's a bug. Or maybe the program you run requires those privileges.

MrMEEE commented 13 years ago

what happens if you just run "optirun"???

what does:

sudo ls -la /etc/sudoers.d/ and sudo cat /etc/sudoers.d/bumblebee

csnv commented 13 years ago

It requests password for sudo.

Output for those commands:

total 24 drwxr-xr-x 2 root root 4096 2011-07-12 04:46 . drwxr-xr-x 144 root root 12288 2011-07-12 13:41 .. -r--r----- 1 root root 62 2011-07-11 11:34 bumblebee -r--r----- 1 root root 819 2011-04-15 18:02 README

and

%bumblebee ALL=(ALL:ALL) NOPASSWD: /etc/init.d/bumblebee

MrMEEE commented 13 years ago

sudo cat /etc/sudoers

MrMEEE commented 13 years ago

and

id username

where usernamer is your user..

csnv commented 13 years ago

#

This file MUST be edited with the 'visudo' command as root.

#

Please consider adding local content in /etc/sudoers.d/ instead of

directly modifying this file.

#

See the man page for details on how to write a sudoers file.

# Defaults env_reset

Host alias specification

User alias specification

Cmnd alias specification

User privilege specification

root ALL=(ALL:ALL) ALL

Members of the admin group may gain root privileges

%admin ALL=(ALL) ALL

Allow members of group sudo to execute any command

%sudo ALL=(ALL:ALL) ALL

includedir /etc/sudoers.d

csnv commented 13 years ago

uid=1000(jorge) gid=1000(jorge) grupos=1000(jorge),4(adm),20(dialout),24(cdrom),46(plugdev),112(lpadmin),120(admin),122(sambashare)

MrMEEE commented 13 years ago

ok... you are not in the bumblebee group:

gpasswd -a jorge bumblebee

logout and in...

csnv commented 13 years ago

It worked, thanks.