I am using putty to access my server. Its got CentOS 5.5 fresh install.
when I run the command ‘visudo’ to edit the file it does not show any editing option nor it lets me edit it.
what am I doing wrong? I m new to linux some help please ![]()
I am using putty to access my server. Its got CentOS 5.5 fresh install.
when I run the command ‘visudo’ to edit the file it does not show any editing option nor it lets me edit it.
what am I doing wrong? I m new to linux some help please ![]()
Re: CentOS help please
isn’t “vi” one command (for the app) and then “sudo” to get to privileged mode?
I would think doing a “sudo” and then run “vi + filename” (2 commands)
Re: CentOS help please
your command should be ..
sudo vi <filename>
remember, sudo is used to get root priviliges, so you might need to enter root password if u have initiated some command with SUDO.
u don’t need to write sudo if you want to edit/read/write a file in ur own user directory
i.e
vi <yourfilenamehere>
Re: CentOS help please
you run visudo to give all access to the wheel group by editing the file.
press insert to edit
:w to write
:q to exit
simple but took me ages to figure that out
Re: CentOS help please
:q!= force write, BTW
visudo does syntax check when you save the file. Its only used for sudoer file.
Laffy you logging in as root?
can you do cat or less on that file?
Now if you see fine constants, you can use"r" to replace one char. or press “R” to change multiple characters.
Also you can use press i to take vi/vim into insert/editing mode.
Try this on linux system
vimtutor(from commamd line)
you can thank me later for vimtutor ![]()
Re: CentOS help please
hmmm
my users still dont have “allaccess” and I am using root to perform tasks ![]()
is it same as :ws
Re: CentOS help please
yeah use root to fix the task
use
gpasswd -a laffy wheel
then in visudo uncomment " wheel " group entry.
password or no password your choice.
recommend me some book or online website where I can learn all this. I have no idea what you are talking about. I edited the file i guess using insert and :w then :q
laffy!!!
vmtutor
ok?
do it now.
.
Re: CentOS help please
This commad -a = add laffy to wheel
with -d it take you out.
laffy
do
man gpasswd
man = manual pages
now!! ![]()
I like it. ![]()
bash, vmtutor command not found
Re: CentOS help please
laffy
you can emulate/execute root commands only when you use
sudo /some/deadly/comand
sudo = will chack your access against the file you edited.
Re: CentOS help please
laffy,
do
yum install -v vmtutor
that will install it.
Re: CentOS help please
as a matter of fact do
locate vmtutor
or
whereis vmtutor
to find out if its installed.
i have user already in wheel group
i used “# usermod -a -G wheel demo”
demo is the user
its says
vmtutor:
Re: CentOS help please
groups demo
paste results.
also
grep wheel /etc/sudores
paste results.
for vmtutor:
yum list
yum -y install vmtutor