WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Need a Root Password to Change Files  (Read 25932 times)

Offline davec51

  • Newbie
  • *
  • Posts: 16
Need a Root Password to Change Files
« on: April 09, 2011, 08: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.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Need a Root Password to Change Files
« Reply #1 on: April 09, 2011, 09:24:51 PM »
$ sudo -s
#
10+ Years Contributing to Linux Open Source Projects.

Offline archerbob

  • Newbie
  • *
  • Posts: 35
Re: Need a Root Password to Change Files
« Reply #2 on: November 02, 2017, 04: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?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Need a Root Password to Change Files
« Reply #3 on: November 02, 2017, 05:27:08 PM »
It's not
 .xfiletool.lst
but
 .filetool.lst

Code: [Select]
echo "etc/shadow" >> /opt/.filetool.lst
filetool.sh -b
Download a copy and keep it handy: Core book ;)

Offline archerbob

  • Newbie
  • *
  • Posts: 35
Re: Need a Root Password to Change Files
« Reply #4 on: November 02, 2017, 10: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