Jump to content
OMRON Forums

Copy gather files via SCP and new user on PowerPMAC


george.kontogiorgos

Recommended Posts

Hello!

 

I am trying to copy gather files from PowerPMAC to my host computer with a python script in order to automate the procedures and improve speed.

 

Python make a system call by SCP, a program that copy files using ssh session. To avoid passing passwords in a insecure way (and for automation reasons), like sshpass, I generated a ssh key (ssh-keygen and ssh-copy-id) and a new user (non root) for PowerPMAC.

 

My problem is when I reboot my PowerPMAC: I lost my new user and just root stay alive.

 

Is there a way to keep new user after rebooting the system? Am I copying files on the right way or there is another possible?

 

Thanks

George

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

The Power PMAC Linux installation keeps itself clean by mounting its file system as read only

most of the time and copying the contents of “/.readonly/etc” and “/.readonly/var” to “/etc”

and “/var” on power up.

To deal with this, the following process is used

 

mount -o remount,rw /

cp -a /.readonly/etc-tmpfs-mirror/* /.readonly/etc/
cp -a /.readonly/var-tmpfs-mirror/* /.readonly/var/
mount -o remount,ro /
reboot

 

There is also a root folder, so you can add:

cp -a /.readonly/root-tmpfs-mirror/* /.readonly/root/

 

In case it helps, you can take a look at instructions to install the NTP debian package on PMAC.

http://forums.deltatau.com/filedepot/download.php?f=Power%20PMAC/Application%20Notes/Network%20Time%20on%20Power%20PMAC.PDF [FILE REMOVED]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...