If you have sudo rights with the NOPASSWD option set, then you will not be prompted. An example line from out file reads:-
There may be some resistance to this option though as it means there is no challenge to the command for that user/group.
I hope that this helps,
Robin
Liverpool/Blackburn
UK
Last edited by rbatte1; 02-14-2014 at 01:00 PM..
Reason: Correcting nationality
ok...I'm stumped on this one. I cannot figure out how to carry over my environment variables with a sudo command. I need to install an application under root and only have sudo access to get there. I can use ssh -Y <host> and launch an xwindows session successfully as myself but as soon as I sudo... (3 Replies)
Hello,
Can you config sudo to use the passphrase in the user ssh-key instead of the one in the passwd?
Some users do not have local passwords on the system and instead of adding the NOPASSWD in sudoers I would like the solution I asked about above.
Thx Jocke (3 Replies)
Hi,
I would like to know how i can perform a task, while performing ssh, sudo and command at the same time.
What I generally do is I ssh to the server, where i created private and public, so it does not prompt me for password all the time. Then i need to run "sudo su - ldaprole" to get into... (9 Replies)
Hi,
I am trying to execute some command, via ssh and sudo.
Here is what i want to do.
ssh localhost | sudo su - ldaprole | ls -ltrh
However, this command gives me listing of my home directory, and not of ldaprole.
If I logic directly, when i perform sudo su - ldaprole, it... (5 Replies)
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)
I have an error when using chdev with sudo as follows;
sudo chdev -l rmt0 -a block_size=512
chdev: 0514-518 Cannot access the CuDv object class in the device
configuration database.
I've added chdev in sudoers but still get the error, I guess it's something to do with CuDv... (3 Replies)
Is there a way to transfer my sudo password via ssh so that I can copy files remotely and pass them locally, so:
cat sudo-passwd-file|ssh -t user@10.7.0.180 'sudo find / -depth|cpio -oacv|gzip' > /path/to/dir/file.cpio.gz
I am in the process of a creating a script. Everytime I try and just... (16 Replies)
Hi Experts,
I am new to Shell scripting. I want to login to a server using a script. The normal command I use is --> sudo ssh <Servername> . when i tried putting this into a txt format file and tried running, it throw an error "can't execute". I am an Admin and i have root access. Any help would... (6 Replies)
I'm confused in the configuration of sudoers for one group of users.
The users need to execute a app from a remote machine, in this local machine they want me to allow ssh for them using sudo
for eg. sudo -u admin ssh -X euadmin@<IP address of remote> <remote script which opens a gui>
It... (1 Reply)
Discussion started by: anandk
1 Replies
LEARN ABOUT DEBIAN
config::model::models::ssh::portforward
Config::Model::models::Ssh::PortForward(3pm) User Contributed Perl Documentation Config::Model::models::Ssh::PortForward(3pm)NAME
Config::Model::models::Ssh::PortForward - Configuration class Ssh::PortForward
DESCRIPTION
Configuration classes used by Config::Model
Configuration class that represents the parameters required to specify port forwarding in a ssh configuration.
Elements
ipv6
Specify if the forward is specified iwth IPv6 or IPv4. Optional. Type boolean.
bind_address - bind address to listen to
Specify the address that the port will listen to. By default, only connections coming from localhost (127.0.0.1) will be forwarded.
By default, the local port is bound in accordance with the GatewayPorts setting. However, an explicit bind_address may be used to bind the
connection to a specific address.
The bind_address of 'localhost' indicates that the listening port be bound for local use only, while an empty address or '*' indicates that
the port should be available from all interfaces.Optional. Type uniline.
port
Listening port. Connection made to this port will be forwarded to the other side of the tunnel.Mandatory. Type uniline.
host - host name or address
Mandatory. Type uniline.
hostport - destination port
Port number to connect the tunnel to.Mandatory. Type uniline.
SEE ALSO
o cme
AUTHOR
Dominique Dumont
COPYRIGHT
2009-2011 Dominique Dumont
LICENSE
LGPL2
perl v5.14.2 2012-10-29 Config::Model::models::Ssh::PortForward(3pm)