Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: trembb22 on May 13, 2009, 09:07:57 PM

Title: How do we keep user passwd between boot? I am asking.
Post by: trembb22 on May 13, 2009, 09:07:57 PM
Security is not a problem for me so maybe we can use .filetool.lst to keep important user passwd files between boot. mydata.tgz will keep the user passwd files in it between boot. I dont thing is possible to set the user passwd at startop into the /opt/bootlocal.sh, cause input buffer are cleared whan passwd ask o change them, so we cannot pipe the passwd to the passwd command.

any suggestions to keep user passwd persistance, at lease for tc user.

same issue with samba user passwd

I want to boot tc and have access to it using samba et using ssh(putty) from another OS.

I plan to put a computer into a dog robot I am building, so I will like to use tc to boot the computer robot wihtout waiting to much and when it's time to work on it, I will like to use samba and ssh.

thanks for your understanding

Benoit
Title: Re: How do we keep user passwd between boot? I am asking.
Post by: Jason W on May 13, 2009, 09:29:58 PM
I did this on my server by adding /etc/group and /etc/shadow to my backup after adding users and setting passwords.
Title: Re: How do we keep user passwd between boot? I am asking.
Post by: mikshaw on May 13, 2009, 09:31:17 PM
User passwords for the system are kept in /etc/shadow. You'll also need /etc/passwd if it's a user that is not already in the base system.  I don't know about Samba passwords.
Title: Re: How do we keep user passwd between boot? I am asking.
Post by: Juanito on May 13, 2009, 10:40:26 PM
any suggestions to keep user passwd persistance, at lease for tc user.

same issue with samba user passwd
You need to add a couple of folders to your backup to have persistance with samba - unfortunately I cannot remember which ones, but I'll try to remember to reply when I'm back in front of my old desktop in a couple of days time.
Title: Re: How do we keep user passwd between boot? I am asking.
Post by: Kingdomcome on May 13, 2009, 11:05:22 PM
samba passwords are stored in /etc/samba/private/  smb.conf is in /etc/samba/ so I have added etc/samba/ to my backup to retain my samba settings.
Title: Re: How do we keep user passwd between boot? I am asking.
Post by: trembb22 on May 13, 2009, 11:40:31 PM
thanks, I didn't know that we can backup folder using .filetool
Title: Re: How do we keep user passwd between boot? I am asking.
Post by: Juanito on May 15, 2009, 10:36:45 PM
This topic might also be of interest:

http://forum.tinycorelinux.net/index.php?topic=818.msg4872#msg4872 (http://forum.tinycorelinux.net/index.php?topic=818.msg4872#msg4872)