[Openstack] {Disarmed} Re: Fedora/cirros instance failed to set root password

Georgios Dimitrakakis giorgis at acmac.uoc.gr
Fri Dec 19 14:49:11 UTC 2014


 Doing that is changing the password for "fedora" user and not "root"


 When you ssh as the "fedora" user do "sudo su" and you will be able to 
 login as "root" directly provided that the keys have been correctly 
 injected.

 You can then set the password for "root"

 Best,

 George

> Hi Girija Sharan,
>
> I tried it it is giving me
>
> [fedora at blabla ~]$ passwd
> Changing password for user fedora.
> Changing password for fedora.
> (current) UNIX password:
> passwd: Authentication token manipulation error
> [fedora at blabla ~]$
>
> [fedora at blabla ~]$ su - root
> Password:
> su: Authentication failure
>
> here is the admin pass as shown below "uTU3H5er7yZS"
>
> I enter this password gives error
>
> i the above commands used the same admin pass
>
> stack at celestial-PC-1:~/devstack$ nova boot --flavor 3 --image
> 9d30b9b5-d648-4af1-ad24-d5792d3f1909 --key-name nnnn --security-group
> default blabla
> 
> +--------------------------------------+----------------------------------------------------------------------+
> | Property | Value |
> 
> +--------------------------------------+----------------------------------------------------------------------+
> | OS-DCF:diskConfig | MANUAL |
> | OS-EXT-AZ:availability_zone | nova |
> | OS-EXT-SRV-ATTR:host | - |
> | OS-EXT-SRV-ATTR:hypervisor_hostname | - |
> | OS-EXT-SRV-ATTR:instance_name | instance-00000001 |
> | OS-EXT-STS:power_state | 0 |
> | OS-EXT-STS:task_state | scheduling |
> | OS-EXT-STS:vm_state | building |
> | OS-SRV-USG:launched_at | - |
> | OS-SRV-USG:terminated_at | - |
> | accessIPv4 | |
> | accessIPv6 | |
> | adminPass | uTU3H5er7yZS |
> | config_drive | |
> | created | 2014-12-19T12:29:45Z |
> | flavor | m1.medium (3) |
> | hostId | |
> | id | 898a3c21-c1bf-4325-93ac-f14315dd2210 |
> | image | Fedora-x86_64-20-20140618-sda
> (9d30b9b5-d648-4af1-ad24-d5792d3f1909) |
> | key_name | nnnn |
> | metadata | {} |
> | name | blabla |
> | os-extended-volumes:volumes_attached | [] |
> | progress | 0 |
> | security_groups | default |
> | status | BUILD |
> | tenant_id | 2d51ee7250aa4532801f83fda82468fc |
> | updated | 2014-12-19T12:29:46Z |
> | user_id | f923e8ad018a40c4a315fa1c23126eed |
> 
> +--------------------------------------+----------------------------------------------------------------------+
>
> Regards
> Neelu
>
>   On Friday, 19 December 2014 3:25 PM, Girija Sharan  wrote:
>
> Hi Som,
>
> As you said, you are able to ssh into the instance using keypair, why
> don't you just ssh into that and set root password using 'passwd'
> command or create another user with root permissions ?
>
> On Fri, Dec 19, 2014 at 3:06 PM, somshekar kadam  wrote:
>
>> Hi Girija Sharan,
>>
>> Thanks for pointing the link I will try and let me see if it works.
>>
>> I just need to set the root pasword so that I can install apache
>> wbserver on this instance.
>>
>> Is there any other best method to do it, which I not know.
>>
>> thanks in advance
>>
>> Regards
>> Neelu
>>
>> On Friday, 19 December 2014 2:44 PM, Girija Sharan wrote:
>>
>> Hi Som,
>>
>> Not sure on what you are looking for. But here is a link which
>> describe
>>
>> how to set root password during instance boot up.
>>
>>
> 
> http://kimizhang.wordpress.com/2014/03/18/how-to-inject-filemetassh-keyroot-passworduserdataconfig-drive-to-a-vm-during-nova-boot/
>> [10]
>>
>> On Fri, Dec 19, 2014 at 2:19 PM, somshekar kadam wrote:
>>
>>> Hi All,
>>>
>>> I am trying to set root password on
>>> Fedora-x86_64-20-20140618-sda/cirros instance it fails .
>>> DO I need to add anyother security rules, please what I am
>>> missing.
>>> I need to install apache webserver on this instance.
>>>
>>> Thanks in advance
>>>
>>> nova root-password gggg
>>> New password:
>>> Again:
>>> ERROR (HTTPNotImplemented): Unable to set password on instance
>>> (HTTP 501) (Request-ID: req-6d0eebe3-68c5-4d8d-80b7-8d4639b7c2d4)
>>>
>>> I have set all rules for security groups
>>> PC-1:~/devstack$ nova secgroup-list-rules default
>>> +-------------+-----------+---------+-----------+--------------+
>>> | IP Protocol | From Port | To Port | IP Range | Source Group |
>>> +-------------+-----------+---------+-----------+--------------+
>>> | icmp | -1 | -1 | MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
>>> MALICIOUS: 0.0.0.0/0 [1] | |
>>> | tcp | 1 | 65535 | MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
>>> MALICIOUS: 0.0.0.0/0 [2] | |
>>> | udp | 1 | 65535 | MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
>>> MALICIOUS: 0.0.0.0/0 [3] | |
>>> | tcp | 22 | 22 | MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
>>> MALICIOUS: 0.0.0.0/0 [4] | |
>>> | tcp | 80 | 80 | MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
>>> MALICIOUS: 0.0.0.0/0 [5] | |
>>> | tcp | 443 | 443 | MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
>>> MALICIOUS: 0.0.0.0/0 [6] | |
>>> | tcp | 3306 | 3306 | MAILSCANNER WARNING: NUMERICAL LINKS ARE
>>> OFTEN MALICIOUS: 0.0.0.0/0 [7] | |
>>> | tcp | 53 | 53 | MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
>>> MALICIOUS: 0.0.0.0/0 [8] | |
>>> +-------------+-----------+---------+-----------+--------------+
>>>
>>> Regards
>>> Neelu
>
>
>
> Links:
> ------
> [1] http://0.0.0.0/0
> [2] http://0.0.0.0/0
> [3] http://0.0.0.0/0
> [4] http://0.0.0.0/0
> [5] http://0.0.0.0/0
> [6] http://0.0.0.0/0
> [7] http://0.0.0.0/0
> [8] http://0.0.0.0/0
> [9] mailto:girijasharansingh at gmail.com
> [10]
> 
> http://kimizhang.wordpress.com/2014/03/18/how-to-inject-filemetassh-keyroot-passworduserdataconfig-drive-to-a-vm-during-nova-boot/
> [11] mailto:som_kadam at yahoo.co.in
> [12] mailto:som_kadam at yahoo.co.in





More information about the Openstack mailing list