10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
All,
When enabling sudo to run a script as root (install scripts, etc), is it required to enable sudo on all the actions/commands in the script or simply on the script itself and everything will run as root?
Thanks in advance,
HB (3 Replies)
Discussion started by: hburnswell
3 Replies
2. Shell Programming and Scripting
hello
I need help on this.
The input is this.
server system account name DBA account name x a p y b q z c r
so i would like to check the sudo of the user is done or not.
this is what i do to check it
1. login as root on server x
2.... (2 Replies)
Discussion started by: Kiran008
2 Replies
3. Shell Programming and Scripting
hi,
can some one explain the sudo -n equivalent in AIX
Thanks
Venkat K (5 Replies)
Discussion started by: venky.b5
5 Replies
4. Shell Programming and Scripting
Hello All ,
Hope everyone is doing great !
can someone help me for the below problem statement with the help of a script .
1. I am having couple of Linux Servers
a. I need to login and need to do a sudo
b. need to give a user id , which will take to user directory`s homedirectory... (1 Reply)
Discussion started by: radha254
1 Replies
5. Shell Programming and Scripting
Hi,
I am new to scripting. I am trying to write a script to ssh one remote machine and run a sudo command.
ssh <hostname> sudo -S <command> < ~/pass.txt
I am stored my password in pass.txt.
I am getting error
sudo: no tty present and no askpass program specified
Please suggest me how can... (1 Reply)
Discussion started by: venkia9
1 Replies
6. Shell Programming and Scripting
I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this:
#!/bin/bash
rsync /path/on/local/machine/ foo.com:path/on/remote/machine/
ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies
7. Shell Programming and Scripting
I want to execute a script(generateReport.sh) which resides on root home directory from shell script(localtrigger.sh) as root by using sudo.
The thing is
i cant edit /etc/sudoers (i can but m not allowed to do it , ethically)
i cant change ownership of generateReport.sh script
When i try... (7 Replies)
Discussion started by: saket
7 Replies
8. Shell Programming and Scripting
salmo allikm warhmat allah wabrakato
i want to do script with sudo like
sudo su and want to put password in the script not get from user because i to made it startup when booting and i don't know how put in script for sudo
thanks (5 Replies)
Discussion started by: pua06
5 Replies
9. Shell Programming and Scripting
Legends,
I am trying sudo chmod from one shell to different machine. but getting the error.
Please let me know if there is any way to do this.
A#pk} for i in Bl1 Brl1
>> do
>> echo $i
>> ssh $i sudo chmod 755 /etc/services
>> done
Bl1
Password:
bash: sudo: command not found
... (2 Replies)
Discussion started by: sdosanjh
2 Replies
10. Shell Programming and Scripting
here is my script:
#!/bin/sh
cd /Users/a
echo "what is the name of the file u want?"
read var1
var1=$var1... (1 Reply)
Discussion started by: cleansing_flame
1 Replies