Author Topic: Death of Sudoers ?  (Read 7318 times)

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6224
  • I don't do Windows
Re: Death of Sudoers ?
« Reply #45 on: June 30, 2011, 09:14:08 PM »
Install sudo from Synaptic. I don't see visudo in there, though. I don't know what package provides it.



[root@fatman ~]# which visudo
/usr/sbin/visudo
[root@fatman ~]# rpm -qf /usr/sbin/visudo
sudo-1.7.2-0.p4.4pclos2010.i586          <--- This one  ;D


Thanks for clearing that up, O-P. I don't have sudo installed, and Synaptic doesn't list visudo as a dependency for the sudo package.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Death of Sudoers ?
« Reply #46 on: June 30, 2011, 09:54:31 PM »
Install sudo from Synaptic. I don't see visudo in there, though. I don't know what package provides it.



[root@fatman ~]# which visudo
/usr/sbin/visudo
[root@fatman ~]# rpm -qf /usr/sbin/visudo
sudo-1.7.2-0.p4.4pclos2010.i586          <--- This one  ;D


Thanks for clearing that up, O-P. I don't have sudo installed, and Synaptic doesn't list visudo as a dependency for the sudo package.


It's not a dependency... it's part of the sudo package.

[root@fatman ~]# rpm -ql sudo
/etc/logrotate.d/sudo
/etc/pam.d/sudo
/etc/sudoers
/usr/bin/sudo
/usr/bin/sudoedit
/usr/bin/sudoers2ldif
/usr/sbin/visudo                                  <---- Here
/usr/share/doc/sudo-1.7.2
/usr/share/doc/sudo-1.7.2/HISTORY
/usr/share/doc/sudo-1.7.2/PORTING
/usr/share/doc/sudo-1.7.2/README
/usr/share/doc/sudo-1.7.2/README.LDAP
/usr/share/doc/sudo-1.7.2/TROUBLESHOOTING
/usr/share/doc/sudo-1.7.2/UPGRADE
/usr/share/doc/sudo-1.7.2/WHATSNEW
/usr/share/doc/sudo-1.7.2/sample.sudoers
/usr/share/man/man5/sudoers.5.bz2
/usr/share/man/man8/sudo.8.bz2
/usr/share/man/man8/sudoedit.8.bz2
/usr/share/man/man8/visudo.8.bz2
/var/log/sudo.log
/var/run/sudo
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline Rudge

  • Hero Member
  • *****
  • Posts: 9773
  • I'm Just A Dog.
Re: Death of Sudoers ?
« Reply #47 on: August 28, 2011, 12:31:27 AM »
I installed 2011.7. No sudo. Ran synaptic searched for sudo. no luck. Where could I find it?

cat /etc/pclinuxos-release
PCLinuxOS release 2011 (PCLinuxOS) for i586

uname -a
Linux localhost.localdomain 2.6.38.8-pclos1.bfs #1 SMP PREEMPT Sat Jun 4 04:13:21 CDT 2011 i686 i686 i386 GNU/Linux

rpm -qi sudo
package sudo is not installed


The answer is in this very thread. Read it.  ;)


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline Vorteggs

  • Hero Member
  • *****
  • Posts: 2468
Re: Death of Sudoers ?
« Reply #48 on: August 28, 2011, 12:32:33 AM »
If I remember correctly it has been moved to "test" section of repositories.
Edit: http://www.pclinuxos.com/forum/index.php/topic,93436.msg785932.html#msg785932

You might also take a look at this:
http://www.pclinuxos.com/forum/index.php/topic,90479.0.html
« Last Edit: August 28, 2011, 12:35:13 AM by Vorteks »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Death of Sudoers ?
« Reply #49 on: August 28, 2011, 12:35:29 AM »
If I remember correctly it has been moved to "test" section of repositories.

You might take a look at this:
http://www.pclinuxos.com/forum/index.php/topic,90479.0.html


No, it isn't in the testing section. As Rudge said, the answer is here, in this thread.     

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11062
  • MLUs Forever!
