Sponsored Content
Full Discussion: sudo and ssh
Top Forums UNIX for Advanced & Expert Users sudo and ssh Post 302489146 by DGPickett on Wednesday 19th of January 2011 03:01:10 PM
Old 01-19-2011
Can't you just "ssh ldaprole@yourhost ...." in the first place?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

xwindows over ssh after sudo?

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)
Discussion started by: scottsl
3 Replies

2. UNIX for Advanced & Expert Users

sudo and ssh

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)
Discussion started by: jOOc
3 Replies

3. UNIX for Advanced & Expert Users

ssh and sudo login

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)
Discussion started by: john_prince
5 Replies

4. Shell Programming and Scripting

ssh foo.com sudo command - Prompts for sudo password as visible text. Help?

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

5. Programming

Using Commands over SSH using Sudo

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)
Discussion started by: metallica1973
16 Replies

6. Red Hat

Sudo Password Prompt over SSH

I am not sure what I am missing here. I have the following identical entry in /etc/sudoers on multiple Red Hat 6.4 servers. icinga ALL=NOPASSWD:/usr/bin/yum --security --exclude\="kernel*" check-update On one server when I enter the command over SSH as follows it works fine. ssh -t -q... (1 Reply)
Discussion started by: scotbuff
1 Replies

7. Shell Programming and Scripting

Ssh & sudo

when the following command is issued the command prompt is received, how do I get past this? ssh -t usera@hosta sudo su - userb -c id (4 Replies)
Discussion started by: squrcles
4 Replies

8. Shell Programming and Scripting

Help in creating Sudo ssh script

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)
Discussion started by: Tom1989
6 Replies

9. Cybersecurity

Help on Ssh using sudo

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

10. Shell Programming and Scripting

Ssh does not support sqlplus and sudo -i?

Hey everybody, currently I am having an issue that I need to open an ssh session to a remote host, once on the remote host I need to use sudo and then execute sqlplus. Once the sqlplus call is open I need to execute one command while the sqlplus is active. For example show sga. I already got so... (3 Replies)
Discussion started by: h1kelds
3 Replies
greylist(1)							Mail Administration						       greylist(1)

NAME
greylist - command line interface to greylistd(8) SYNOPSIS
greylist { -h | --help | help } greylist operation ... DESCRIPTION
This program provides a command line interface to greylistd(8); please refer to that manual page for more information on the purpose and functionality of this program. USAGE
In the following discussion, data... typically refers to the following triplet of information: <sending host's IP address> <sender@address> <recipient@address> The following operations are available: add [--white|--grey|--black] data... Add data to the corresponding list (white if unspecified). If the triplet of a future mail deliveriy (subject to timeouts) matches this data, the idea is that the message would be accepted, temporarily rejected, or permanently rejected, respectively. delete data... Remove data from all lists. If the data exists in any list, the command returns an exit status of 0, otherwise -1. A message is printed on standard output indicating the action taken. check [--white|--grey|--black] data... Check the current status of data, i.e. if a message delivery would succeed if its triplet matched this data. If a list is speci- fied, the word "true" or "false" is printed, indicating whether the data was in the corresponding list; the exit status is also set accordingly. Otherwise, one of the words "white", "grey", and "black" is written on standard output, and the exit status is 0, 1, or 2, respectively. NOTE: This operation is non-intrusive, and thus does not update any of the greylist data. So, for instance, if the data is cur- rently in the "grey" list, but its minimum retry time (retryMin) has elapsed, the text "white" would be printed. However, unless an update takes place prior to the retryMax timeout, the data would still expire from the "grey" list. update [--white|--grey|--black] data... Same, but also update the greylist data accordingly. So if data is currently greylisted, but the minimum retry time retryMin has elapsed since it was first seen, data is moved to the "white" list. This operation would normally be used by mail transport agents (MTAs). stats Print some statistics on greylist utilization and hits. mrtg Print statistics on greylist and whitelist hits in a format that MRTG can use as an External Monitoring Script. list [--white] [--grey] [--black] Print available (original/unhashed) data items from the corresponding list(s). NOTE: Internally, greylistd(8) hashes the provided data into a single 32-bit value for efficiency. Prior to version 0.6, the origi- nal data was not retained; as of version 0.6, data is saved if the "savetriplets" setting in the [data] section of the configuration file is "true". Only data items (i.e. triplets) that have been seen while this setting were enabled can be listed. save Force greylist data to be immediately saved (synchronized) to the filesystem. Data is also saved after any operation if a certain update interval (default is 300 seconds/5 minutes) has elapsed since the last save, and there are no pending requests to greylistd(8). reload Save greylist data to files, then reload configuration and data. clear [--white] [--grey] [--black] Clear all items in the specified list(s), or all lists if none is specified. If the whitelist is cleared, all new data trilplets will initially be in a "grey" state. Use with caution! EXAMPLES
greylist add --white 1.2.3.4 mailinglist@somewhere subscriber@yourhost Whitelists messages received from the IP address 1.2.3.4 on behalf of <mailinglist@somewhere> to <subscriber@yourhost>. greylist check --grey 1.2.3.4 mailinglist@somewhere subscriber@yourhost Prints "true" or "false" on standard output, depending on whether mail received from the IP address 1.2.3.4 on behalf of <mail- inglist@somewhere> to <subscriber@yourhost> should be deferred or not, respectively. The data is neither recorded nor changed to a "white" state. FILES
/var/run/greylistd/socket The UNIX domain socket providing the main interface to "greylistd". AUTHOR
This python script and manual page is written by Tor Slettnes, originally for Debian GNU/Linux. COPYRIGHT
Copyright (C) 2004-2005 Tor Slettnes. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as pub- lished by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. On a Debian GNU/Linux system, the full text of the GPL is available in /usr/share/common-licenses/GPL. It is also available at: http://www.gnu.org/licenses/gpl.html SEE ALSO
greylistd(8) Greylisting daemon. greylistd-setup-exim4(8) Utility to add/remove support for greylistd in Exim 4 configuration files. Tor Slettnes 0.8 greylist(1)
All times are GMT -4. The time now is 04:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy