We help IT Professionals succeed at work.
Get Started

su vs. sudo su - which to use?

Anony Mous
Anony Mous asked
Last Modified: 2015-03-17

We have a running debate in our office that i would like some clarity on. We configure our Linux servers with individual user names, but to run commands with root priveleges, people run su -. I have read in other places where sudo su - should be used with the root password disabled, but no clear reason as to why from a security standpoint.

I know one reason is because everyone would have to know the root password, but can someone please tell me why sudo su - should be used instead and the root password disabled? It would also be good to hear if either is OK, or if someone feels strongly about one vs. the other just to get a sense how others view this.

I also know that using sudo you can limit peoples use of root priveleges, so i just wanted to mention that so i could get other reasons why.

Thanks in advance!
Watch Question
Security Samurai
Top Expert 2006
This problem has been solved!
Unlock 3 Answers and 19 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE