Tiny Core Linux

General TC => General TC Talk => Topic started by: Guy on April 30, 2011, 04:45:34 AM

Title: Extension for passwords
Post by: Guy on April 30, 2011, 04:45:34 AM
I have been experimenting with making an extension for passwords.

I have created an extension containing /etc/shadow.

Put it in /tce/optional.

Listed it in OnBoot, and rebooted.

This does not replace /etc/shadow, so passwords are not there.

I suspect this has something to do with the ownership and permissions of shadow. I may be wrong.

Does anyone know of a way to get this to work?

I think it is a good idea to be able to make an extension for passwords.
Title: Re: Extension for passwords
Post by: tinypoodle on April 30, 2011, 05:33:53 AM
I suspect it would be rather that extensions would not overwrite existing files (by design).
Title: Re: Extension for passwords
Post by: curaga on May 01, 2011, 10:48:58 AM
Standard behavior, extensions do not overwrite existing files. If you need that, do so in a startup script; I think at least the firefox extensions and libfltk-xft do that, for examples.
Title: Re: Extension for passwords
Post by: Guy on May 01, 2011, 11:32:12 AM
I have come up with a way of doing it.

http://wiki.tinycorelinux.net/wiki:passwd

However, if users other than tc are added, other files also need to be saved, which makes it more complicated.
Title: Re: Extension for passwords
Post by: curaga on May 01, 2011, 11:49:41 AM
One thing, one should do that in bootsync since in bootlocal it may happen after the login prompt.
Title: Re: Extension for passwords
Post by: Guy on May 01, 2011, 12:00:05 PM
Quote
One thing, one should do that in bootsync since in bootlocal it may happen after the login prompt.

Thanks for the tip.

It works the way I have it on my computer.

I will change it in the wiki, in case it does not work on all computers.