Date: Fri, 25 Jan 2013 08:40:21 +0100 From: Polytropon <freebsd@edvax.de> To: Ralf Mardorf <ralf.mardorf@rocketmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Sharing a mail folder between Linux and FreeBSD Message-ID: <20130125084021.04e96f8f.freebsd@edvax.de> In-Reply-To: <1359099175.2155.42.camel@precise> References: <1358988080.4855.5.camel@precise> <op.wreshnxpqhadp0@freebsd> <5101B141.2090909@gmail.com> <1359076287.2155.18.camel@precise> <20130125080311.d794da70.freebsd@edvax.de> <1359099175.2155.42.camel@precise>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 25 Jan 2013 08:32:55 +0100, Ralf Mardorf wrote: > On Fri, 2013-01-25 at 08:03 +0100, Polytropon wrote: > > UIDs and GIDs should match here. All files belonging to rocketmouse > > should be 1000:1000 _and_ the name "rocketmouse" should be > > associated to those numerical values (see files mentioned > > above). > > Yes, but because I missed to update the database X login asked for 1001. Correct - several programs query that database instead of the plain text files. > > But pwd.db and spwd.db (the password databases with encrypted > > content) don't reflect those informations! > > So '# /usr/sbin/pwd_mkdb -d/etc /etc/master.passwd' is ok, regarding > to ... Yes, use that command. > > "man pwd_mkdb" and rebuild > > the databases. > > -c and -u switches could be used too, but aren't needed, since the > entries are correct. It's not needed to make things that complicated (to selectively deal with entries, for example). The simple thing of # cd /etc # pkd_mkdb /etc/master.passwd should do the trick here. > > If you would have used the "vipw" command to make the change > > to the passwd (plain text) files, it would have called pwd_mkdb > > after the change. But don't worry: Knowing those "low level hacks" > > can be helpful in some worst-case scenario. :-) > > And then I don't need to use vi, if the default text editor still should > be vi. The $EDITOR variable will be honored, and as long as the program is available (and the terminal capabilities apply), it will work as expected. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130125084021.04e96f8f.freebsd>