Re: Death of Sudoers ?
« Reply #50 on: August 28, 2011, 03:28:07 AM »
I installed 2011.7. No sudo. Ran synaptic searched for sudo. no luck. Where could I find it?

cat /etc/pclinuxos-release
PCLinuxOS release 2011 (PCLinuxOS) for i586

uname -a
Linux localhost.localdomain 2.6.38.8-pclos1.bfs #1 SMP PREEMPT Sat Jun 4 04:13:21 CDT 2011 i686 i686 i386 GNU/Linux

rpm -qi sudo
package sudo is not installed



http://www.pclinuxos.com/forum/index.php/topic,93436.msg785932.html#msg785932
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline TerryH

  • Hero Member
  • *****
  • Posts: 557
Re: Death of Sudoers ?
« Reply #51 on: August 28, 2011, 07:23:54 AM »

The answer is in this very thread. Read it.  ;)


Rudge, Well said.  I just shook my head when I read previous post ::)
https://linuxcounter.net/cert/542348.png

Aussie, Aussie, Aussie........Eh!,  Eh!,  Eh!

Offline Mike

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 7574
  • Saved from the Fire
Re: Death of Sudoers ?
« Reply #52 on: August 28, 2011, 11:21:55 AM »
To me "sudo" is sorta like holding a stick of dynamite with a lit 1/2 in. fast burning fuse  ??? ???
opens way to many security doors, and most don't have the proper knowledge to use it.   ;)
Hence 'su" or did I sleep thru that class  ??? ::) ;D ;D
A wife told her husband to whisper dirty things into her ear.

The man then replied, "The kitchen, the living room,
the bathroom, and the dining room."

Then there was a fight!


Joe Gable
Dave "Exwintech"
Linux Counter #288984

Offline yalegodman

  • Jr. Member
  • **
  • Posts: 16
Re: Death of Sudoers ?
« Reply #53 on: January 19, 2012, 12:19:26 AM »
I guess some people just like typing sudo on every line to do anything as root.  ;)

yes, I have this lines in my /etc/bashrc:


 alias reboot="sudo reboot"
 alias halt="sudo halt"
 alias vim="sudo vim"
 alias vi="sudo vi"   (this makes you easy to edit files in any folder)
 alias apt-get="sudo apt-get"
 alias synaptic="sudo synaptic &"
alias gnumeric="gnumeric 2>/dev/null &"
alias policy="apt-cache policy"
alias gimp="gimp 2>/dev/null &"
alias gqview="gqview 2>/dev/null &"
« Last Edit: January 19, 2012, 01:20:50 AM by old-polack »

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8821
  • Aurum nostrum non est aurum vulgi.
Re: Death of Sudoers ?
« Reply #54 on: January 19, 2012, 12:51:42 AM »

I guess some people just like typing sudo on every line to do anything as root.  ;)

yes, I have this lines in my /etc/bashrc:


 alias reboot="sudo reboot"
 alias halt="sudo halt"
 alias vim="sudo vim"
 alias vi="sudo vi"   (this makes you easy to edit files in any folder)
 alias apt-get="sudo apt-get"
 alias synaptic="sudo synaptic &"
alias gnumeric="gnumeric 2>/dev/null &"
alias policy="apt-cache policy"
alias gimp="gimp 2>/dev/null &"
alias gqview="gqview 2>/dev/null &"

sudo synaptic?? passwordless ... how about alias .="sudo rm -rf /"

I'm sorry but although I am a proponent of sudo, it is this sort of setup that ...

To me "sudo" is sorta like holding a stick of dynamite with a lit 1/2 in. fast burning fuse  ??? ???
opens way to many security doors, and most don't have the proper knowledge to use it.   ;)
Hence 'su" or did I sleep thru that class  ??? ::) ;D ;D


sudo is not an excuse to make users lazy and mindless. It is a layer of security that should be taken seriously and responsibly.

yalegodman, there were no such entries on your /etc/bashrc and you added them there and IT IS NOT AN EXAMPLE TO FOLLOW.

