Tiny Core Base > TCB Tips & Tricks

How to disable autologin bootcode.

<< < (2/2)


this topic seems to be the closest to my problem,
how can i make tinycore run as root so i can edit files
owned by root ? when i use sudo xfw it says : don't run this as root  ???

it would be the best option to simply run my system as root, because i will back it up
very often, it's no problem to restore it, if i make a mistake.

i only have bootlocal.sh in my opt folder.

Hi TinyToni,

Welcome to the TC forums.

As some business guru once said, "Don't try to learn the tricks of the trade.  Learn the trade.  The tricks will come along on their own."

Same with Linux.

Do not run your system as root.  There are actual good reasons to not do so.  Everyone (myself included) initially wants to run as root - and generations of Unix/linux users and admins have realized they should not normally do so.

Having said that, There are several ways it can be done and it will be a learning experience figuring them out - hopefully a long enough one that you will have learned not to do it by the time you learn how to do it.

And having said -that-, lets help you to not need to run as root....

First, after I install xfw, it runs under sudo without complaining.  I don't know why it would refuse to run for you with sudo but the message "don't run this as root" looks like what tce-load says when you try to run it as root - so I wonder... did you have xfw installed ondemand?  I don't use ondemand myself, but I suppose it must invoke tce-load the first time you run an ondemand program?  Anybody have experience with this?

If I'm right, just try running xfw as a regular user once to get it fully installed before trying to run it with sudo.

If that works then you will be able to edit files using sudo xfw

Lastly, re. just one file in /opt - open a terminal and run this command:

--- Code: ---ls -l /opt
--- End code ---

Then run this one:

--- Code: ---ls -la /opt
--- End code ---

The files whose names begin with a dot are "hidden" files - not shown by ls unless you explicitly ask to have them shown with the -a flag.

Hello Lee,

thanks for your extensive reply. You have been absolutely right, i am running xfw on demand, and as soon as i used it as normal user, i could run it with sudo. Finally i can edit files as root  ;D

I am rly impressed by TinyCore, it's simple and quick, i really have to learn some things about it.


[0] Message Index

[*] Previous page

Go to full version