11-09-2010
Well, someone said it did, so I humored them.
The PW could be in an env var, but of course then it will be in every core dump and has to be set somewhere!
The ssh2 trusted user Public-Private Key passwordless authentication is my recommendation, as sometimes changing user also means changing host!
We never mentioned writing a set-uid executable, but that is usually too much of a pain! Hidden trick is cc -R to locate shared objects without environment.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do you determine what user a process is running as? I want to know what user proftpd is running as, and what user a script that I have is running as. Thanks. (1 Reply)
Discussion started by: america2
1 Replies
2. Shell Programming and Scripting
get email notification from from system when a process from XXXX user takes longer than 15 min run.Let me know the time estimation for the same.
hi ,any one please tell me , how to write a script to get email notification from system when a process from as mentioned above a xxxx user takes... (1 Reply)
Discussion started by: kirankrishna3
1 Replies
3. Shell Programming and Scripting
Hello All!
I am attempting to create a shell script that will execute another shell script (mandatory by 3rd party software I'm attempting to automate).
What I want to do is simply this, once the shell script is run, it will execute the other shell script (I have that done fine and working),... (8 Replies)
Discussion started by: foghsho
8 Replies
4. Shell Programming and Scripting
HI, I'm search to transfer a process ID form the User A to the User B with out super user privilege. Would it be possible. Please leave your (1 Reply)
Discussion started by: Prabhu.Are
1 Replies
5. Shell Programming and Scripting
Hi,
I need an output of process running on server, i am executing
ps -ef | grep test
output is
asak 22362 1 0 Nov07 ? 00:00:03 /usr/software/bin/perl-5.8.8 /u/assk/bin/test -v none JOBID=2012117
asak 23748 22362 0 Nov07 ? 00:00:00 /usr/software/bin/perl-5.8.8... (3 Replies)
Discussion started by: asak
3 Replies
6. Shell Programming and Scripting
Hi all,
I have a script that runs sftp with expect so I can login and send a file in a cronjob. I've installed this on a couple other servers and it has been fine. However, this time on this machine, it seems to be giving me an issue. It won't move past the spawn sftp command and return a... (3 Replies)
Discussion started by: ltyrrell
3 Replies
7. Shell Programming and Scripting
Hi All,
I have written one script, which is connecting 3 diffrent servers and executing script placed on those.
It is smthing like:
spawn ssh user@server1
expect "*? assword:"
send "pw \r"
expect "$"
send " sh ./filename1 \r"
expect "$"
expect eof
spawn ssh user@server2
expect "*?... (7 Replies)
Discussion started by: KDMishra
7 Replies
8. Shell Programming and Scripting
I am doing some file manipulation and then a bcp once all the files are processed. I need to do the following
for all files in dirctory
begin
-Step 1 use another shell/perl to format the file
done
in the end load into db using bcp
I want to do step 1 and step in a seperate... (2 Replies)
Discussion started by: tasmac
2 Replies
9. Solaris
Hi folks,
How can I list all the processes that running by a specific user, I don't know if
ps -u USERID
can help me in that, is there any other way to get a full information about the current services and process information which related to the users.
Thanks (4 Replies)
Discussion started by: leo_ultra_leo
4 Replies
10. Shell Programming and Scripting
Hi,
I have a script that run every 10 minutes, from a specific timeframe of the day, for example 0500 - 1900.
The script is some sort of checker script for an application log file and check for errors and email us if there is error/s reported in the log.
At the moment, I schedule it... (1 Reply)
Discussion started by: newbie_01
1 Replies
LEARN ABOUT CENTOS
tpmtoken_import
tpmtoken_import(1) General Commands Manual tpmtoken_import(1)
TPM Management - tpmtoken_import
NAME
tpmtoken_import - import an X.509 certficate and/or an RSA key pair into the user's TPM PKCS#11 data store
SYNOPSIS
tpmtoken_import [ OPTION ] FILE
DESCRIPTION
tpmtoken_import imports a PEM formatted representation of an X.509 certificate and/or an RSA key contained in FILE.
Importing an X.509 certificate creates an X.509 Public Key Certificate PKCS#11 object and also an RSA Public Key PKCS#11 object using the
RSA public key contained in the certificate. The certificate's key must be an RSA key in order for the certificate to be successfully
processed by this command.
Importing an RSA key creates an RSA Public Key and an RSA Private Key PKCS#11 object. In order to associate the RSA PKCS#11 objects with
an X.509 Public Key Certificate PKCS#11 object, the RSA PKCS#11 objects must have a subject name and key identifier associated with them.
This can be accomplished by supplying the corresponding X.509 certificate as an optional command parameter.
The input can contain PEM formatted representations of both an X.509 certificate and an RSA key. If both representations are present then
an X.509 Public Key Certificate PKCS#11 object, an RSA Public Key PKCS#11 object and an RSA Private Key PKCS#11 object are created.
-h, --help
Display command usage info.
-v, --version
Display command version info.
-l, --log [none|error|info|debug]
Set logging level.
-i, --idfile FILE
Use FILE as the PEM formatted X.509 certificate input used to obtain the subject and id attributes
-k, --token STRING
Use STRING to identify the label of the PKCS#11 token to be used
-n, --name STRING
Use STRING as the label for the imported object(s)
-p, --public
Import the object(s) as a public object
-t, --type key|cert
Import only the specified object type
-y, --yes
Assume an answer of yes for any confirmation prompts that would normally be asked
SEE ALSO
tpmtoken_init(1), tpmtoken_setpasswd(1), tpmtoken_objects(1), tpmtoken_protect(1)
REPORTING BUGS
Report bugs to <trousers-users@lists.sourceforge.net>
TPM Management 2005-04-25 tpmtoken_import(1)