Sponsored Content
Full Discussion: root password
Top Forums Shell Programming and Scripting root password Post 17867 by Cameron on Wednesday 20th of March 2002 07:53:31 PM
Old 03-20-2002
Also (from memory) make sure that your default file (/etc/auth/system/default) still exists.

Pretty sure that's it, otheruwise you won't be able to rcmd the other server
 

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. Linux

root password

Hi everybody: I have a problem. How does it possible that when I type the root password on terminal, later write: su password: ****** System recognize the password, but when a I use the GUI environment, the system does not recognize it. Any suggestion. :o Thanks in advance. (2 Replies)
Discussion started by: tonet
2 Replies

5. HP-UX

Root Password

Hi all, I am changing the root password periodically from eg: password01 to password02. However, I can still use password01 after it is changed, it seems that it only authenticates up the first few characters. Please can someone let me know how I can fix this. Thanks Ryan (1 Reply)
Discussion started by: macgre_r
1 Replies

6. 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

7. 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

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
rcmd(3) 						     Library Functions Manual							   rcmd(3)

NAME
rcmd, rcmd_r - Allow execution of commands on a remote host LIBRARY
Standard C Library (libc.a) SYNOPSIS
#include <sys/types.h> #include <netdb.h> #include <unistd.h> int rcmd( char **host, u_short port, char *local_user, char *remote_user, char *command, int *err_file_desc); The following function is supported in order to maintain backward compatibility with previous versions of the operating system. int rcmd_r( char **host, u_short port, char *local_user, char *remote_user, char *command, int *err_file_desc, struct hostent_data *host_data); PARAMETERS
Specifies the name of a remote host that is listed in the /etc/hosts file. The function sets the host parameter to be the fully qualified hostname. Specifies the well-known port to use for the connection. The /etc/services file contains the DARPA Internet services, their ports, and socket types. Points to usernames that are valid at the local host. Any valid username can be given. Points to usernames that are valid at the remote host. Any valid username can be given. Specifies the name of the command to be executed at the remote host. Points to an address used by rcmd() to store a pointer to the file descriptor for a channel used by the remote process to write stderr mes- sages and to accept bytes as signal numbers to be forwarded to the process group of the command. If a null pointer is specified, the standard error (stderr) of the remote command is the same as the standard output (stdout). No provi- sion is made for sending arbitrary signals to the remote process. However, it is possible to send out-of-band data to the remote command. Per-thread data for reentrant version. DESCRIPTION
The rcmd() (remote command) function allows execution of certain commands on a remote host. For example, the rcmd() function is used by rsh and rlogin, among others. The rcmd() function looks up a host via the name server or, if the local name server is not running, via the /etc/hosts file. If the con- nection succeeds, a socket in the Internet domain of type SOCK_STREAM is returned to the calling process and given to the remote command as standard input (stdin) and standard output (stdout). Always specify the host name. If the local domain and remote domain are the same, specifying the domain parts is optional. The rcmd() function returns the fully qualified hostname in the host parameter. To reuse the host name in another rcmd() call, you should make a string copy of the host parameter. For example: rcmd ( &host, .... ); first_host = strdup(host); ... rcmd ( &host, .... ); Only processes with an effective user ID of root user can use the rcmd() function. An authentication scheme based on remote port numbers is used to verify permissions. Ports in the range from 0 to 1023 can only be used by a root user. NOTES
The rcmd_r() function is the reentrant version of rcmd(). It is supported in order to maintain backward compatibility with previous ver- sions of the operating system. The netdb.h header file defines the hostent_data structures. RETURN VALUES
Upon successful completion, the rcmd() function returns a valid socket descriptor. The function returns a value of -1 if the effective user ID of the calling process is not root user, if the function fails to resolve the host, or if it encounters a socket connection error. FILES
Contains the service names, ports, and socket types. Contains hostnames and their addresses for the hosts in a network. Contains the name server and the domain name. RELATED INFORMATION
Functions: gethostname(2), rresvport(3), rresvport_af(3), ruserok(3), sethostname(2). Commands: rlogin(1), rsh(1). delim off rcmd(3)
All times are GMT -4. The time now is 07:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy