root

You have a problem with Salix? Post here and we'll do what we can to help.
salix555
Posts: 7
Joined: 12. Jun 2012, 19:23

root

Post by salix555 »

With other distros such as PCL and Mepis, you can log in as route.

Why is this not allowed with Salix?

How do I best work with root when I want to?

Just installed it (KDE) and it seems quite a fluid distro.
stoneheart
Posts: 5
Joined: 17. May 2012, 16:26

Re: root

Post by stoneheart »

You use the su command to become root. Type "su root" at the command prompt. You will be asked for your password and after entering it, you'll be able to execute commands as root in the console.

No idea how to enable login as root from the login screen though.
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: root

Post by gapan »

salix555 wrote:With other distros such as PCL and Mepis, you can log in as route.

Why is this not allowed with Salix?
Because it's extremely stupid, totally reckless and completely unneeded. You should never need to do that. Ever. Did I mention it's extremely stupid?
Image
Image
salix555
Posts: 7
Joined: 12. Jun 2012, 19:23

Re: root

Post by salix555 »

It may be considered stupid by some but I've only logged on as root with previous distros when I'm disconnected from the internet and as I'm the only user of my PC, there no security issues.

I find root log-on useful when I reinstall and want to give my new user account full access rights to an existing user account on my /home partition.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: root

Post by thenktor »

salix555 wrote:It may be considered stupid by some but I've only logged on as root with previous distros when I'm disconnected from the internet and as I'm the only user of my PC, there no security issues.
That's not the intended use of a multi user OS with administrator account.
salix555 wrote:I find root log-on useful when I reinstall and want to give my new user account full access rights to an existing user account on my /home partition.
Use "su" or use a console root login (ctrl+alt+f1). It's really not needed to start a DE to do that.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
Atip
Posts: 539
Joined: 5. Jun 2011, 04:27

Re: root

Post by Atip »

And there is always sudo.

Myself being the administrator of my Desktop PC and my wife's netbook I have to use sudo and at
times su. There is no way going around this. Just the case in point, I installed the new kernel 3.3.6-smp
and could possibly do this only as sudo. Certain things can even only be done only as su like becoming sudo.

If one cannot login as root, here is the trick. Ctrl-Alt-F2 gives you the console. Login as root.
Do your admin work. Logout and Alt-F7 (usually, sometimes other F?) brings you back to login screen.
Last edited by Atip on 14. Jun 2012, 08:50, edited 1 time in total.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: root

Post by thenktor »

Atip wrote:Logout and Alt-F7 (usually, sometimes other F?) brings you back to login screen.
ctrl+alt+f7 ;)
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: root

Post by gapan »

salix555 wrote:It may be considered stupid by some...
Some in this context being everyone with a sane mind that has even the slightest idea of what he's doing.
Atip wrote:And there is always sudo.

Myself being the administrator of my Desktop PC and my wife's netbook I have to use sudo and at
times su. There is no way going around this. Just the case in point, I installed the new kernel 3.3.6-smp
and could possibly do this only as sudo. Certain things can even only be done only as su.
If you're saying that some things can only be done using su and some other things can only be done using sudo, you're definitely wrong. Both are ways of getting superuser rights. There is nothing that you can do using su that you can't do using sudo (if sudo is setup properly) and there is nothing you can do with sudo that you can't do with su.
Image
Image
User avatar
Atip
Posts: 539
Joined: 5. Jun 2011, 04:27

Re: root

Post by Atip »

What came first, the chicken or the egg? Or how to become sudo w/o being root for that matter su?
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: root

Post by Shador »

Just disconnecting the pc from the internet doesn't magically solve all problems. Or otherwise the Iranian plants would not have been infected by Stuxnet. There are still other ways of infection like removable devices or already existent but non-complete infections. In any case the biggest security risk is the user himself because we are all error-prone human beings. So it makes sense to limit the damage we can cause. Or would you disable all safety measures of machines like e.g. chainsaws just because they might get a little in your way but protect against yourself?

If you still feel like you need this. it's just a matter of toggling the respective option in gdm. But I don't recommend that. Better learn how to achieve exactly the same using su/sudo. Once you worked it out, it's actually going to be much faster and it's a lot safer (not only as in security against exploits but as a guard against yourself).

Do you know what you would cause by typing this, rm -rf $a/$b ? That deletes your whole root if a and b are unset and any arbitary script (not only your own and there are many) you execute could cause this.
Image
Post Reply