PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, May 14, 2022

[FIXED] How to make service not require superuser password entry?

 May 14, 2022     cron, linux, service, ubuntu     No comments   

Issue

I am doing the command service cron start in the shell which requires a superuser password entry. I am the root user on this (OracleVB running Ubuntu).

Is there a way to add this command to an approved user task where I can just type service cron start and not be prompted for a password?


Solution

Starting and stopping system services should only be possible for the root user.

You might want to enable your service to start at boot with systemctl enable --now yourservice instead.

You can always use systemctl status yourservice to check if it is currently running.



Answered By - mashuptwice
Answer Checked By - Pedro (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing