PDA

View Full Version : Root - Avatar



Kowood
01-14-2006, 04:55 PM
I was reading about toor, baron, and avatar the other day, when I decided to replace root with avatar. Easy process, just made avatar with the uid 0, made the home directory, and then once I could log in as him, deleted root. Everything works fine for the most part (Auke Kok - lead developer of my distro - even made a change to one of the Lunar-Linux core tools so that it would check for uid 0 instead of root), except su. I have to use su avatar, or su - avatar because su looks for root. But on BeOS and systems that don't have the superuser named root, su doesn't look for root. Is there a separate shadow code for these guys? Did developers hack it out or something? Or is there an option to be used with configure when compiling shadow? To summarize...I replaced root with avatar, and su still looks for root, how do I fix this?

eadz
01-15-2006, 02:13 AM
I guess I would start looking in the source code for 'su'

Kowood
01-15-2006, 06:57 PM
That's the shadow source code, su and a few other things are built into it. But I didn't find anything that was really a red flag distinguishing root from anything else.