Date: Tue, 29 May 2012 13:55:41 -0500 (CDT) From: Robert Bonomi <bonomi@mail.r-bonomi.com> To: freebsd-questions@freebsd.org Subject: Re: removing /var/empty on a non-system disk Message-ID: <201205291855.q4TItfvS029816@mail.r-bonomi.com> In-Reply-To: <4FC423B2.7020708@dreamchaser.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> From owner-freebsd-questions@freebsd.org Mon May 28 20:22:58 2012 > Date: Mon, 28 May 2012 19:17:38 -0600 > From: Gary Aitken <garya@dreamchaser.org.r-bonomi.com> > To: freebsd-questions@freebsd.org > Subject: Re: removing /var/empty on a non-system disk > > On 05/28/12 15:08, Robert Bonomi wrote: > > >> From owner-freebsd-questions@freebsd.org Mon May 28 14:10:55 2012 > >> Date: Mon, 28 May 2012 13:05:45 -0600 > >> From: Gary Aitken<freebsd@dreamchaser.org.r-bonomi.com> > >> To: Polytropon<freebsd@edvax.de> > >> Cc: freebsd-questions@freebsd.org > >> Subject: Re: removing /var/empty on a non-system disk > >> > >> On 5/25/2012 4:01 PM, Polytropon wrote: > >>> > >>> I should have mentioned that I did the (successful) test > >>> logging in as root (real console login). If you use "su -" > >>> or "su root", the effect should be the same. You can always > >>> check the success of your operation with the "ls -lo" command. > >> > >> Nope. That was the problem. I had logged in on the vty as normal user > >> and done su root. Had to back all the way out and log in on the vty as > >> root to make it work. > > > > I'm going to guess that you did 'su root', not 'su - root'. The two commands > > are *NOT* identical. 'su root' does not run the root 'login' scripts; thus > > environment variables (including path, user, logname etc.) are *not* set as > > they are on root login -- this causes some 'am i root' tests to fail. OTOH, > > 'su - root' should be equivalent to a root login in all respects. > > Thank you. That explains a number of problems I've been having. doh. > > > NOTE; there will be issues if the 'working directory' of a parent process is > > the directory you are trying to delete. > > knew about that part > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205291855.q4TItfvS029816>