After running adduser (successfully), the /etc/passwd and /etc/master.passwd files are not shown updated with the new user entry until one logs out and logs back in.
Is this 'feature' normal, or a benefit of soft-updates or bug in buffer cache? Thanks. BTW, is there any possibility of un-fucking-up adduser in the future? I mean defaults/rc.conf is bad enough, but this is ridiculous. -----Original Message----- Subject: adduser abortion We are not the only ones who were confused by adduser. Mailing list archives are full of questions about this. Maybe they'll pull their heads out of their collective asses and remove this "feature" one day. This is almost as bad as MS. Maybe we need a GNOME, KDE or tk/TCL wizard to add users...maybe even use some stinky, dirty perl on the backend (after all, the messier the better.) **************** see email below **************** > Negative PR ? > I do my best to promote it. > That does not mean being uncritical. > I tried the simple act of adding a user to my system. > It failed, repeatingly asking me for a user name I had already given. Look at /etc/adduser.conf remove the user name there and leave that line blank. I've run into the same issue until I realized it was setup so that you could force user names to have a part in common. *************** see emails below **************** Adam Weinberger <[EMAIL PROTECTED]> wrote: > The whole point of this email has been entirely overlooked: to someone > who is unfamiliar with adduser, the initial configuration questions > aren't identifiable as such. Perhaps a note such as "Answers to the > following questions will be used as rules for future user additions:" Or > something that makes more sense. I agree with Adam, this bit me in the past also thinking that the "Usernames must match regular expression: " prompt was asking for the new users name, then also munging up my /etc/adduser.conf file with my proposed new users name, instead of the regular exp. This was all pilot error, but an easy error for a new admin/user to make. ----------------------snip-------------------------- desktop># adduser /etc/adduser.conf: No such file or directory Use option ``-silent'' if you don't want to see all warnings and questions. Check /etc/shells Check /etc/master.passwd Check /etc/group Usernames must match regular expression: [^[a-z0-9_][a-z0-9_-]*$]: ----------------------snip-------------------------- Especially unfriendly to a very new admin/user, who should probably be referred to /stand/sysinstall post-install configuration. Remember that as a new user to FreeBSD/UNIX one of the first recommended steps is to get a non-root login, and use it!. *********** more *************** Synopsis: Bug in /usr/sbin/adduser State-Changed-From-To: open->closed State-Changed-By: tom State-Changed-When: Wed Nov 20 04:07:45 PST 2002 State-Changed-Why: This is not a bug in adduser(8): you are using the command incorrectly. If you see the line: "Enter username[test]:" you have entered "test" in response to the line: "Usernames must match regular expression:" Instead of typing "test" as a regular expression, hit return to accept the default, or enter ^[a-z0-9_][a-z0-9_-]*$ if your adduser.conf has been modified to use "test" as the default regular expression. The fix you supplied misunderstands how the command should work - you do not "enter username second time", you enter a regular expression that valid usernames must match first, then a username later on. http://www.freebsd.org/cgi/query-pr.cgi?pr=43677 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message