Hello there, there is a strange thing.... FreeBSD 5.3 randomly frogets some of my users. Sometimes I see in the first column of the ps aux output the uid number instead of the login name, but next when I run it, there is the login name. Besides, I tried to chown a directory to an existing user, but the I get an error message, that there wasn't such user. I immediately checked passwd, group and master.passwd files in /etc but the entry for that user was present there. The pw userdel was unable to delete that user, so I had to manually remove it from those three files and create it again. It worked then, but a bit later there was the same result. I'm quite annoyed now. This state isn't safe enough, I have to do something to get around with this. Do You have similar experiences? Or do You now some kinda workaround? Cheers, G?bor K?vesd?n
Stripping -bugs and -current cc; this applies to -stable and isn't in reference to an existing PR. On Sat, 21 May 2005, [ISO-8859-1] K?vesd?n G?bor wrote:> Hello there, > > there is a strange thing.... FreeBSD 5.3 randomly frogets some of my > users. Sometimes I see in the first column of the ps aux output the uid > number instead of the login name, but next when I run it, there is the > login name. Besides, I tried to chown a directory to an existing user, > but the I get an error message, that there wasn't such user.What are you using for user lookups? Are you using nss_ldap or something other than the default 'files' lookup? Can you post the contents of /etc/nsswitch.conf? I'd also check your master.passwd file for any syntax errors or odd characters and then force a rebuild with: pwd_mkdb -p /etc/master.passwd as root.> I immediately checked passwd, group and master.passwd files in /etc but > the entry for that user was present there. The pw userdel was unable to > delete that user, so I had to manually remove it from those three files > and create it again. It worked then, but a bit later there was the same > result. I'm quite annoyed now. This state isn't safe enough, I have to > do something to get around with this. Do You have similar experiences? > Or do You now some kinda workaround? > > Cheers, > > G?bor K?vesd?n > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >-- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org
K?vesd?n G?bor wrote:> Hello there, > > there is a strange thing.... FreeBSD 5.3 randomly frogets some of my > users. Sometimes I see in the first column of the ps aux output the > uid number instead of the login name, but next when I run it, there is > the login name. Besides, I tried to chown a directory to an existing > user, but the I get an error message, that there wasn't such user. > I immediately checked passwd, group and master.passwd files in /etc > but the entry for that user was present there. The pw userdel was > unable to delete that user, so I had to manually remove it from those > three files and create it again. It worked then, but a bit later there > was the same result. I'm quite annoyed now. This state isn't safe > enough, I have to do something to get around with this. Do You have > similar experiences? Or do You now some kinda workaround?Don't edit the /etc/passwd and /etc/master.passwd files directly, you get into a lot of trouble. Use vipw or the pw command. Also, please don't crosspost between current and stable. Please post to whichever branch your machine is following. -gordon