LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-10-2024, 07:21 AM   #1
gattocarlo
Member
 
Registered: Jan 2020
Posts: 63

Rep: Reputation: Disabled
/tmp directory changing permissions after reboot (slackware 15.0)


Hello,

I've recently upgraded my home server to slackware 15, a new totally fresh installation.

Everything is working properly but after a reboot (I think, but I'm not sure), the /tmp directory was set as

Code:
drwxr-xr-x
instead of

Code:
drwxrwxrwt
I tried to understand how and when that happened (it occurred twice, so far), but with no result. Any idea?

Thanks for your kind attention.

Best,
andrea
 
Old 03-10-2024, 08:07 AM   #2
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,942

Rep: Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568
  • Did you install a bad package? 'grep ^tmp /var/adm/packages/*' should return only the aaa_base package.
  • Any script run as root can do anything. Did you install something in addition to slackware packages?
  • If /tmp is not a directory in the root file system but a mount point, is the line in /etc/fstab correct?
  • When you see the wrong mode, 'stat /tmp'. Does the Change time ring a bell? (Although, for example, new files in /tmp change it too.)
  • A broken cron script to clean /tmp.
 
1 members found this post helpful.
Old 03-10-2024, 08:36 AM   #3
gattocarlo
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Petri Kaukasoina View Post
  • Did you install a bad package? 'grep ^tmp /var/adm/packages/*' should return only the aaa_base package.
thanks a lot!

The culprit is the asterisk.SlackBuild (from slackbuilds): it seems like the build process of asterisk creates a /tmp file during installation, with the obvious consequences...

thanks a lot for the pointer.

best,
andrea
 
Old 03-10-2024, 08:51 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,133

Rep: Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204
hi andrea,

I just tried to build asterisk from SBo but there's no /tmp directory in the final package nor in the filesystem as a result of the build (I'm not able to reproduce what you describe)...
 
2 members found this post helpful.
Old 03-10-2024, 11:08 AM   #5
gattocarlo
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
hi andrea,

I just tried to build asterisk from SBo but there's no /tmp directory in the final package nor in the filesystem as a result of the build (I'm not able to reproduce what you describe)...
SBo comes with 16.15.0 and when I went online with my server I upgraded to 18.21.0, using the SBo script. It is not a bug in the script, I think, since with asterisk-18.1.1 everything was fine. But when building 18.21.0 I find a tmp/ in /tmp/Sbo/package-asterisk/.

best,
andrea
 
1 members found this post helpful.
Old 03-10-2024, 01:24 PM   #6
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,553

Rep: Reputation: 8567Reputation: 8567Reputation: 8567Reputation: 8567Reputation: 8567Reputation: 8567Reputation: 8567Reputation: 8567Reputation: 8567Reputation: 8567Reputation: 8567
This can happen when something is untarred in /tmp that changes the permissions of the current directory. An example of something like this is the Firefox source tarball.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cd /tmp is not working it keep saying /tmp is not a directory Lawsonspoon Linux - Server 4 05-04-2021 03:39 PM
[SOLVED] Mondoarchvie changing /tmp permissions linuxguy7820 Linux - Software 1 02-21-2013 02:11 PM
Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? bethanlowder Fedora 7 09-25-2009 07:17 AM
Numerous scb_*.tmp files in /tmp dburk Programming 3 08-18-2003 04:28 PM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration