WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: sudo passwd  (Read 10346 times)

Offline cURIOUSgEORGE

  • Full Member
  • ***
  • Posts: 140
sudo passwd
« on: December 09, 2011, 04:26:54 PM »
Can anybody explain to me........ What is the point of having a sudo passwd setup if I'm not even prompted to type it in when using sudo???   :-\

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: sudo passwd
« Reply #1 on: December 09, 2011, 04:39:30 PM »
This is controlled by /etc/sudoers.
The tc user needs to be able to sudo to run some utilities.
You can set a password for tc, or create another user for normal logins.

Offline cURIOUSgEORGE

  • Full Member
  • ***
  • Posts: 140
Re: sudo passwd
« Reply #2 on: December 09, 2011, 04:57:35 PM »
Thanks gerald_clark but I'm still confused....... Anybody else???


Why am I not prompted for a password when using sudo before a command?



Does the password help protect against getting hacked from the internet?
If NOT then what is the purpose of having a password set for sudo?

Thanks, George

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: sudo passwd
« Reply #3 on: December 09, 2011, 05:00:52 PM »
Did you even bother to look at /etc/sudoers ?

Offline cURIOUSgEORGE

  • Full Member
  • ***
  • Posts: 140
Re: sudo passwd
« Reply #4 on: December 09, 2011, 05:05:57 PM »
Yeah and it's empty. So, what's the point?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: sudo passwd
« Reply #5 on: December 09, 2011, 05:32:21 PM »
It is not supposed to be empty.
How did you manage that?

Offline cURIOUSgEORGE

  • Full Member
  • ***
  • Posts: 140
Re: sudo passwd
« Reply #6 on: December 09, 2011, 05:40:11 PM »
lol, uhhhh  ???. To tell ya the truth, "I have no clue" . I never touched it. Is that a bad thing that it's empty??? 8)

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: sudo passwd
« Reply #7 on: December 09, 2011, 06:02:03 PM »
In most situations you don't need a password for sudo. That is how Tinycore is set up.

There are some situations where you may. For example, when setting up a printer with cups you need a root password.
Many people see what is. Some people see what can be, and make a difference.

Offline cURIOUSgEORGE

  • Full Member
  • ***
  • Posts: 140
Re: sudo passwd
« Reply #8 on: December 09, 2011, 06:09:14 PM »
Thanks Guy.

Also, is it a bad thing that my /etc/sudoers file is empty?


EDIT :  It is NOT empty but only appears to be empty when trying to open it as tc user. Must be root.
« Last Edit: December 09, 2011, 07:37:05 PM by cURIOUSgEORGE »

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: sudo passwd
« Reply #9 on: December 09, 2011, 08:05:55 PM »
cURIOUSgEORGE

Like you say, it is not empty, you just cant see the contents as tc user.

It works the way it is set up.
Many people see what is. Some people see what can be, and make a difference.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: sudo passwd
« Reply #10 on: December 09, 2011, 08:09:23 PM »
With most other Linux distros, you need to use a password for sudo or root. This reduces the likelihood of messing up the operating system.

With Tinycore, someone could easily delete a few things and mess up the system.

With other distros, someone could run a live cd or an operating system from a usb drive, and mess up the system.
« Last Edit: December 09, 2011, 08:13:01 PM by Guy »
Many people see what is. Some people see what can be, and make a difference.

Offline cURIOUSgEORGE

  • Full Member
  • ***
  • Posts: 140
Re: sudo passwd
« Reply #11 on: December 10, 2011, 08:08:20 PM »
Hmmm very well put, thanks Guy. Gotcha ;)

Offline mb

  • Jr. Member
  • **
  • Posts: 69
Re: sudo passwd
« Reply #12 on: December 18, 2011, 09:32:10 AM »
What is the security benefit of not running as root if there is no password required with sudo?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: sudo passwd
« Reply #13 on: December 18, 2011, 09:48:43 AM »
What is the security benefit of not running as root if there is no password required with sudo?

For example you can not demage your system late night mistyping folder name due to access right restrictions.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline ixbrian

  • Retired Admins
  • Sr. Member
  • *****
  • Posts: 436
Re: sudo passwd
« Reply #14 on: December 18, 2011, 10:51:34 AM »
What is the security benefit of not running as root if there is no password required with sudo?

In addition to what bmarkus said, if you use the "syslog" boot code any time sudo is used it is logged.