gharris999;477836 Wrote: 
> The problem here is that on OS X, Squeezebox Server does not run under a
> 'squeezeboxserver' account as it does on Linux, but rather under the
> user's account...
> 
> Anyway, I don't think 'sudo -k' or 'sudo -K' can invalidate the user's
> sudo timestamp from within a sudo session.  And that means that your
> test script potentially always reports success on OS X, even when the
> permissions aren't correctly set.
> 
> But you are reminding me that I ought to instruct the users to 'sudo
> -K' first before testing the permissions.
Right, the script as is here returns failure on OSX, because
squeezeboxserver does not exist. Further, this script is not very useful
on OS X, since if you can sudo, then you can sudo... as you point out.
Nevertheless, it catches failure or success.

And the sudo -k line is not correct, as it doesn't apply to the SBS
system user. 
Doing "sudo -u squeezeboxserver -k" is not possible, but it looks like

"sudo -u squeezeboxserver sudo -k" does reset the password timeout for
user squeezeboxserver.


-- 
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/mailman/listinfo/plugins

Reply via email to