You must have been using Ubuntoo, eh?
« Last Edit: January 19, 2012, 01:21:30 AM by old-polack »
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Death of Sudoers ?
« Reply #55 on: January 19, 2012, 01:06:05 AM »
I guess some people just like typing sudo on every line to do anything as root.  ;)


yes, I have this lines in my /etc/bashrc:


 alias reboot="sudo reboot"
 alias halt="sudo halt"
 alias vim="sudo vim"
 alias vi="sudo vi"   (this makes you easy to edit files in any folder)
 alias apt-get="sudo apt-get"
 alias synaptic="sudo synaptic &"
alias gnumeric="gnumeric 2>/dev/null &"
alias policy="apt-cache policy"
alias gimp="gimp 2>/dev/null &"
alias gqview="gqview 2>/dev/null &"
   
That is not good. It is insecure, like filling your house with priceless antiques and artwork and leaving your doors and windows wide open is insecure.    
sudo was not intended to be used in this way by those who developed it.    
« Last Edit: January 19, 2012, 01:22:02 AM by old-polack »

Offline ternor

  • Hero Member
  • *****
  • Posts: 1837
Re: Death of Sudoers ?
« Reply #56 on: January 19, 2012, 03:12:15 AM »
As the sole user of my system I have never had any use for sudo.  Adding the 'special' section to a repository would mean that you also receive upgrades from that section which are not necessarily ready for use.  Hiding sudo there seems to be a clumsy solution.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11062
  • MLUs Forever!
Re: Death of Sudoers ?
« Reply #57 on: January 19, 2012, 04:16:08 AM »
As the sole user of my system I have never had any use for sudo.  Adding the 'special' section to a repository would mean that you also receive upgrades from that section which are not necessarily ready for use.  Hiding sudo there seems to be a clumsy solution.

Not hidden ....  placed there. You can just as easily remove that section from your sources list, as well as add it, to prevent any automatic updates you do not wish to receive.


Quote from: Sproggy
it's not hidden ... it's placed there as it is a specialist app for this distribution ... it is not mainstream and is not supported by the community ... by all means if you want Sudo install it and configure it yourself ... but dont ask for help about it ... if you want help with it aswell go on over to Buntu ... im sure they will welcome you with open arms into their unsecure environment ... and tell you the evils of Su and the dustro's that use it ...

I find this objectionable.

I will refrain from making further comment on it!

regards
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8821
  • Aurum nostrum non est aurum vulgi.
Re: Death of Sudoers ?
« Reply #58 on: January 19, 2012, 05:37:01 AM »
Most buntu users just got used to it because it's already installed for them. Which in all probability is the reason why MANY Buntu users take its power for granted.

I can only have the highest respect for the privilege users who earned the sudo rights. The knowledge of how it is correctly used ... and a high degree of responsibility in its use.

Rant mode off ... too.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Online Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6472
  • I'm going South
Re: Death of Sudoers ?
« Reply #59 on: January 19, 2012, 05:50:09 AM »
As the sole user of my system I have never had any use for sudo.  Adding the 'special' section to a repository would mean that you also receive upgrades from that section which are not necessarily ready for use.  Hiding sudo there seems to be a clumsy solution.

it's not hidden ... it's placed there as it is a specialist app for this distribution ... it is not mainstream and is not supported by the community ... by all means if you want Sudo install it and configure it yourself ... but dont ask for help about it ... if you want help with it aswell go on over to Buntu ... im sure they will welcome you with open arms into their unsecure environment ... and tell you the evils of Su and the dustro's that use it ...

That sounds a bit extreme. As pointed out by O-P in the post he linked to in his first reply sudo does have legitimate uses in any Linux system, at least if you have several users and need to give some of them limited administrative rights.

The command is meant to enhance your security, as the proper use of it means that you don't have to give the root password to everyone that otherwise would need it. Nevertheless, the way it is used in some distros reduces your security instead. But that doesn't make the proper use of sudo less legitimate. It's the buntu way that is insecure, dangerous and generally irritating.
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D