WARNING! Do NOT try to do this if you're not sure what you're doing, I'm not responsable for any system failure or data loss you may cause! I recommend making some frugal install or create another pup_save for trying this
OK, so like I said, there's another user in puppy already and it's called spot (that folder spot in your /root dir is spot's home dir. But puppy logs in into root account on every boot automatically. So here's a first step:
Edit your /etc/inittab
edit line which says:
tty1::respawn:/sbin/getty -n -l /bin/autologinroot 38400 tty1
remove -n -l /bin/autologinroot
so now you have left this in that line:
tty1::respawn:/sbin/getty 38400 tty1
Now when you reboot system it will ask you for username and pass
Default pass for root is woofwoof
Next: Create password for spot (and maybe change root password?)
open terminal, then type:
Code: Select all
passwd root
to change password for root
Code: Select all
passwd spot
OK, so now we have two users with passwords and login prompt at bootup
But, we're not nearly finished. Most of scripts for running X read info and stuff from root's home dir so what do I do next?
Copy all files from root's dir (except spot dir itself, including hidden dirs) into spot dir, then I change owner of those files to spot:
Code: Select all
chown -R spot /root/spot
Open /usr/X11/bin/xwin then replace where it says /root/.xinitrc to ~/.xinitrc (use Search -> Replace -> Replace All in Document in Geany)
Also X starts apps and scripts from /root/Startup and I don't know where is the script that loads them, so I make a workaround for that:
Make directories /root/XStartup and /root/spot/XStartup then place a script in /root/Startup to start apps from that dirs at X startup:
Code: Select all
#!/bin/sh
cd ~/XStartup/
for i in *; do ./$i; done
OK, so what you will be able to do with this changes so far using spot as user?
You'll be able to start X, run most of apps and have some settings customized?
What you won't be able to do?
You can't mount anything, and you can't start console (it keeps dissapearing, I thought this is because of rxvt's hold option, but sakura and xterm didn't work either, maybe we could throw in sudo command or something?)
Here are some more issues that I noticed:
--Files /tmp/xerrs.log | /etc/.XLOADED | /etc/windowmanger | /dev/zero
have read-only permissions for spot (maybe chmod here?)
--If you change icons they will be changed on both accounts
--You can't change wallpaper as spot, setter writes changes to root's PuppyPin file?
You can change icewm theme though
OK, enough from me, please test this and find out some more hacks we can do.
Cheers, Dejan