Sponsored Content
Top Forums Shell Programming and Scripting How to pass root password with su and command? Post 303025247 by rbatte1 on Monday 29th of October 2018 09:51:14 AM
Old 10-29-2018
Could you have a cron job on each that looks for a central marker file? You could store the 'last restart' time on each device and compare it to the content of a central file to decide if you need to run the restart process, however I suppose that this is still automation.

One does wonder why do they not want system processes automated? If you are the admin, then you have the power to make your own decisions.

You could, for instance, open another port that listens for your connection and logs you on.


You say that direct root login is not permitted, then perhaps you could change it, but not allow password login. Would that help?




Kind regards,
Robin
 

10 More Discussions You Might Find Interesting

1. Answers to Frequently Asked Questions

Lost root password / Can't login as root

We have quite a few threads about this subject. I have collected some of them and arranged them by the OS which is primarily discussed in the thread. That is because the exact procedure depends on the OS involved. What's more, since you often need to interact with the boot process, the... (0 Replies)
Discussion started by: Perderabo
0 Replies

2. Linux

how to access root priveliges if root password is lost

wish to know how to access root password it root password is forgotten in linux (1 Reply)
Discussion started by: wojtyla
1 Replies

3. UNIX for Dummies Questions & Answers

I need it to prompt me for a root password, so I don't have to log as root

Hi folks, I'm trying to install a program, and I want to place some of the executables into /usr/bin so that they can be executed from any folder on the computer. I've been giveng the root password, but told never to log in directly as root. Instead, I can wait for a password prompt. However, I... (2 Replies)
Discussion started by: lunchtime
2 Replies

4. UNIX for Advanced & Expert Users

su command without password prompt to non-root account

Hello. I searched the internet for answers and don't seem to find any for about a day now. My problem. I want to su to a non-root account non-interactively, e.g. if I want to temporarily become prdusr, I want to su prdusr without keying prdusr's password every time. What I want is... (10 Replies)
Discussion started by: royale-sojin
10 Replies

5. Shell Programming and Scripting

how to change root password using shell script with standard password

Hi Friends. I am new to scripting now i want to change the root password using the script with standard password. which is the easy scripting to learn for the beginner, Thanks in advance. (2 Replies)
Discussion started by: kurva
2 Replies

6. Solaris

Solaris 8 - Asks for current root password when trying to change root password.

Hello All, I have several solaris boxes running Solaris 8. When changing root passwords on them, all will simply ask for the new root password to change and of course to re-type the new password. One of the systems however asks for the existing root password before it will display the new password... (8 Replies)
Discussion started by: tferrazz
8 Replies

7. Shell Programming and Scripting

Pass root password through script

I have several clients (over 120) connected to my server. I want to push some patch to all the client using a script which copies the file from the server to a specific path on the client and then installs it. But for installation of the patch, it needs to be done thorough root login on client.... (7 Replies)
Discussion started by: shahdeo
7 Replies

8. Solaris

Lost Root Password on VXVM Encapsulated Root Disk

Hi All Hope it's okay to post on this sub-forum, couldn't find a better place I've got a 480R running solaris 8 with veritas volume manager managing all filesystems, including an encapsulated root disk (I believe the root disk is encapsulated as one of the root mirror disks has an entry under... (1 Reply)
Discussion started by: sunnyd76
1 Replies

9. Ubuntu

Root access that can't change root password?

We are having a little problem on a server. We want that some users should be able to do e.g. sudo and become root, but with the restriction that the user can't change root password. That is, a guarantee that we still can login to that server and become root no matter of what the other users will... (2 Replies)
Discussion started by: 244an
2 Replies

10. UNIX for Beginners Questions & Answers

Can a root role change the root password in Solaris 10?

i do not have root on a solairs 10 server , however i do have the root role, i was wondering if I can change the root password as a a role with the passwd command? I have not tried yet. and do i have to use the # chgkey -p afterwards? i need to patch is why i am asking. thanks (1 Reply)
Discussion started by: goya
1 Replies
fence_rsb(8)						      System Manager's Manual						      fence_rsb(8)

NAME
fence_rsb - I/O Fencing agent for Fujitsu-Siemens RSB SYNOPSIS
fence_rsb [OPTION]... DESCRIPTION
fence_rsb is an I/O Fencing agent which can be used with the Fujitsu-Siemens RSB management interface. It logs into an RSB device via tel- net and reboots the associated machine. Lengthy telnet connections to the RSB device should be avoided while a GFS cluster is running because the connection will block any necessary fencing actions. fence_rsb accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent. fence_rsb can be run by itself with command line options. This is useful for testing. Vendor URL: http://www.fujitsu.com OPTIONS
-a IPaddress IP address or hostname of the RSB device. -h Print out a help message describing available options, then exit. -l login Login name. -n telnet_port The port number on which the telnet service listens. -o action The action required. This can be reboot (default), off, on, or status. -p password Password for login. -S path Full path to an executable to generate the password for login. -v Verbose. Print informational messages to standard out. -V Print out a version message, then exit. STDIN PARAMETERS
agent = < param > This option is used by fence_node(8) and is ignored by fence_rsb. ipaddr = < hostname | ip > IP address or hostname of the device. telnet_port = < port number > The port number on which the telnet service listens. login = < param > Login name. option = < param > The action required. This can be reboot (default), off, on, or status. passwd = < param > Password for login. passwd_script = < param > Full path to an executable to generate the password for login. SEE ALSO
fence(8), fence_node(8) fence_rsb(8)
All times are GMT -4. The time now is 08:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy