Hi all,
I am planning to edit sudoers files in /etc.
when i open this wiht vim command and change some thing it said "this file is read only"
Is this okay to change the status of sudoers files. or any implication? please point
Regards, Vijay Shanker Dubey Ph: +91-9818311884
Hi all;
One thing more does there any tool in GNOME which can be used to edit sudoers file.
:)
Thanks..
Regards, Vijay Shanker Dubey Ph: +91-9818311884
On Wed, Oct 28, 2009 at 1:29 PM, vijay shanker vijay.shad@gmail.com wrote:
Hi all,
I am planning to edit sudoers files in /etc.
when i open this wiht vim command and change some thing it said "this file is read only"
Is this okay to change the status of sudoers files. or any implication? please point
Regards, Vijay Shanker Dubey Ph: +91-9818311884
yes got it
This file MUST be edited with the 'visudo' command as root.
above line is in comments of sudoers file.
:)
Thanks larry
Regards, Vijay Shanker Dubey Ph: +91-9818311884
On Wed, Oct 28, 2009 at 1:38 PM, Larry Ivan Brower larry-lists@maxqe.comwrote:
You should be using visudo for editing the file
vijay shanker vijay.shad@gmail.com wrote:
Hi all;
One thing more does there any tool in GNOME which can be used to edit sudoers file.
:)
Thanks..
Regards, Vijay Shanker Dubey Ph: +91-9818311884
On Wed, Oct 28, 2009 at 1:29 PM, vijay shanker vijay.shad@gmail.com
wrote:
Hi all,
I am planning to edit sudoers files in /etc.
when i open this wiht vim command and change some thing it said "this
file
is read only"
Is this okay to change the status of sudoers files. or any implication? please point
Regards, Vijay Shanker Dubey Ph: +91-9818311884
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wednesday 28 October 2009 04:11, vijay shanker wrote:
This file MUST be edited with the 'visudo' command as root.
NO, it MUST not be edited with 'visudo'. YES, you should use 'visudo'.
You can edit sudoer with vi or vim and save the changes too. Just read what it tells you you need to do in order to save it.
Yeah! I agree you !!
You also can edit it and quit with :wq! in the Vi command ~~
On Wed, Oct 28, 2009 at 10:06 PM, Robert Spangler mlists@zoominternet.netwrote:
On Wednesday 28 October 2009 04:11, vijay shanker wrote:
This file MUST be edited with the 'visudo' command as root.
NO, it MUST not be edited with 'visudo'. YES, you should use 'visudo'.
You can edit sudoer with vi or vim and save the changes too. Just read what it tells you you need to do in order to save it.
--
Regards Robert
Linux User #296285 http://counter.li.org _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Thanks guys,
I have done my changes in the sudoers file.
what i did is ; added a group with same access as root.
how i am able to use sudo. but there is a problem.
my machine is responding very slow for the sudo. It takes almost 3 minutes to open a small file with command
sudo vim filename.conf
i don't think this might be because of the changes. But you can explain this situation to me.
To edit sudoers file I used visudo.
and thanks Majian for that command in vi editor. it was great.
Regards, Vijay Shanker Dubey Ph: +91-9818311884
On Wed, Oct 28, 2009 at 7:57 PM, Majian jiannma@gmail.com wrote:
Yeah! I agree you !!
You also can edit it and quit with :wq! in the Vi command ~~
On Wed, Oct 28, 2009 at 10:06 PM, Robert Spangler <mlists@zoominternet.net
wrote:
On Wednesday 28 October 2009 04:11, vijay shanker wrote:
This file MUST be edited with the 'visudo' command as root.
NO, it MUST not be edited with 'visudo'. YES, you should use 'visudo'.
You can edit sudoer with vi or vim and save the changes too. Just read what it tells you you need to do in order to save it.
--
Regards Robert
Linux User #296285 http://counter.li.org _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Oct 29, 2009, at 1:35 AM, vijay shanker vijay.shad@gmail.com wrote:
Thanks guys,
I have done my changes in the sudoers file.
what i did is ; added a group with same access as root.
how i am able to use sudo. but there is a problem.
my machine is responding very slow for the sudo. It takes almost 3 minutes to open a small file with command
sudo vim filename.conf
i don't think this might be because of the changes. But you can explain this situation to me.
To edit sudoers file I used visudo.
and thanks Majian for that command in vi editor. it was great.
3 minutes is a typical network timeout.
Sounds like you don't have dns setup properly and/or nis/winbind or ldap if you use those.
-Ross
No Ross, This is the irony; i am working on the same machine. There is no network in between
Regards, Vijay Shanker Dubey Ph: +91-9818311884
On Thu, Oct 29, 2009 at 6:40 PM, Ross Walker rswwalker@gmail.com wrote:
On Oct 29, 2009, at 1:35 AM, vijay shanker vijay.shad@gmail.com wrote:
Thanks guys,
I have done my changes in the sudoers file.
what i did is ; added a group with same access as root.
how i am able to use sudo. but there is a problem.
my machine is responding very slow for the sudo. It takes almost 3 minutes to open a small file with command
sudo vim filename.conf
i don't think this might be because of the changes. But you can explain this situation to me.
To edit sudoers file I used visudo.
and thanks Majian for that command in vi editor. it was great.
3 minutes is a typical network timeout.
Sounds like you don't have dns setup properly and/or nis/winbind or ldap if you use those.
-Ross
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
vijay shanker vijay.shad@gmail.com schrieb am 29.10.2009 16:24:54:
No Ross, This is the irony; i am working on the same machine. There is no network in between
Install strace, then run sudo via strace and look which syscall is causing the hangs. As always the manpage is your friend.
As a sidenote: I don't know if you're aware of it but allowing vi/vim via sudo gives you full access as the user (in your case root). This is true for all programms with the possibility to break out into a shell. You may want to read sudo(8) and sudoers(5) and watch out for noexec.
Frank.
Try with visudo
On Wed, Oct 28, 2009 at 9:59 AM, vijay shanker vijay.shad@gmail.com wrote:
Hi all,
I am planning to edit sudoers files in /etc.
when i open this wiht vim command and change some thing it said "this file is read only"
Is this okay to change the status of sudoers files. or any implication? please point
Regards, Vijay Shanker Dubey Ph: +91-9818311884
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Thanks Ivan;
I am done with my desired changes
:)
Regards, Vijay Shanker Dubey Ph: +91-9818311884
On Wed, Oct 28, 2009 at 1:40 PM, Ivan Varbanov < burnbrain.mailing.lists@gmail.com> wrote:
Try with visudo
On Wed, Oct 28, 2009 at 9:59 AM, vijay shanker vijay.shad@gmail.comwrote:
Hi all,
I am planning to edit sudoers files in /etc.
when i open this wiht vim command and change some thing it said "this file is read only"
Is this okay to change the status of sudoers files. or any implication? please point
Regards, Vijay Shanker Dubey Ph: +91-9818311884
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos