When I tried to restart the ssh
server on my ubuntu box, I got
me@me-one:~$ service ssh restart
restart: Rejected send message, 1 matched rules; type="method_call", sender=":1.63" (uid=1000 pid=3354 comm="restart ssh ") interface="com.ubuntu.Upstart0_6.Job" member="Restart" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
I realized that I hadn't sudo
-ed
me@me-one:~$ sudo service ssh restart
ssh start/running, process 3386
Why didn't the first attempt throw an error like Permission denied
or something similar. Am I overriding the error when running as root
and implicitly ignoring the warning/error? Or is it just bad programming by the openssh
developers?