BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Dropping obsolete commands (Linux Pocket Guide)
- Subject: [Discuss] Dropping obsolete commands (Linux Pocket Guide)
- From: dbarrett at blazemonger.com (Daniel Barrett)
- Date: Wed, 18 Nov 2015 13:10:56 -0500
- References: <20151118114639.GN9293@randomstring.org>
On Tue, Nov 17, 2015 at 09:08:44PM -0500, Chuck Anderson wrote: >> Other than chfn, how do people usually change their Full Name in >> /etc/passwd? On November 18, 2015, Dan Ritter wrote: >usermod comes along with useradd and userdel. Being able to >supply everything on the command line (including a password >hash) is a great improvement over interactive commands. Dan is correct that "usermod -c" does the trick, e.g., $ sudo usermod -c 'John Smith,,,' jsmith but unfortunately this command requires write access to /etc/passwd, so normal users can't change their own names. In contrast, chfn is setuid root, so anybody can change his/her own name. Hmm. Maybe chfn has to stay.... [Insert your own horror story about chfn's setuid root status here.] -- Dan Barrett dbarrett at blazemonger.com
- Follow-Ups:
- [Discuss] Dropping obsolete commands (Linux Pocket Guide)
- From: dsr at randomstring.org (Dan Ritter)
- [Discuss] Dropping obsolete commands (Linux Pocket Guide)
- References:
- [Discuss] Dropping obsolete commands (Linux Pocket Guide)
- From: dsr at randomstring.org (Dan Ritter)
- [Discuss] Dropping obsolete commands (Linux Pocket Guide)
- Prev by Date: [Discuss] Dropping obsolete commands (Linux Pocket Guide)
- Next by Date: [Discuss] Dropping obsolete commands (Linux Pocket Guide)
- Previous by thread: [Discuss] Dropping obsolete commands (Linux Pocket Guide)
- Next by thread: [Discuss] Dropping obsolete commands (Linux Pocket Guide)
- Index(es):