Comments on: Difference Between su and sudo and How to Configure sudo in Linux https://www.tecmint.com/su-vs-sudo-and-how-to-configure-sudo-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 15:09:35 +0000 hourly 1 By: hemza yousfi https://www.tecmint.com/su-vs-sudo-and-how-to-configure-sudo-in-linux/comment-page-1/#comment-1442629 Mon, 01 Mar 2021 14:49:51 +0000 http://www.tecmint.com/?p=5849#comment-1442629 Hi,

Really very nice tutorial, I would like to know if there is a way to exclude some admin to run any configuration in ssh?

]]>
By: Love Arora https://www.tecmint.com/su-vs-sudo-and-how-to-configure-sudo-in-linux/comment-page-1/#comment-1329645 Sat, 25 Apr 2020 09:22:21 +0000 http://www.tecmint.com/?p=5849#comment-1329645 Hi Ravi,

I am facing one problem with /etc/sudoers or visudo, Actually, While I am adding a user with adduser command and while I am not providing any sudo access but commands are working without password or without any permission error.

I am using e.g: Lucky ALL=(Lucky) NOPASSWD: /bin/*, !/bin/rm.

and also I am restricting for rm command but rm command is working.

Please help me brother and please clarify my doubts.

]]>
By: Tachyon https://www.tecmint.com/su-vs-sudo-and-how-to-configure-sudo-in-linux/comment-page-1/#comment-816070 Mon, 12 Sep 2016 14:05:04 +0000 http://www.tecmint.com/?p=5849#comment-816070 These comments are based on a multi user environment. In the case of shared computers of truly multi-user systems, sudo makes sense. However for single user systems and administrator use, su makes more sense for a variety of reasons including convenience and environment configuration.

I do understand the confusion in this regard, especially with younger users, as Ubuntu started this confusion by misusing sudo to give it a more Windows like admin configuration model for individual admin tasks as it utterly lacks any unified administration interface where you’d give the root password once to enter and configure the system.

So for example, as an administrator of my system, I keep a terminal shell open in which I’ve su’d to root and use that shell for all admin tasks.

If I wanted to allow other users of the system to have access to network configuration or printer setup, I’d use sudo to allow access to those tools.

]]>
By: shakeeb https://www.tecmint.com/su-vs-sudo-and-how-to-configure-sudo-in-linux/comment-page-1/#comment-798384 Sun, 10 Jul 2016 10:36:53 +0000 http://www.tecmint.com/?p=5849#comment-798384 In reply to Bhasker Reddy Manikyala.

try with pater# sudo -u tom any_sytem_command

you may find more examples from below link
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch09_:_Linux_Users_and_Sudo#.V4H6__l97IV

]]>
By: Laxma Reddy https://www.tecmint.com/su-vs-sudo-and-how-to-configure-sudo-in-linux/comment-page-1/#comment-791341 Wed, 15 Jun 2016 14:52:39 +0000 http://www.tecmint.com/?p=5849#comment-791341 Hi Ravi Saive,

Good evening.

I have a doubt in the below line.
mark beta.database_server.com=(tom) ALL

My understanding is ‘mark’ and ‘tom’ both are the sudo users, both users have same (ALL commands )access on beta.database_server.com machine.

Is this correct? or any difference is there in between ‘mark’ and ‘tom’ users in terms of privileges on beta.database_server.com machine?

Thanks in advance.

Thanks

]]>