Stone Free;553227 Wrote: > How do I go about getting this to work on a QNAP 219P. I have installed > SUDO via Itsy package manager, but I have no idea what I'm meant to put > in the SUDOERS file. I've also no idea how to go about installing > PM-Utils on the QNAP because it doesn't seem to be installable via > Itsy. Unfortunately, I have no experience with QNAP devices. The only NAS device that I've ever played around with is a very old ReadyNAS 600...and I gave up on trying to run SqueezeCenter on that years ago. I assume you've used the 'Search this thread' tool to find all the previous QNAP related posts?
Various folks have drifted through this thread asking your same question...and then they've disappeared. I don't know if it's because they gave up...or because they got it working. If the latter, I really wish they had posted their recipe for others' benefit. Anyway, there are a couple of different ways you can try to go about this. If the QNAP allows you root access via ssh to it's operating system, then you can use PuTTY & WinSCP to do some spelunking. You'll also have to pose some questions on forums devoted to your device. But basically, your task will be to: 1). Determine what user account the squeezeboxserver service runs under on the QNAP. On a regular linux distribution, SBS runs under the account 'squeezeboxserver'. If you can get ssh+root access to the QNAP, you can try the command: # ps -U squeezeboxserver If that command lists processes 'owned' by the squeezeboxserver user, then you're in business and 'squeezeboxserver' is the 'owner' and will be the account name you'll give permissions to in sudoers. But if no processes are listed, then you might try a sort of reverse lookup: # ps axu Again, look for the SBS related processes and note the numeric ID of the SBS process owners. If you get an ID (e.g. 110, rather than a name), then have a look in /etc/passwd and see if you can associate that ID with an account name. In any event, once you get the account name, you'll have the first piece of the puzzle as to what will go in sudoers. I'm not familiar with the QNAP's sudoers format, but there may be examples commented out in the file. 2). Your second task is to determine which commands actually effect shutdown/restart/suspend/hibernation on the QNAP. And there, you're better off posing questions on a QNAP forum. Good luck, and please do post your results back here. Again, you're not the first person to trod down this path. PS: make a backup of your original, unchanged sudoers file first! And when attempting to modify sudoers, try using the # visudo ..command..if it's present on the QNAP. visudo is the 'safe' way to modify sudoers. Any changes you make to sudoers by visudo get checked for correct syntax before the changes are applied. This is a good failsafe. If you're not familiar with 'vi', do a google search to get a brief vi tutorial. I find vi fairly counter-intuitive to use, so I'd advise having a command reference handy. -- gharris999 ------------------------------------------------------------------------ gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=48521 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
