0
votes
0answers
40 views

Solaris /etc/xdg/autostart root script pam_authenticate conversion failure

Im running SOL11.1 and have setup a desktop file to run in /etc/xdg/autostart this calls a main script which calls other scripts. The regular commands work. But the sudo commands doesn't seem to ...
1
vote
1answer
195 views

Allow normal user to run PHP script as root using SUDO

How can I allow a normal user on Ubuntu to run php scripts? sudo php /path/to/script/script.php Basically the script needs to be run as root but the users does not have root privileges on their ...
-3
votes
2answers
117 views

Automate root ssh scripts [closed]

We require to be able to run some script as root from nothing other than an SSH login. IE, we have root and password, and we need to perform a script action on a bunch of servers.
1
vote
5answers
2k views

ubuntu: runing .sh files as root

How do I run a .sh script with root privileges from Ubuntu's cmd? Some scripts require to enter the password. I watn to avoid this.
14
votes
4answers
11k views

Bash Scripting: Require script to be run as root (or with sudo)

I'm trying to write a bash script (in Ubuntu) that will backup a directory using tar. How can I do a check in the script so that it can only be run as root (or with sudo)? For instance, if a user ...
1
vote
2answers
1k views

Ubuntu bash scripting with root commands

I am trying to write a bash startup script in Ubuntu 9.04 that will remove the annoying system beep from my computer: #/bin/bash rmmod pcspkr #remove system beep; also doesnt work without root ...
0
votes
2answers
343 views

temp folder in Macos under root?

I'm eriting a MacOS script that need to run under admin rights (under 'sudo'). Script needs a temp folder in order to keep some temp files. Unfortunately, there is no 'TMPDIR' under root! If i run ...