Root access (su, sudo, etc.) entry

Topics relating to MX Docs and MX Videos
Message
Author
User avatar
Jerry3904
Administrator
Posts: 23140
Joined: Wed Jul 19, 2006 6:13 am

Root access (su, sudo, etc.) entry

#1 Post by Jerry3904 »

I have drafted up a new Wiki entry on this topic, along with cross refs to it for sudo and su:

http://www.mepiscommunity.org/wiki/system/root-access

Does it need a discussion of sudoers for antiX (wouldn't come from me!)? Included a link to a handy overview of advantages and disadvantages of using sudo.

I would appreciate some review/critique/etc. Any other documentation needed?

TIA
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
chrispop99
Global Moderator
Posts: 3347
Joined: Tue Jan 27, 2009 2:07 pm

Re: Root access (su, sudo, etc.) entry

#2 Post by chrispop99 »

I wonder whether a brief explanation as to when/how gksu might be used is desirable?

BTW, the section under 'Other' is using a different font to the rest of the page, and disappears off the edge here.

Chris
MX Facebook Group Administrator.
Home-built desktop - Core i5 9400, 970 EVO Plus, 8GB
DELL XPS 15
Lots of test machines

User avatar
Jerry3904
Administrator
Posts: 23140
Joined: Wed Jul 19, 2006 6:13 am

Re: Root access (su, sudo, etc.) entry

#3 Post by Jerry3904 »

Thanks. Not totally sure about that gksu yet, but I added the man page to the Links for now.

EDIT: maybe I should put gksu in its own category like su and sudo?
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
dolphin_oracle
Developer
Posts: 22178
Joined: Sun Dec 16, 2007 12:17 pm

Re: Root access (su, sudo, etc.) entry

#4 Post by dolphin_oracle »

su

antiX Linux (MX Linux) uses a “true root,” meaning that the Manual and the Forum will generally instruct the use of su. su lets you switch user so that you’re actually logged in as root but uses the environment of the user root,
maybe say MX Linux (antiX MX Edition) uses...

gksu can be configured to use either sudo or root account authentication. in antiX 15 this is configurable in the control center although sudo is the default.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Jerry3904
Administrator
Posts: 23140
Joined: Wed Jul 19, 2006 6:13 am

Re: Root access (su, sudo, etc.) entry

#5 Post by Jerry3904 »

Yeah, I meant to put "antiX MX" ...
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
joany
Posts: 235
Joined: Mon Feb 12, 2007 12:45 pm

Re: Root access (su, sudo, etc.) entry

#6 Post by joany »

There's also kdesu for us KDE aficionados. :wink:

One thing that puzzles me is why sudo is considered "safer" than su.
In Linux (and Unix in general), there is a SuperUser named Root. The Windows equivalent of Root is Administrators group. The SuperUser can do anything and everything, and thus doing daily work as the SuperUser can be dangerous. You could type a command incorrectly and destroy the system.
Wouldn't "sudo rmdir /" while working under user do just as much damage as "rmdir /" while working under su?
MX-14; 3.12-0.bpo.1-686-pae kernel using 4GB RAM
2.4GHz AMD Athlon 4600+
NVidia GeForce 6150 LE; 304.121 Display Driver
You didn't slow down because you're old; you're old because you slowed down.

User avatar
Jerry3904
Administrator
Posts: 23140
Joined: Wed Jul 19, 2006 6:13 am

Re: Root access (su, sudo, etc.) entry

#7 Post by Jerry3904 »

It's only safer with respect to ordinary users.

Will try to fit kdesu in somewhere.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

MX-tester
Posts: 31
Joined: Thu Jan 23, 2014 8:18 am

Re: Root access (su, sudo, etc.) entry

#8 Post by MX-tester »

joany wrote: One thing that puzzles me is why sudo is considered "safer" than su.
You can tailor sudo to allow just a few commands to be run, by only some people, or a certain group, also it can 'time out'.
Whereas, if you su, you are now able to do anything system wide, including deleting it.

User avatar
sanlav
Posts: 16
Joined: Sun Feb 03, 2008 9:03 pm

Re: Root access (su, sudo, etc.) entry

#9 Post by sanlav »

Small clarifiation:
gksu means (liberally) GTK(libs)-su.

When wheezy was in testing, except the obvious su, I used gksu for scripts on Desk Env. based on gtk like:

7kaa.sh:

Code: Select all

#!/bin/sh

gksu 'rovclock -m 864'
# gksu 'rovclock -m 972'
xrandr -s 800x600 -r 60
7kaa
xrandr -s 1360x768
# gksu 'rovclock -m 864'
gksu 'rovclock -m 756'
pcsxr.sh:

Code: Select all

#!/bin/sh

gksu 'rovclock -m 864'
# gksu 'rovclock -m 972'
xrandr -s 640x480 -r 60
pcsx
# gksu 'rovclock -m 864'
gksu 'rovclock -m 756'
xrandr -s 1360x768
My simple point: gksu is working for GTK libs; and (probably) not for KDE or any other.

User avatar
lucky9
Posts: 475
Joined: Wed Jul 12, 2006 5:54 am

Re: Root access (su, sudo, etc.) entry

#10 Post by lucky9 »

My understanding is that gksu/gksudo or kdesu/kdesudo should be used for GUI programs. non_GUI programs should be called from su/sudo.
Yes, even I am dishonest. Not in many ways, but in some. Forty-one, I think it is.
--Mark Twain

Post Reply

Return to “Documentation and videos”