Thomas, You might have something there. I am using Slackware's package manager which in my SlackBuild scripts, I am using the /tmp directory to untar and do work in. In fact, today it retained permissions consistently (I restarted once and then again to double check), so maybe it was a coincidence that it kept changing permissions since I was installing packages there?
What would be the correct way of untarring in /tmp ? Or should I create a folder in /tmp/build and build and install there? All I'm doing is mkdir -v <new dir name> && tar -xvf <source> -C <new dir name> --strip-components 1, for most of my scripts. On Wed, May 6, 2020 at 5:40 AM Thomas Seeling <[email protected]> wrote: > Hallo, > > >> For some reason my /tmp directory keeps resetting to 0755 > > a typical reason for this problem is unpacking an archive file in /tmp > which contains the "." current directory. tar will happily reset the > permissions and destroy the 1777 setting. > > For exactly this reason I try to avoid creating archives with commands > like "tar cf file.tar ." and always enumerate specific filenames and > directory names. > > Hunting this down might be fun. A q&d solution would be to add a S99 > startup file which resets directory permissions ;) > > Tschau...Thomas > -- > Do you wanna be a legend or a passing footprint on the sands of time? > -- > http://lists.linuxfromscratch.org/listinfo/lfs-support > FAQ: http://www.linuxfromscratch.org/blfs/faq.html > Unsubscribe: See the above information page > > Do not top post on this list. > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > http://en.wikipedia.org/wiki/Posting_style >
-- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
