07-31-2008
ssh user1@localhost "cd /apps/scripts; $COMMAND1"
user1 will be already logged into the user.But only user2 has the privilege to execute the command.
Hence I need to pass the password in the script.Any help.
ssh user2@localhost "cd /apps/scripts; $COMMAND1" somehow i need to pass password.
Only user2 can execute the command and user1 cannot.user1 will execute only the script.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi All,
I have written a script called findwho.sh
findwho.sh in Development Server
========
who -M>x
I want to copy the file findwho.sh
into Production Server and
run this script on it then output file x copy
back to the Development Server
1) Every time ftp findwho.sh to... (4 Replies)
Discussion started by: krishna
4 Replies
2. UNIX for Advanced & Expert Users
Hi,
When we use telnet (from unix workstation or windows) to remotely access the Unix server, the environment variables such as: DISPLAY, TERM, LOGNAME are communicate to the telnet server during the telnet session negotiation. By default these variables are passed to the server.
We can... (1 Reply)
Discussion started by: vtran4270
1 Replies
3. AIX
I have some AIX 4.3 machines which have disabled root telnet access.
When you run su - once logged on the machine requests a password and if one is supplied correctly it asks for another users password.
How do I configure this?
Any help is appreciated.
Thank you (0 Replies)
Discussion started by: uXion
0 Replies
4. Shell Programming and Scripting
Somewhat long story:
I have a simple Perl CGI script that uses Expect to Telnet to a device and grab some data, and then spits it back to Perl for display on the Webpage.
This works for many devices I've tried, but one device just fails, it keeps rejecting the password on this device, only... (1 Reply)
Discussion started by: jondo
1 Replies
5. Solaris
Hi Friend,
In my solaris 7 machine, I m able to ping the server. But i m not able to access from telnet, ssh. wht may be the reason ?
I already checked /etc/default/login /etc/sshd/ssh_config for ssh.
thnx in advance.
:rolleyes: (6 Replies)
Discussion started by: rajaramrnb
6 Replies
6. UNIX for Dummies Questions & Answers
Hello,
Is there a way on unix to see if a userid is suspended or revoked? I have an I.D but when I try to use it it keeps saying Sorry! (3 Replies)
Discussion started by: Grueben
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I was writing one script which includes to switch to the another telnet automatically from the present telnet server. I was using rlogin but firstly it takes the same user name of the present telnet and secondly it is prompting for the password.
But i want to switch to the another telnet... (2 Replies)
Discussion started by: Prateek
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I want to know the difference between these two services. Both are under xinetd. Both are used for enabling and disabling Telnet service. So, can somebody please explain me the difference between the two ?
Thanks in advance :) (0 Replies)
Discussion started by: kashifsd17
0 Replies
9. Shell Programming and Scripting
Hi,
Need some help on exiting the telnet session from the script.
#!/bin/ksh
telnet <ip>
it would print some text and
it would ask for a username and pwd.
I jus need to capture the text and i need to come out of the telnet session.
is it possible without expect ? (6 Replies)
Discussion started by: giri_luck
6 Replies
nstrtel(5) File Formats Manual nstrtel(5)
NAME
nstrtel - specifies the number of telnet device files the kernel can support for incoming telnet sessions
VALUES
Failsafe
Default
Allowed values
(Subject to available physical memory.)
It is best to use the default value, and there should not be any need to lower it. However, if the simultaneous telnet connection load is
very high, then the value of could be increased.
Recommended values
(Default value.)
DESCRIPTION
The telnet daemon uses two STREAMS-based pseudo-terminal drivers and The kernel parameter, can be used to tune the number of pseudo-termi-
nals. specifies the number of kernel data structures that are created at system boot time that are required to support the device files
used by incoming telnet sessions on a server. If the command or SAM is used to create more telnet device files, the value of must be
increased accordingly or the device files cannot be used because there are no kernel data structures available for communicating with the
system.
Who Is Expected to Change This Tunable?
Anyone.
Restrictions on Changing
Changes to this tunable take effect at the next reboot.
When Should the Value of This Tunable Be Raised?
When there is an increase in the load of telnet connections and there are no device files available to open telnet connections, then this
kernel parameter should be increased.
When the error is encountered, then the device files have been exhausted and should be raised. Once the value of is raised, should be run
to create new device files. (If SAM is used to raise the value of is run automatically.)
What Are the Side Effects of Raising the Value of This Tunable?
More resources would be consumed. Extra kernel data structures, and extra device files may clog the system.
When Should the Value of This Tunable Be Lowered?
It is not advisable to lower the tunable value from the default value. Consult HP Support before lowering this tunable from the default
value.
What Are the Side Effects of Lowering the Value of This Tunable?
Though not recommended, there would not be any side effects.
What Other Tunables Should Be Changed at the Same Time?
None.
WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of
HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
AUTHOR
was developed by HP.
SEE ALSO
insf(1M), telnetd(1M), telm(7), tels(7).
Tunable Kernel Parameters nstrtel(5)