User as root without typing sudo each time

General support questions including new installations
Post Reply
jobijoba
Posts: 13
Joined: 2015/01/21 16:40:15

User as root without typing sudo each time

Post by jobijoba » 2015/04/17 09:32:46

Hi all,

I want to allow some user to have privilege like root user. I know that the place is in "/etc/sudoers" or "visudo", ok it works fine and i can log with a user and type my command with sudo.
Now i want to disable sudo before each command. How is it possible ?

Regards

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: User as root without typing sudo each time

Post by TrevorH » 2015/04/17 09:35:34

It isn't and it's a very bad idea from a security point of view.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

jobijoba
Posts: 13
Joined: 2015/01/21 16:40:15

Re: User as root without typing sudo each time

Post by jobijoba » 2015/04/17 09:38:12

Why is it bad ? Users are allow to execute command with sudo so just without sudo it's not really different no ?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: User as root without typing sudo each time

Post by TrevorH » 2015/04/17 15:01:15

Even sudo with NOPASSWD is a bad option from a security POV. Givng the user root access without using sudo is worse.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply