Sponsored Content
Top Forums Shell Programming and Scripting running a script under different user Post 59213 by Gary Dunn on Monday 13th of December 2004 04:01:40 PM
Old 12-13-2004
reply

There is a special account set up to do secure cp "scp" and secure shell "ssh".

when you /bin/su - radacct

then do a ssh or scp you do not have to enter a password.


in order to do a ssh or scp automatically you need to use this special account for scp and ssh.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

check user id before running script

I am looking for the syntax to check which ID is executing script.sh. If the the ID, is not user1 then I want the script to exit and return to command prompt, if it is user1, then I want the script to continue. Any help would be greatly appreciate. Thank you. Chris (3 Replies)
Discussion started by: cpolikowsky
3 Replies

2. Shell Programming and Scripting

Find username of user running the script

Hello All, If I have a simple cgi script and want to find the name of the person accessing the page, is it possible? How do I get the name of this user? Please help. I was trying a vague method but it doesn't seem to work with all browsers and versions ... $val=$ENV{'HTTP_COOKIE'}; $name... (1 Reply)
Discussion started by: garric
1 Replies

3. Shell Programming and Scripting

As root , running script as different user with su - problem

Dear All I am running into a situation where I am running a script as another user lets say oracle using su command as below, and the script fails because the .profile of oracle is not executed so the environment variables are not set. cat /etc/passwd | grep oracle... (4 Replies)
Discussion started by: dbsupp
4 Replies

4. Shell Programming and Scripting

Running script from other user rather than login user

Hi, My requirement is that i am login from ROOT in a script but when any command is coming which is logging to sqlplus then i have to run it with normal user as only normal user have permission to connect to sqlplus . i tried making a script like this : #! /bin/ksh su -... (3 Replies)
Discussion started by: rawatds
3 Replies

5. Shell Programming and Scripting

running script as different user

I have script1 and script2 i have to make a third script say script3 where i have to run script1 as user1 and script2 as user2 i tried using su but is not working ...i have to give the password. i have an option of using "expect" but if i use "expect" i have to keep password in plane text inside... (7 Replies)
Discussion started by: pchangba1
7 Replies

6. Shell Programming and Scripting

Does running a cron job of a user require the user to be logged in?

Suppose user 'asdf' is not logged into server 'bbbb', but the server is up. User 'asdf' has cron job. Will it be executed? (1 Reply)
Discussion started by: thulasidharan2k
1 Replies

7. Shell Programming and Scripting

Capturing name of the user who is running a shell script

Hello All, I am writing a shell script which will run on build server where multiple users can login.These users can run this script at the same time. I want to capture the name of the user who ran the script for every instance.How can I do that ? Regards,... (1 Reply)
Discussion started by: anand.shah
1 Replies

8. Shell Programming and Scripting

Bash Question: HowTo Exit Script with User Input While Process is Running Mid-Loop?

Hi, I have written a script that allows me to repetitively play a music file $N times, which is specified through user input. However, if I want to exit the script before it has finished looping $N times, if I use CTRL+c, I have to CTRL+c however many times are left in order to complete the loop.... (9 Replies)
Discussion started by: hilltop_yodeler
9 Replies

9. Shell Programming and Scripting

Running shell script using different user

Hi, I do SSH to host using credential 'user1/password1' and execute 'wrapper.sh'. I want to execute another script 'another_script.sh' from 'wrapper.sh' script using different credentials say 'user2/password2' and want to make sure that the credential 'user2/password2' is always used to run... (7 Replies)
Discussion started by: Mahesh Desai
7 Replies
SECPANEL(1)						      General Commands Manual						       SECPANEL(1)

NAME
secpanel - a Tcl/Tk front-end to ssh and scp SYNOPSIS
secpanel DESCRIPTION
SecPanel serves as a graphical user interface for managing and running SSH (Secure Shell) and SCP (Secure Copy) connections. Note: SecPanel is not a new implementation of the SecureShell protocol or the ssh software-suite. SecPanel sits on top of SSH software-suites and supports the SSH.com and the OpenSSH-version. You may get information about these programs at http://www.ssh.com respectively at http://www.openssh.com. SecPanel is written entirely in pure Tcl/Tk and does not need any extensions but it requires Version 8.x of Tcl and Tk. SecPanel is free software and is released under the conditions of the GNU General Public License. See the file COPYING and notes in the source code for details. Features Saves and manages profiles of different SecureShell connections. Gives an ftpclient-like graphical interface/file listing for launching SCP-transfers. Editing of profiles mainly by mouse-clicking. Gives list of profiles to connect to. One list for default connections using a default profile and another list for managing special connections e.g. port-forwarding setups for reading mail. Management of the ssh-agent. Support for generating and distributing keys for public key authentication. Planned Features Support for the SSH2 protocol related options, configurations and special features of SSH.com's and OpenSSH's suites. AUTHOR
Steffen Leich <secpanel@pingx.net> SEE ALSO
ssh(1), scp(1), ssh-askpass(1), ssh-agent(1) Debian Project 2002-06-30 SECPANEL(1)
All times are GMT -4. The time now is 06:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy