Ask your questions here.
Post a reply
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## installation, edit sudoers file...

Mon Jan 23, 2012 8:38 pm

in nano saves to:
/etc/sudoers.tmp
Is that correct?
(i don't think so).
ah, damn, btw:
i used the snapshot64, and besides the above it went well, and now i got refracta on a reasonable piece of hardware (no Vbox, no stoneage, but a laptop with a Gig of RAM and a dual-core-whatever-it-has model name : Intel(R) Pentium(R) CPU P6100 @ 2.00GHz
).
meandean

- meandean
- Posts: 392
- Joined: Wed Mar 09, 2011 5:16 am

## Re: installation, edit sudoers file...

Mon Jan 23, 2012 10:12 pm

are you using the visudo command?
Oh I guess you are talking about during the install? dunno bout that...simple mode kind of guy here
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: installation, edit sudoers file...

Mon Jan 23, 2012 11:01 pm

yeah, i mean with the installer. at the end, after all and everyting is rsynced to hd, it asks you if you want to edit the sudoers file.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: installation, edit sudoers file...

Tue Jan 24, 2012 12:31 am

Yes, the script uses visudo, and that's correct for it to save it under a different name before it replaces the original.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: installation, edit sudoers file...

Tue Jan 24, 2012 6:02 pm

Aha, ok. I never realized that (Well: i never use visudo, and if yes i use it with vim, save with , and that does not show you where it saves it, so it is clear why i did never realize).
As a test i set "update-alternatives --config editor", ran visudo, made a change, saved with :w (which only saves, shows you where it saves, but does not close), and had the same result: /etc/sudoers.tmp.
Still a bit strange behaviour, but ok.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: installation, edit sudoers file...

Tue Jan 24, 2012 7:17 pm

> visudo edits the sudoers file in a safe fashion, analogous to vipw(8).
> visudo locks the sudoers file against multiple simultaneous edits,
> provides basic sanity checks, and checks for parse errors. If the
> sudoers file is currently being edited you will receive a message to
> try again later.
> The lock file used is the specified sudoers file with ".tmp"
> appended to it.

Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.