I installed a little ftp-server on my ubuntu dev-server. After configuring some ports and other users, I needed to restart the service. Since most daemons run as services now, anything
/etc/init.d/name restart is now just
service name restart. But of course, nothing is that easy.
ryan@ryan-desktop:~$ service vsftpd restart
I ran this to restart the service for the ftp daemon but I was rejected.
restart: Rejected send message, 1 matched rules; type=”method_call”, sender=”:1.120″ (uid=1000 pid=26611 comm=”restart) 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”))
Isn’t that a fantastic message? Well, the solution dawned on me quickly. I needed root permissions. So a quick
sudo !! fixed the problem now, or just running
sudo service vsftpd restart.