Mikmikmikmik
New Member
Hi,
Please help, sudo thinks the password file is v-users.
ssh -t -l myname server2 "cd /etc/mail; sudo -S /usr/sbin/hashmap v-users < v-users < ~/mypw.txt"
Ssh keys already set up for mynane.
Cat'ing the pw.txt and then pipe the sudo doesn't work either
I have tried all sorts of quoting but I just cannot get this to work.
I want the sudo entry to have a password to execute it so cannot use NOPASSWD: in the sudoers line.
Thanks.
Please help, sudo thinks the password file is v-users.
ssh -t -l myname server2 "cd /etc/mail; sudo -S /usr/sbin/hashmap v-users < v-users < ~/mypw.txt"
Ssh keys already set up for mynane.
Cat'ing the pw.txt and then pipe the sudo doesn't work either
I have tried all sorts of quoting but I just cannot get this to work.
I want the sudo entry to have a password to execute it so cannot use NOPASSWD: in the sudoers line.
Thanks.
Last edited: