Editing configuration files

Karl Auer kauer at biplane.com.au
Sat Nov 24 13:04:50 UTC 2018


On Sat, 2018-11-24 at 12:38 +0000, Colin Watson wrote:
> I don't think it can realistically be said that there is a single
> preferred way to do this, any more than there's a single preferred
> way to edit any file.

There are preferred recommended way to edit some files. For example,
editing crontab should be done with "crontab -e", editing /etc/passwd
should be done with vipw, editing /etc/groups should be done with vigr,
editing the sudoers file should be done with visudo. The common
property these techniques share is that they put a lock on the file
that is respected by other programs that may also modify these files,
e.g. passwd; the lock makes sure that changes are applied in the right
order and not overwritten.

Especially for single-user systems - these aren't that important.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: A0CD 28F0 10BE FC21 C57C 67C1 19A6 83A4 9B0B 1D75
Old fingerprint: A52E F6B9 708B 51C4 85E6 1634 0571 ADF9 3C1C 6A3A





More information about the ubuntu-users mailing list