05-10-2009
Authenticate Shell script
Hi
I want to create a script that will authenticate user from a file and if both of them match then only the script is allowed to be executed...
Suppose I have a script say test.sh and a file config.txt
for users whose user ids exist in the text file should only be given permission to execute the script...
Thanks
10 More Discussions You Might Find Interesting
1. AIX
I'm having this issue on one of my AIX box, whenever I try to do scp it asks for user, domain and password and just errors out, scp works fine on other AIX servers.
I already checked the permissions of .sshd and its files, stopped and restarted sshd subsystem.
Also it never asks for user, domain... (5 Replies)
Discussion started by: barkath
5 Replies
2. Shell Programming and Scripting
Hi All,
This is my first post. Need your favour guys.
I need to authenticate syabse login/password thru shell script.
I am getting the ID & Pwd form user and storing it in variable..
But how to authenticate and echo user back if the id/pwd doesnt work.
isql -U$1 -P$2 -S$3 ??
... (1 Reply)
Discussion started by: libin4u2000
1 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
This is my first post. Need your favour guys.
I need to authenticate syabse login/password thru shell script.
I am getting the ID & Pwd form user and storing it in variable..
But how to authenticate and echo user back if the id/pwd doesnt work.
isql -U$1 -P$2 -S$3 ??
thanks in... (3 Replies)
Discussion started by: libin4u2000
3 Replies
4. Shell Programming and Scripting
Hi
I'd like to use a script bash that every morning automatically get from a server the file i need.
The problem is that i should myself authenticate on a server, i mean i have to insert username and passwd.
Do you know any reference or guide where i can read about?
Thanks
D. (4 Replies)
Discussion started by: Dedalus
4 Replies
5. UNIX for Advanced & Expert Users
Using unix shell script file I need to telnet to a IP further send a command to the telnet IP and get the response to a file with out using "expect" utility and I have achieved this by below command.
(sleep 3; echo admin; sleep 3; echo mypass; sleep 5;echo "show status-list"; sleep 5; echo... (3 Replies)
Discussion started by: raghunath Rao
3 Replies
6. Red Hat
Hi,
I have installed Nagios on Redhat 5 using rpms, it was successully installed and I have started the nagios and httpd service.
While login on browser, using nagios userid and password, I am unable to login
I have installed nagios and nagios-plugin rpms both.
I have used the command... (0 Replies)
Discussion started by: manoj.solaris
0 Replies
7. IP Networking
I have customer who controls access to the internet via TACACS server, basically a PIX firewall uses authentication from the TACACS to say if traffic is allowed to pass out of the gateway. I can't find anything on how to configure a linux client of TACACS authentication only how to set up a linux... (1 Reply)
Discussion started by: metallica1973
1 Replies
8. UNIX for Advanced & Expert Users
Hi there,
I run a lab of around 20 systems. I have setup my LDAP server and LDAP clients. But when I try to log on to other cleint machines from a client machine, the error shows that "Permission Denied". On the other hand, if I login onto server from any client machine, the communication takes... (1 Reply)
Discussion started by: Ankur Goyal
1 Replies
9. UNIX and Linux Applications
Hi All,
I've installed FreeRadius 2.2.0 in Oracle Solaris 10 1/13, and I'm getting Access-Reject when tried using 'radtest' tool. When debugging is enabled I'm getting the following message
Debug: ERROR: No authenticate method (Auth-Type) found for the request: Rejecting the user
I've... (0 Replies)
Discussion started by: Buddhike G
0 Replies
10. UNIX for Advanced & Expert Users
Hello folks, Please advise me what is the best way to authenticate Windows AD users against Linux machines.
Currently I am going to take a look of Vintela Authentication Services and please let me know if you have experience with VIntela.
Thanks in advance (1 Reply)
Discussion started by: Vit0_Corleone
1 Replies
LEARN ABOUT CENTOS
script-email
SCRIPT-EMAIL(8) System Administration Commands SCRIPT-EMAIL(8)
NAME
script-email - Amanda script to send email notifications
DESCRIPTION
script-email is an Amanda script implementing the Script API. It should not be run by users directly. It sends a notification email to the
addresses specified in the MAILTO property.
PROPERTIES
This section lists the properties that control script-email's functionality. See amanda-scripts(7) for information on the Script API,
script configuration.
MAILTO
List of email addresses that will receive an email on command execution. It is a multi-valued property:
property "MAILTO" "amanda@domain.com" "sysadmin@domain.com" "amandauser@domain.com"
EXAMPLE
In this example, script-email is scheduled to be run before the DLE, on the server. The unqualified email address amanda will be passed to
the email system unchanged. The script is then attached to a dumptype, which can then be specified for any DLEs which require
notification.
define script-tool pre-email {
comment "email me before this DLE is backed up"
plugin "script-email"
execute-on pre-dle-backup
execute-where server
property "mailto" "amanda"
}
define dumptype user-tar-email {
user-tar
script "pre-email"
}
SEE ALSO
amanda(8), amanda.conf(5), amanda-client.conf(5), amanda-scripts(7)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHORS
Jean-Louis Martineau <martineau@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Dustin J. Mitchell <dustin@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Amanda 3.3.3 01/10/2013 SCRIPT-EMAIL(8)