Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: davec51 on April 09, 2011, 05:55:59 PM

Title: Need a Root Password to Change Files
Post by: davec51 on April 09, 2011, 05:55:59 PM
I just made a frugal install of TC. I'm delighted to be able to do so easily, since I can't boot from CD drive. Now if I try to change a text file I'm denied access. Typing "su" in the console asks for a root password. I have no idea what that is, and I don't know how to set it without being logged in as root. Please help.
Title: Re: Need a Root Password to Change Files
Post by: roberts on April 09, 2011, 06:24:51 PM
$ sudo -s
#
Title: Re: Need a Root Password to Change Files
Post by: archerbob on November 02, 2017, 01:50:54 PM
I've a similar problem in that when I set my root password with the next reboot it is forgotten, what directory/file is added to /opt/.xfiletool.lst to make the set password static/persistent?
Title: Re: Need a Root Password to Change Files
Post by: Misalf on November 02, 2017, 02:27:08 PM
It's not
 .xfiletool.lst
but
 .filetool.lst

Code: [Select]
echo "etc/shadow" >> /opt/.filetool.lst
filetool.sh -b
Title: Re: Need a Root Password to Change Files
Post by: archerbob on November 02, 2017, 07:04:46 PM
thank-you its done, i logged in as root in terminal, set my passwd for root and then went to .filetool.lst in XFE (root) opened it in the editor and added

/etc/shadow

Upon attempting to reboot, the system threw up an error message and I went to look in tmp/backups to see the error message and now know not to lead with a / so the .filetool.lst now has

etc/shadow

which seems to work