LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Password
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.

Notices


Reply
  Search this Thread
Old 03-31-2021, 05:23 AM   #1
LXer
LXer NewsBot
 
Registered: Dec 2005
Posts: 128,635

Rep: Reputation: 118Reputation: 118
LXer: Exploring the differences between sudo and su commands in Linux


Published at LXer:

If you're confused about what su and sudo commands do for you, this brief guide will help you sort them out.

Read More...
 
Old 03-31-2021, 06:42 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,910

Rep: Reputation: 5027Reputation: 5027Reputation: 5027Reputation: 5027Reputation: 5027Reputation: 5027Reputation: 5027Reputation: 5027Reputation: 5027Reputation: 5027Reputation: 5027
Article does not "explore any differences" at all.

States that becoming root with su is considered a "no, no." and then goes on to say,
Quote:
A simple way to switch to an interactive session as a root user is the following:
$ sudo -i
...which is just as bad. The whole point behind the assertion is to avoid having an interactive root prompt.

Also, completely ignores that su has the '-c cmd' option, to run a single command.

As for exploration of differences...
su user -c "cmd" vs sudo -u user cmd? Nope, not gonna talk about any of that at all.

'sudo' is a commonly misunderstood tool and this article doesn't help at all. I expect better quality/depth of content from "Redhat Consultants", but all the articles linked here that I've seen from them have been surprisingly poor.

Last edited by GazL; 03-31-2021 at 06:43 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux commands: exploring virtual memory with vmstat LXer Syndicated Linux News 0 06-11-2020 09:42 AM
Differences between 'hostname -i' and 'hostname -I' Commands julianvb Linux - Kernel 1 06-24-2017 08:39 AM
Differences between "get/install" commands hongman Linux - Newbie 9 10-24-2014 07:56 PM
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
Differences between tar, cpio and dump commands diwakars Linux - Newbie 2 06-08-2008 02:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration