Sponsored Content
Full Discussion: password in sudo script
Top Forums Shell Programming and Scripting password in sudo script Post 302539475 by KenJackson on Monday 18th of July 2011 12:14:55 AM
Old 07-18-2011
You may be able to do what you need to do from /etc/rc.local, which runs as root on startup.

BTW, a salmon is a fish but what's that allikm warhmat stuff?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sudo in OS X shell script without password prompt??

I've written a shell script to alter a particular preference file on OS X (10.3.9), which works fine (tested by running the script from the terminal sat in front of the box). Problem is, I now have to run this script remotely across a number of machines via remote desktop, so where I've used the... (1 Reply)
Discussion started by: Brad_GNET
1 Replies

2. Linux

sudo, root password

Hi all.. I'm secering a RH 2.1 server, with gnome (not my choice...), as X manager. Is ther anyway to get sudo ask for root password other then the actual user's password? Like when you launch the graphical IHM to create a new user, it asks for root's password? Is there a way to do the same... (5 Replies)
Discussion started by: penguin-friend
5 Replies

3. Shell Programming and Scripting

verify sudo password

edited and removed (0 Replies)
Discussion started by: mdpalow
0 Replies

4. Shell Programming and Scripting

sudo, use in script without prompt for password

I need to create an automated script where I have to use sudo to switch to multiple user so the script stops and prompts for password, Is there a way I can provide the password in same command only? Remember that, I cannot disable the password settings of sudo as I dont have rights. (4 Replies)
Discussion started by: gauravgrover50
4 Replies

5. OS X (Apple)

Bash script prompt for sudo password?

I'm making a script that will be a double clickable .command file and I need it to prompt for the users admin password. So far I have: if ]; then sudo -p "Please enter your admin password: " date 2>/dev/null 1>&2 if ; then echo "You entered an invalid password... (2 Replies)
Discussion started by: PatGmac
2 Replies

6. AIX

Sudo ask for password

Hello I have a partition with Aix 5.3 and I install sudo I put the commands that I want to use x user and I put the option that donkask for password. But when I run with this user and I try to run that commands. ask me for a password. I put this line for no ask for password with that... (2 Replies)
Discussion started by: lo-lp-kl
2 Replies

7. Shell Programming and Scripting

password getting displayed using sudo

Hi While doing the following command password is gettin dispalyed : ssh <host> "sudo command ; exit" .... while i type my password for 2nd its gettin displayed ... i tried stty -echo and stty echo ... still i am havin problem..:confused: (1 Reply)
Discussion started by: ningy
1 Replies

8. Shell Programming and Scripting

ssh foo.com sudo command - Prompts for sudo password as visible text. Help?

I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this: #!/bin/bash rsync /path/on/local/machine/ foo.com:path/on/remote/machine/ ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies

9. Red Hat

Sudo + Nohup = no password?

Little confused here When i go to run sudo nohup ./script.ksh & I dont get asked for a password. It starts a process ID, I can see it when i do a ps -ef | grep script. But I dont get an output file from my script, so its not doing anything. What gives? does it have to do the "&" ? ... (4 Replies)
Discussion started by: nitrobass24
4 Replies

10. Solaris

Sudo without password Solaris 11.2

Hi guys, I have the strangest issue... might be a huge oversight.. who knows!! :) I am trying to configure a user to use sudo with no password, here is my sudoers configuration file root@isha:~# egrep -v "^$|^#" /etc/sudoers root ALL=(ALL) ALL %wheel ALL=(ALL) NOPASSWD: ALL... (5 Replies)
Discussion started by: akame
5 Replies
XFISHTANK(1)						      General Commands Manual						      XFISHTANK(1)

NAME
xfishtank - Fish swimming across your Root Window SYNOPSIS
xfishtank [-c <color>] [-b <limit>] [-f <limit>] [-i <mult>] [-r <rate>] [-m <num>] [-C <num>] [-d] [-p <file>] [host:display] DESCRIPTION
xfishtank is a animation program to simulate an Aquarium on your X desktop. Each fish can have up to 255 colors, but on startup the program takes all the colors from all the fish, and squeezes them down to all fit into the default colormap as best it can. Any fish can be any size in width and height. To make them look more like they are swimming, fish are animated (Very simple 2 frame animation). Fish CANNOT swim over each other, they will turn around if they are about to collide. OPTIONS
-c color Background color of the fishtank -b limit Number of bubbles (Default is set to 32) -f limit Number of fishes (Default is set to 10) -i inter Move interval (Default is set to 0.2) -r rate Move frequency (Default is set to 0.2) -m num Median cut to this many colors -C num Use only this many color cells -d Clip fish, swim on root window -p file Fish swim on picture in file -host:dpy This option specifies the X server to contact. SEE ALSO
X(1), xsetroot(1x) AUTHORS
Eric Bina, <ebina@ncsa.uiuc.edu> (Original author) Dave Black, <dlbb0@amdahl.com> (Linux port) TJ Phan, <phan@aur.alcatel.com> (TrueColor Support) Vincent Renardias <vincent@waw.com> (man page, Debian packaging) Send bugs (or their reports, or fixes) here: <http://www.debian.org/Bugs/>. V2.2 29 November 1996 XFISHTANK(1)
All times are GMT -4. The time now is 01:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy