The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
sudo command is not working inside a script when placed in cron
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
sudo command is not working inside a script when placed in cron
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
02-12-2009
stanleypane
Registered User
Join Date: Mar 2008
Posts: 23
Well, if you have access to sudo as root, you can modify the sudoers file:
Code:
sudo visudo
Or, like I said, you can just modify the root crontab:
Code:
sudo crontab -e
If you don't have access to the root account and sudo is not working for you, then you will not be able to run root commands until someone with proper privileges gives you access.
stanleypane
View Public Profile
Find all posts by stanleypane
Find stanleypane's past nominations received
Find stanleypane's present nominations given