pichonCalavera;313969 Wrote: > Hey this looks very nice! > I have a Debian server running Etch, but run into some problems. > I could not find the /etc/sudoers file on my system, and I guess this > is the main problem... what would be equivalent file on Debian? , I > already did the -touch /etc/shutdown- > My etch box has /etc/sudoers but I wonder if it came with sudo by default. Perhaps "apt-get -s -f install sudo" could help ?
(With "-s" apt switches to the "dry run" mode, spitting out all commands but actually not taking action. If the output looks good, then remove "-s" and run again the command) I had issues with sudo for squeezecenter. First you could try adding the squeezecenter to the sudo group, I will take a look at the plugin. I have made the original script work on my box, here are a few hints: - /etc/shutdown is of no relevance as far as I understand. I have not created it. - You could add the squeezecenter user to the "sudo" users group to allow it to run the shutdown command : "usermod -a -G sudo squeezecenter". Normally this is supposed to slice bread but since my /etc/sudoers file had no definition for a "%sudo" group, it had no effect. I ended up adding **using the visudo command** the following line to /etc/sudoers: "squeezecenter ALL = NOPASSWD: /sbin/shutdown*" Only type "visudo" (as root) then add this line (without quotes). - Last I had an issue because of the 'lecture' option of sudo. First time you use it, sudo lectures you on how dangerous using sudo is. There is no logon shell defined for the squeezecenter system user, and I think this is a problem for the lecture thing. Sudo never works. I did this to make it work: as root edit /etc/passwd and on the squeezecenter line, replace ":/bin/false" at the end of the line with ":/bin/sh". -- epoch1970 ------------------------------------------------------------------------ epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711 View this thread: http://forums.slimdevices.com/showthread.php?t=48521 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/plugins
