If at any point I have the need to change the root password, will changing it in an SSH session make it permanent or will it go back to the one created during the ISO build wizard? I am just thinking that in the event a sys admin leaves the company and we need to change passwords would we have to create new ISOs with a new password and reinstall or will changing it from a terminal make that change permanent even after a reboot?
Thanks
[Solved] root password change
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
-
- Black ninja
- Posts: 51
- Joined: 21 Mar 2014, 14:02
- Distribution: porteus 3.7 kiosk
- Location: Chattanooga
[Solved] root password change
Last edited by rh102801 on 31 Mar 2014, 17:15, edited 1 time in total.
-
- Black ninja
- Posts: 51
- Joined: 21 Mar 2014, 14:02
- Distribution: porteus 3.7 kiosk
- Location: Chattanooga
Re: root password change
ok so after further reading I thing I understand (more or less) what I would need to do for this. Basically the ISO contains two directories named /base and /porteus which contain all the files and scripts used during the boot process and to load the kiosk image so basically any changes I make from my SSH connection to let's say the root account would not be permanent and would be wiped after a reboot unless, I copy the /home and /etc directories and replace the ones that are part of the ISO.
That being said I would need to run the squashfs command to extract the files from the ISO, replace the 2 directories (not sure of the specific files) with the live ones and then recreate the ISO using the built in script make_iso.sh
Am I on the right track? sort of?
Thanks
That being said I would need to run the squashfs command to extract the files from the ISO, replace the 2 directories (not sure of the specific files) with the live ones and then recreate the ISO using the built in script make_iso.sh
Am I on the right track? sort of?
Thanks
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: root password change
post deleted as instructions were given for Desktop Edition.
fanthom
fanthom
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
-
- Black ninja
- Posts: 51
- Joined: 21 Mar 2014, 14:02
- Distribution: porteus 3.7 kiosk
- Location: Chattanooga
Re: root password change
Well I guess I was looking at this all wrong. after spending 2 days on this I just realized that I forgot that I was working on a Porteus desktop trying to modify the root user configuration of the kiosk version. I got as far as unpacking the ISO for the kiosk, unquashing the 003settings.xzm file but once there I am not sure how to change the password for root. This is the only thing keeping me from deploying this as a preferred solution as my boss wants to be able to change this root password as needed without having to go to the wizard on the web and creating a new ISO.
Any ideas would be greatly appreciated.
Thanks
Any ideas would be greatly appreciated.
Thanks
- francois
- Contributor
- Posts: 6501
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: root password change
Hello rh.
The root password on kiosk is set when you customize it before downloading the iso.
You can customize the kiosk ISO using the kiosk wizard here, see second section:
http://build.porteus.org/kiosk/
The root password on kiosk is set when you customize it before downloading the iso.

You can customize the kiosk ISO using the kiosk wizard here, see second section:
http://build.porteus.org/kiosk/
Prendre son temps, profiter de celui qui passe.
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: root password change
@rh102801
please run this command in terminal:
and update 003-settings.xzm/etc/shadow with it. example:
changes to:
make sure this part is not changed (or use it for no password):
Cheers
please run this command in terminal:
Code: Select all
echo YOUR_PASSWORD | openssl passwd -1 -salt `echo $(($RANDOM*12345678)) | cut -c 1-8` -stdin
Code: Select all
root:$1$35712342$KAiyW3zWjbjSH4X.mPd/m1:9804:0:::::
Code: Select all
root:$1$27037034$0QVFVdq3oSInuo0oXAKZu0:9804:0:::::
Code: Select all
root::9804:0:::::
Please add [Solved] to your thread title if the solution was found.
-
- Black ninja
- Posts: 51
- Joined: 21 Mar 2014, 14:02
- Distribution: porteus 3.7 kiosk
- Location: Chattanooga
Re: root password change
Awesome instructions Fanthom this is exactly what I was looking for.
Thank you very much.
Thank you very much.