Sponsored Content
Top Forums UNIX for Advanced & Expert Users xwindows over ssh after sudo? Post 302086652 by scottsl on Friday 25th of August 2006 11:27:16 AM
Old 08-25-2006
Duh!

I'm so used to importing the environment never thought about leaving the "-" off. That worked....Thanks for the response.
 

10 More Discussions You Might Find Interesting

1. 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

2. UNIX for Advanced & Expert Users

sudo and ssh

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)
Discussion started by: john_prince
9 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. HP-UX

Need ssh,sudo,ftp packages for HP-UX 11.00

Hi Folks, I am in need of ssh,sudo,ftp packages for HP-UX 11.00 Was not able to get it on HP itrc/ hp support center. please suggest. (1 Reply)
Discussion started by: SiddhV
1 Replies

7. 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

8. 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

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
weblatency.d(1m)						   USER COMMANDS						  weblatency.d(1m)

NAME
weblatency.d - website latency statistics. Uses DTrace. SYNOPSIS
weblatency.d DESCRIPTION
This prints statistics for hostnames that browers have set GET requests for, in particular latency by hostname. The latency measured is from the browser sending the GET request to when the browser begins to recieve the response. It is an overall response time for the client, and encompasses connection speed delays, DNS lookups, proxy delays, and web server response time. This is written as an experimental tool, and may not work at all with your browser. Since this uses DTrace, only users with root privileges can run this command. EXAMPLES
Print report after Ctrl-C is hit, # weblatency.d FIELDS
HOST hostname from URL NUM number of GETs AVGTIME(ms) Average time for response, ms MAXTIME(ms) Maximum time for response, ms NOTES
See the source code for the "BROWSER" variable, which sets the browser to trace (currently set to "mozilla-bin"). IDEA
Bryan Cantrill (who wrote an elegant version for Sol 10 update 1) DOCUMENTATION
See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with ver- bose descriptions explaining the output. EXIT
weblatency.d will sample until Ctrl-C is hit. AUTHOR
Brendan Gregg [Sydney, Australia] SEE ALSO
dtrace(1M) version 0.60 Nov 30, 2005 weblatency.d(1m)
All times are GMT -4. The time now is 07:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy