On 5/6/20 12:14 AM, Bud Rozwood wrote:
Hi,

For some reason my /tmp directory keeps resetting to 0755 and I would have to manually resetting back to the correct permissions 1777 everytime. I figured this out when I couldn't start my X server the other day and this was the issue.

I did find this question <https://unix.stackexchange.com/questions/490995/why-is-tmp-mounted-with-permissions-0755-when-fstab-has-1777> that might be related somehow but I don't want to mess with my /etc/fstab yet until I know for sure that it is the issue. Could it have something to do with my XDG variables/confs are set up? I've attached is my fstab if it would help at all.

I will appreciate any help on this.


It's not your fstab. but I would change the fsck order for sda2 and efivarfs to zero.

From fstab it looks like you are using the system V book.

Check /etc/sysconfig/createfiles to see if anything weird is there.

Also, check ~/bash_profile, ~/.bashrc, /etc/profile, /etc/bashrc for chmod commands. Also anything in /etc/profile.d.

Another thing to try is to edit  /etc/inittab and set initdefault to 1.
You can also edit /boot/grub/grub.cfg kernel line to add init=/bin/bash to skip all boot scripts. You can also do the last two items via the grub interactive shell.

You can also edit /etc/sysconfig/rc.site and uncomment:

#IPROMPT="yes"

Then, upon boot, when the interactive startup message comes up, press "I". You can then step through the boot scripts. You may need to edit some boot scripts to add 'ls -ld /tmp' temporarily to see when the permissions change.

  -- Bruce
--
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

Reply via email to