/etc/hosts via ssh


 
Thread Tools Search this Thread
Operating Systems AIX /etc/hosts via ssh
# 15  
Old 02-13-2007
Please post the output of
Code:
ls -l /

# 16  
Old 02-13-2007
Quote:
Originally Posted by Ebbi
Please post the output of
Code:
ls -l /

Code:
-rw-r--r--    1 root     root            0 2005-07-06 08:30 0
drwxr-xr-x    2 root     root         4096 2005-04-19 01:43 bin
drwxr-xr-x    3 root     root         4096 2005-04-19 01:43 boot
lrwxr-xr-x    1 root     root           10 2004-05-18 05:03 console -> /opt/ccfw/
drwxr-xr-x   30 root     root        61440 2006-07-31 13:03 dev
drwxr-xr-x    5 root     root         4096 2007-01-20 12:43 dump
drwxr-xr-x   46 root     root         4096 2007-01-23 14:48 etc
drwxr-xr-x    3 root     root         4096 2005-07-06 10:21 extra
drwxr-xr-x    2 root     root         4096 2004-10-13 00:06 hmcrbin
drwxr-xr-x    6 root     root         4096 2006-11-01 10:33 home
drwxr-xr-x    4 root     root         4096 2005-07-06 10:23 info
drwxr-xr-x    6 root     root         4096 2005-07-06 08:28 lib
drwx------    2 root     root         4096 2004-04-16 16:11 lost+found
drwxr-xr-x    4 root     root         4096 2004-04-16 08:17 media
drwxr-xr-x    4 root     root         4096 2004-04-16 12:45 mnt
drwxr-xr-x   10 root     root         4096 2005-07-06 08:35 opt
dr-xr-xr-x  419 root     root            0 2006-07-31 13:02 proc
drwx------   11 root     root         4096 2005-07-06 10:46 root
drwxr-xr-x    3 root     root         4096 2005-07-06 08:28 sbin
drwxr-xr-x    4 root     root         4096 2004-04-16 08:17 srv
drwxrwxrwt   12 root     root         8192 2007-02-13 14:00 tmp
drwxr-xr-x   15 root     root         4096 2005-07-06 10:24 usr
drwxr-xr-x   22 root     root         4096 2005-08-12 11:11 var
lrwxr-xr-x    1 root     root           16 2005-05-04 23:44 wsmssl-ext.jnlp -> wsmssl-none.jnlp

# 17  
Old 02-16-2007
restricted: cannot specify ... ; SHELL => /bin/hmcbash

Quote:
Originally Posted by DukeNuke2
seems like the shell and the user is restricted... so you have to get "root" rights to do the job!
I've got similar problems with other commands

pls verify environment variable SHELL

$ echo $SHELL
/bin/hmcbash <__or__> bin/bash

hmcbash is very restricted

Access per root to HMC seems to be not allowed

I haven't any idea how to get ride of them Smilie

Anyone other ... ?
# 18  
Old 02-16-2007
You don't get access to root on the HMC with out IBM support. There is a root password which depends on the serial number of the machine and also the date and time of day. You will have to call IBM support to have them give you a root password which will only work for one or two days.
# 19  
Old 02-22-2007
You can't edit the /etc/hosts file on HMCs like you can on a normal unix box. Check the man page for chhmc. I think there is a way to add aliases. Will check this out tomorrow and let you know how it's done (if at all possible).
# 20  
Old 02-22-2007
The HMC is based on linux but cannot be used as, or like, a UNIX machine, you only have a restricted shell.
You do not need to add your managed systems to /etc/hosts.

To add a managed system, select the Server Management bar and choose Add
Managed System(s)

Last edited by dukessd; 02-23-2007 at 07:59 PM..
# 21  
Old 02-23-2007
hmc

