Unable to sudo
Unable to sudo
Hello, ive used many linux distros before but ive never used cent OS. when i first logged in i needed to do some commands as root, i also found i couldnt edit /ect at all. When i attempted to use sudo it told me i was not in the sudoers file. various people have suggested using visudo but when i use it it opens a windows which is uneditable. Please help.
Re: Unable to sudo
You need to be root to enable editing of sudo file.
Use su - to become root and then manipulate the sudo file(s)
Use su - to become root and then manipulate the sudo file(s)
Re: Unable to sudo
And by default, visudo uses vim so you might want to google "vim cheatsheet" if you are new to vim.
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
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
Re: Unable to sudo
You might also need he EDITOR environment variable set to vi as in export EDITOR=$(which vim) - but am not 100% certain.
Re: Unable to sudo
Using su command to become as root user. Thereafter, issue visudo to edit the /etc/sudoers file accordingly.