change root password

Just about everything about Red Pitaya
Post Reply
User avatar
fastjack
Posts: 8
Joined: Mon Nov 10, 2014 12:01 pm
Location: The Netherlands

change root password

Post by fastjack » Sun Dec 27, 2015 10:19 pm

Hi there,
I can access the RP with root and password root over SSH. That's great of course.
But from a security point of view I would like to change the password. How should one do that?
I have tried with passwd and succeeded. However, after a reboot the password is root again. So how can I store the changed password?
Thanks a lot
Fastjack

toffline
Posts: 4
Joined: Sun Dec 20, 2015 12:53 pm

Re: change root password

Post by toffline » Sat Jan 02, 2016 11:30 am

Hi and also a happy new year 2016,

I had no problems to change the root password.

See here:

Code: Select all

login as: root
Server refused our key
root@***'s password:
##############################################################################
# Red Pitaya GNU/Linux Ecosystem
# Version: 0.94
# Branch: master
# Build: 558
# Commit: 2c11e5ef7cddfa305033253e2381c2571699c90f
##############################################################################
Last login: Sat Jan  2 10:46:40 2016 from ***
redpitaya> ls -al /etc/shadow
-rw-r----- 1 root shadow 801 Jan  2 10:42 /etc/shadow
redpitaya> passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
redpitaya> ls -al /etc/shadow
-rw-r----- 1 root shadow 801 Jan  2 11:22 /etc/shadow
redpitaya> reboot



login as: root
Server refused our key
root@***'s password:
##############################################################################
# Red Pitaya GNU/Linux Ecosystem
# Version: 0.94
# Branch: master
# Build: 558
# Commit: 2c11e5ef7cddfa305033253e2381c2571699c90f
##############################################################################
Last login: Sat Jan  2 11:22:10 2016 from ***
redpitaya> ls -al /etc/shadow
-rw-r----- 1 root shadow 801 Jan  2 11:22 /etc/shadow
redpitaya>
So please try again.

Bye
Christian

Onnosr
Posts: 3
Joined: Fri Nov 20, 2015 5:01 pm

Re: change root password

Post by Onnosr » Sat Jan 09, 2016 6:29 am

Christian is right.

I changed the password successfully.
Thanks.

Onno

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: change root password

Post by Nils Roos » Sat Jan 09, 2016 5:33 pm

The issue is probably with the buildroot-based components (which was all that's available prior to 0.94). In the Debian scenario, changing the root password obviously works, as attested by previous posts.

With the buildroot environment that uses a ramdisk as primary filesystem, it's just not possible to persistently change the password in the running system. The only option is to set a different (non-changeable) password during the ecosystem build.

User avatar
fastjack
Posts: 8
Joined: Mon Nov 10, 2014 12:01 pm
Location: The Netherlands

Re: change root password

Post by fastjack » Thu Jan 21, 2016 11:17 am

Hi and thank you all for the replies.
I realise that I am not using the normal image as Nils already suggested, but I am using the image for the SDR tranceiver, which you can find here:
http://pavel-demin.github.io/red-pitaya ... ver-hpsdr/

So, my only optoin here is to fully rebuild the image with a new password embedded?

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 121 guests