HMC is a closed box. It basically runs linux. You can only do what the HMC allows you to do. However, you can break out of the 'normal' shell and get real root access for the HMC. But I dont recall how to do it, its been a while, but it is some sort of control sequence.....but I must also warn you that in doing so, you invalidate your support for the HMC....even though you want to, best practice is to just leave it alone.

-Sowser
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ssh to validate multiple remote hosts connection validation.

Dear Folks, I am trying to read a config file contains ip and port numbers. i want to read each line of the config file and check ssh connection is happening or not. Kindly guide. Config file: abc@1.2.342 22 abc@1.2.343 22 abc@1.2.344 22 abc@1.2.345 22... (9 Replies)
Discussion started by: sadique.manzar
9 Replies

2. UNIX for Dummies Questions & Answers

How to search using ssh on multiple hosts?

Hi guys - I am having a hard time trying to figure how to search for a certain string on config files hosted on multiple hosts. This is an example: Hostnames: myhost1.mycompany.com|myhost2.mycompany.com|myhost3.mycompany.com String to search for: myipaddress.somehost.com Directory... (9 Replies)
Discussion started by: DallasT
9 Replies

3. Red Hat

Force ssl/ssh to use the hosts file

does anyone know how to force ssh/ssl to use the hosts file instead of DNS? I have disabled the DNS servers but ssh still will not resolve a host in the hosts file. thanks in advance for the help! DS (3 Replies)
Discussion started by: derrell simpson
3 Replies

4. Shell Programming and Scripting

SSH to remote hosts in shell scripting

Hi There, I have a file contaning some 100 servers names one by one the file called redhat_servers.txt I want to prepare a script where it should give me the host name and kernal version. I wrote like this, #!/bin/bash while read line do ssh $line "uname -nr" done <... (3 Replies)
Discussion started by: kumar85shiv
3 Replies

5. Shell Programming and Scripting

Logon to multiple hosts using ssh hardcode password

Hi im trying to write a script to logon to list of servers with same userID. I have no option/plan to implement ssh-keygen sharing between the systems, so i have written script creating 2 files, file1 holds list of hosts host1 host2 host3 file2 has following script for i in `cat file1`... (1 Reply)
Discussion started by: dreamaix
1 Replies

6. UNIX for Advanced & Expert Users

how to check if I'm allowed to ssh several hosts.

Hi guys! I'm working on a little script. I have a txtfile with several hosts, Unix team has copied my keys into several of those servers, but not all of them, I need to figure out which ones I don't have access to, (I want a list of servers I don't have access to, so I can request for it). This... (1 Reply)
Discussion started by: erick_tuk
1 Replies

7. Shell Programming and Scripting

ssh to multiple hosts and saving the output in the local host

hi I have a script to login from a host "A" to a list of hosts in a file and perform some commands inside it...its somethin like this for i in `cat file` do ssh -t $i " command1 ; command2; ..." done I wanna save the outputs in a file in the current host "A" i.e from where I am... (3 Replies)
Discussion started by: ningy
3 Replies

8. Red Hat

How to block ssh via /etc/hosts.deny

Hi.., I am using redhat5 server, i want to know the details about to block ssh via /etc/hosts.deny. Need help immediately (1 Reply)
Discussion started by: thakshina
1 Replies

9. Shell Programming and Scripting

Please advise on ssh to many hosts; su - and then commands

Hi, I would like to do ssh to many hosts and then would like to do 'su -' with respective host's passwords and execute certain commands. This being a secure and big network , we have to login every server individually and then su with different passwords. So is there a way to achive it? ... (2 Replies)
Discussion started by: newbewie
2 Replies

10. Shell Programming and Scripting

How to setup SSH between 4 hosts ?

Hi, I logged into h0011awe server. I am executing a script on this server which connects to other 3 hosts (h0022sam, h0033jar, h0044orc). In the script the command are like this orapmon=`ssh $USR@$host ps -ef|grep -v grep|grep pmon` I am using secured shell. How to setup that between these... (2 Replies)
Discussion started by: dreams5617
2 Replies
Login or Register to Ask a Question