Tagged Questions
1
vote
0answers
60 views
how to run ssh -t user@remote 'sudo nohup bash -c “comand”' in background
I want to run a script on a remote host with sudo priviledge,
someone suggests that I should use nohup and ssh -t, like the following command
the script ls;sleep 10;echo finish is crafted here to ...
2
votes
1answer
104 views
Getting no tty present and no askpass program specified when using git over ssh
I'm trying to push a git commit from my laptop to my server but keep getting the following error message:
remote: sudo: no tty present and no askpass program specified
To ...
1
vote
5answers
272 views
How to securely automate running commands as root with “sudo su -”?
hint (on client side, how to encrypt files/pwd's):
# encrypt pwd with ssh key:
openssl rsa -in ~/.ssh/id_rsa -outform pem > ~/.ssh/TEMP-id_rsa.pem 2>/dev/null
openssl rsa -in ~/.ssh/id_rsa ...
1
vote
2answers
71 views
how to require sudo to view files?
I have a ssh server. I allow people to connect to it if they want. I do my programming homework on it. I am in trouble with my teacher because people were cheating off it. I need to know how to ...
2
votes
3answers
803 views
Run local scripts on multiple servers using sudo user through a script
I have about 100 remote servers. I want to manage all my servers using one terminal server to update , run commands with sudo privileges.
I need to have one main script that takes another test script ...
0
votes
3answers
296 views
How do I execute a newly installed application with Sudo?
I have just installed an application on my Amazon EC2 instance called sshpass. I am having trouble getting it to work properly ( although, it works correctly on a non AWS instance ). I've read in ...
1
vote
2answers
2k views
SSH + Sudo + Expect in Bash script: Run command with sudo in remote machine
I am trying to automate the deploy of some .deb packages with an script. I want to execute sudo dpkg -i $myDeb.deb in a list of remote machines I can access with ssh.
I've tried to automate the ...
3
votes
4answers
5k views
Can a linux user change their password without knowing the current password?
I'm setting up a few ubuntu boxes, and using opscode's chef as a configuration tool. It would be fairly easy to install public keys for each user on each of these servers, and disable password ...
5
votes
3answers
2k views
Copying protected files between servers in one line?
I'd like to copy squid.conf from one server to another.
The servers don't talk to each other. I'd like to go through my workstation.
Both servers have the file, so it will be overwritten on the ...
3
votes
2answers
412 views
Why did my sudoers file suddenly reset itself?
After setting up Wave in a Box on my Debian server, I started noticing strange things happening: I could no longer use sftp to transfer files, and even worse, I couldn't run any sudo commands! ...