10-04-2012
Switching between users on UNIX without private key (intentional)
Hello Everyone,
I'm new to unix and having trouble with switching users
s_user='sample_user', I need to connect to a remote server using the user "sampleuser" copy files on that remote server. However I am not allowed to add a private key to that same server nor add scripts on sampleuser's directory so this is the most plausible solution I could come up with.
########start#########
s_user='sampleuser'
su - $s_user
########end###########
it does prompts me for the password of that user but it terminates and has this "error"
./sample.sh[10]: 741 Killed
Please help me
And also it would be nice if you could with ideas in making a login 'prompt' for users. Thanks Very Much
10 More Discussions You Might Find Interesting
1. Programming
Hi all,
I have written a Java program to generate RSA public and private keys. I am writing the keys to a file and reading from it when required to encryption or decryption. I want to protect the private key file using a passphrase. Can anyone tell me how to do it? :(
Thanks. (2 Replies)
Discussion started by: Treasa
2 Replies
2. Windows & DOS: Issues & Discussions
Hello all,
I have a bit of trouble working a passwordless SSH from UNIX to Cygwin running windows 2k3. Here are some details. I AM able to SSH from the Windows box to the UNIX box using the keys. Also, I'm able to SSH from UNIX to Windows w/o the keys. However, when I try to do it with the keys... (9 Replies)
Discussion started by: kclerks11
9 Replies
3. Shell Programming and Scripting
I wish to generate a id_dsa.pub and id_dsa (Public and Private Key) in a common user group. I have checked the .ssh directory and i have already found id_dsa.pub and id_dsa existing.
Is that OK if i create both the keys in my home direcotry, rename it to jjj.pub and jjj and move to Common user... (1 Reply)
Discussion started by: vasuarjula
1 Replies
4. Solaris
I would like to ask if you have a procedure on how to upload multiple private key for multiple users in solaris? I was only able to add one but when I tried to add several key, it fails.
example:
a. user1: user1.ppk
b. user2: user2.ppk
Each with different password on the server. Pls advise (6 Replies)
Discussion started by: lhareigh890
6 Replies
5. Shell Programming and Scripting
hello,
iam able to ssh to a linux server from a linux server called "machine1" using the private/public key method, so I dont need to enter any password when I run my script but iam not able to ssh from machine1 to a UNIX server, access is denied.
note that I am using an application id which is... (6 Replies)
Discussion started by: wydadi
6 Replies
6. UNIX for Dummies Questions & Answers
Hi everyone!
I know you can extract public keys from a keystore using the keytool command.
But what is the process to extract a private key from a jks keystore and import into another jks keystore using keytool?
Any guidance would be greatly appreciated! I can't seem to find anything, I do... (0 Replies)
Discussion started by: Keepcase
0 Replies
7. UNIX for Dummies Questions & Answers
Hello all,
We have unix environment and we would like to use ssh public and private key to move between server using ssh. I do know how to test this and have it up and running on some sandbox...but my question is how would one secure the PRIVATE KEY....we are not using a passphrase...and i know... (1 Reply)
Discussion started by: abdul.irfan2
1 Replies
8. Shell Programming and Scripting
I have two types of files
pubring.pkr
secring.skr
secring.skr is encrypted and not able to read.
How can i read secring.skr in text format after decrypting ?
is there any way of decrypting this file?
Unix HP - UX Version. (4 Replies)
Discussion started by: airesh
4 Replies
9. OS X (Apple)
Before you get the wrong idea, I am not looking for how to generate one. I have a key from a server admin but I can't figure out how to use it in OS X.
I have the key, the address and everything I should need but there doesn't seem to be a step by step on how to install the key and use it in... (4 Replies)
Discussion started by: kylebellamy
4 Replies
10. UNIX for Advanced & Expert Users
Hi,
we have private and public key, encrypt file using public and want to decrypt using private key. can you please advise below commands are correct or other remedy if unix have?
encrypt -a arcfour -k publickey.asc -i TESTFILE.csv -o TESTFILE00.csv
decrypt -a arcfour -k privatekey.asc... (2 Replies)
Discussion started by: rizwan.shaukat
2 Replies
LEARN ABOUT DEBIAN
fluxbox-remote
FLUXBOX-REMOTE(1) Fluxbox Manual FLUXBOX-REMOTE(1)
NAME
fluxbox-remote - command line access to key commands for fluxbox(1)
SYNOPSIS
fluxbox-remote command
DESCRIPTION
fluxbox-remote(1) is designed to allow scripts to execute most key commands from fluxbox(1). fluxbox-remote(1) will only work with
fluxbox(1): its communications with fluxbox(1) are not standardized in any way. It is recommended that a standards-based tool such as
wmctrl(1) be used whenever possible, in order for scripts to work with other window managers.
CAVEATS
fluxbox-remote(1) uses the X11 protocol to communicate with fluxbox(1). Therefore, it is possible for any user with access to the X(7)
server to use fluxbox-remote(1). For this reason, several key commands have been disabled. Users should be aware of the security
implications when enabling fluxbox-remote(1), especially when using a forwarded X(7) connection.
RESOURCES
session.screen0.allowRemoteActions: <boolean>
This resource in ~/.fluxbox/init must be set to 'true' in order for fluxbox-remote(1) to function. Please read the CAVEATS first.
ENVIRONMENT
In order to communicate with fluxbox(1), the DISPLAY environment variable must be set properly. Usually, the value should be ':0.0'.
AUTHORS
This man page written by Mark Tiefenbruck <mark at fluxbox.org>
SEE ALSO
fluxbox(1) fluxbox-keys(5) wmctrl(1)
AUTHOR
Mark Tiefenbruck <mark@fluxbox.org>
Author.
fluxbox-remote.txt 27 February 2011 FLUXBOX-REMOTE(1)