I have read a few other posts, it appears cumbersome to do multiple commands within sudo. Heredocs suffer from limitation of not being able to do redirection of stdin/stdout. Here in any case is a ...
I wanted to sudo to different user after ssh'ing into remote server, for this i tried the following: cat remote-test.sh ssh -t -t firstname.lastname@example.org 'bash -s' << EOF /tmp/test.sh EOF ...
I have a few dozen Solaris(5.10) boxes. By default, they are using ksh as the shell. Only a few users have sudo privileges. The rest do not. I don't want my regular users changing to another shell. ...
I have access to another user's account using command: sudo su - other_user I do not have enter password. It seems that this is the only command that sudo allows me. After that I'm able to perform ...
I have a deploy user. I'm trying to make it to execute some operators without using sudo that i could enter a password for. here's my visudo: # /etc/sudoers # This file MUST be edited with the ...
I'm writing a shell script that is supposed to be run by users only in sudo user list, what's the appropriate way of doing this? what I'm thinking is in the shell script, try to create a dummy file ...
I have an alias that passes in some parameters to a tool that I use often. Sometimes I run as myself, sometimes under sudo. Unfortunately, of course, sudo doesn't recognise the alias. Does anyone ...