Hi Rahul,
It's annoying to have to do visudo after every install :)
Couple of comments:
Technical - You might want to mention that your step requires root access (obvious to us, but perhaps not to a newbie) - Not sure on the Fedora style, but using "#" denotes root user in RH docs. Eg # echo 'sampleusername'.....
Neatness - The OCD part of my brain would prefer editing the sudoers file rather appending :)
Grammar - s/Fedora uses regular user account/Fedora uses a regular user account - The rest I will leave that to a more skilled practitioner :)
Regards,
Andrew
On Mon, Mar 30, 2009 at 1:35 AM, Andrew Ross anross@redhat.com wrote:
Hi Rahul,
It's annoying to have to do visudo after every install :)
Btw, why we do need to use visudo than simple vi ? What is the difference ?
Kushal
Hi Kushal,
Btw, why we do need to use visudo than simple vi ? What is the difference ?
Kushal
By default /etc/sudoers is read only.
visudo lets you edit and save. vi the same file and you have to force save.
/me guesses its just added security....
On Sun, Mar 29, 2009 at 9:54 PM, Andrew Ross anross@redhat.com wrote:
Hi Kushal,
Btw, why we do need to use visudo than simple vi ? What is the difference ?
Kushal
By default /etc/sudoers is read only.
visudo lets you edit and save. vi the same file and you have to force save.
/me guesses its just added security....
That's not the only reason. Try catching an error / typo while just using vi/vim. With visudo, it validates syntax too.
Clint
On Sun, Mar 29, 2009 at 10:00 PM, Clint Savage herlo1@gmail.com wrote:
On Sun, Mar 29, 2009 at 9:54 PM, Andrew Ross anross@redhat.com wrote:
Hi Kushal,
Btw, why we do need to use visudo than simple vi ? What is the difference ?
Kushal
By default /etc/sudoers is read only.
visudo lets you edit and save. vi the same file and you have to force save.
/me guesses its just added security....
That's not the only reason. Try catching an error / typo while just using vi/vim. With visudo, it validates syntax too.
Clint
Oh, and if you use visudo, if you set your $EDITOR variable, it doesn't require vi/vim.
Clint
Kushal Das wrote:
On Mon, Mar 30, 2009 at 1:35 AM, Andrew Ross anross@redhat.com wrote:
Hi Rahul,
It's annoying to have to do visudo after every install :)
Btw, why we do need to use visudo than simple vi ? What is the difference ?
Kushal
Doesn't visudo handle locking so that two people don't try to edit the file at once, just like vipw and vigr? also, if you set $EDITOR or $VISUAL, it will used the specified editor.
Mikkel
Andrew Ross wrote:
Hi Rahul,
It's annoying to have to do visudo after every install :)
Couple of comments:
Technical
- You might want to mention that your step requires root access (obvious to us, but perhaps not to a newbie)
- Not sure on the Fedora style, but using "#" denotes root user in RH docs. Eg # echo 'sampleusername'.....
Done
Neatness
- The OCD part of my brain would prefer editing the sudoers file rather appending :)
I have already added a reference to another guide that does it using visudo but teaching newbies vi when they are just getting started didn't seem a kind thing to do.
Grammar
- s/Fedora uses regular user account/Fedora uses a regular user account
Reworded. Thanks.
Rahul