Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2013 12:30:53 -0500
From:      Jimmy <ljboiler@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: Why does Samba requires 777 permissions on /tmp
Message-ID:  <20130520173053.GA10956@jmobile.jimmy.net>
In-Reply-To: <CAFzAeSeptw-ztkoOBQiA5xEB2KrOaEBtLzcokMDJhmbwEOTViA@mail.gmail.com>
References:  <20130519151706.4d67afe5@scorpio> <CAFzAeSeH_EMK6p4PSCQ0Ps8L=4V%2BarAF7b7FJwmaGinnw5CMUw@mail.gmail.com> <20130519204753.GA47341@jmobile.jimmy.net> <20130519222232.13aa95c6@raksha.tavi.co.uk> <CAFzAeSdgxAqCJRVpPyNHehYXf%2BrXgHOXo-3G1neYgBLRTVd70w@mail.gmail.com> <20130520122001.19368e34@X220.ovitrap.com> <CAJ_iqtbnfqpBux1nZmYzTRZcov2W7m%2BgSG0GwpdPdBRD7yfGCQ@mail.gmail.com> <CAFzAeSc-kuL=HLy=Dpc37nWxy_sv9R7uS6sJDSXJuJshXb6AAQ@mail.gmail.com> <CAJ_iqta61cD0m5poR70kmoguuUc9jj2XQR46WFW0jVWZqAAphg@mail.gmail.com> <CAFzAeSeptw-ztkoOBQiA5xEB2KrOaEBtLzcokMDJhmbwEOTViA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ok, I've discovered a combination of things that will reproduce that message,
and it REALLY does come down to NOT HAVING '.' IN YOUR PATH, especially for 
user root.

If I don't have '.' in my path, I can "cd" to any directory and Ruby will not
complain when I run the system() command (or the equivilent using backticks).
If I put '.' in my path and "cd" to any world-writable directory (and /tmp
is one of those and needs to be), I get the warning ("...world writable dir <directory>/. "

My guess is 1) you have '.' in your path, and 2) you're running portupgrade after you've
"cd"'d to /tmp...


On Mon, May 20, 2013 at 11:49:08AM -0500, sindrome wrote:
> Fair enough but that's not the root of this problem I'm sure
> 
> 
> On Mon, May 20, 2013 at 11:47 AM, Torfinn Ingolfsen <tingox@gmail.com>wrote:
> 
> > On Mon, May 20, 2013 at 6:45 PM, sindrome <sindrome@gmail.com> wrote:
> > > Clearly I'm not the only one with this problem.  Something is amending
> > onto
> > > the PATH and I'd like to get to the bottom of this.  I'm sure it will
> > help a
> > > lot of people.
> >
> > Well, start by taking the current directory ('.') out of your PATH.
> > (It is bad, for a number of reasons).
> >
> > HTH
> > --
> > Regards,
> > Torfinn Ingolfsen
> > _______________________________________________
> > freebsd-ports@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
> >
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130520173053.GA10956>