1. OCAU Merchandise now available! Check out our 20th Anniversary Mugs, Classic Logo Shirts and much more! Discussion here.
    Dismiss Notice

tmpfs permissons in fstab

Discussion in 'Other Operating Systems' started by GumbyNoTalent, Mar 18, 2020.

  1. GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    8,737
    Location:
    Briz Vegas
    Ok pretty simple mounting /tmp as a tmpfs want permissions to be 777 but after reboot /tmp is 755.

    fstab
    Code:
    tmpfs        /tmp            tmpfs   nosuid,nodev,mode=1777         0       0
    
    anyone?

    raspbian duster
     
  2. HyRax1

    HyRax1 ¡Viva la Resolutión!

    Joined:
    Jun 28, 2001
    Messages:
    7,918
    Location:
    At a desk
    I believe systemd sets /tmp to be 755. Have you tried a different mountpoint? See if that stays as 777.
     
  3. elvis

    elvis Old school old fool

    Joined:
    Jun 27, 2001
    Messages:
    41,395
    Location:
    Brisbane
    Jesus H Christ can systemd just stop fucking with things it has no business fucking with?
     
    HyRax1 likes this.
  4. OP
    OP
    GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    8,737
    Location:
    Briz Vegas
    YUP
    Code:
    tmpfs        /tmp            tmpfs   nosuid,nodev,mode=1777         0       0
    tmpfs        /var/log        tmpfs   nosuid,nodev         0       0
    tmpfs        /var/tmp        tmpfs   nosuid,nodev         0       0
    pi@raspberrypi:~ $ ls -ld /var/log
    drwxr-xr-x 3 root root 120 Mar 18 01:13 /var/log
    
    fuck I hate systemd...

    systemd-timesync wants /var/lib/private to be 700 but systemd sets it to 755 so no timesync if you want read only filesystem.
    *was trying to symlink /var/lib/private to /tmp
    Code:
    pi@raspberrypi:~ $ ls -ld /var/lib/private
    lrwxrwxrwx 1 root root 4 Mar 12 01:19 /var/lib/private -> /tmp
    EDIT - was trying to create /var/lib/private as a tmpfs.
     
    Last edited: Mar 18, 2020
  5. gdjacobs

    gdjacobs Member

    Joined:
    Apr 3, 2007
    Messages:
    2,361
    Location:
    MB, Canada
    Here's the standard response a systemd fan would give you:
    As much as possible, I'm trying to save my sanity and avoid systemd these days. Strong alternatives are already here. I like OpenRC. S6 looks really nice. One of these days I'll try out GUIX. Even translating configurations is fairly straightforward as the alternatives are generally as expressive and succinct if not more so than unit files. What I'd really like is a set of libraries for Perl, Python, and the other common scripting languages that allow me to replace hard coded calls to systemctl in special purpose Linux installs.
     
  6. elvis

    elvis Old school old fool

    Joined:
    Jun 27, 2001
    Messages:
    41,395
    Location:
    Brisbane
    I don't have a whole lot of issues when it comes to systemd with the caveat that they stay in their lane.

    Is systemd a competent service management tool? Yes.

    Should systemd fuck with literally every single bit of userspace, including logging, directory permissions, TTY, etc? Fuck no. Just start and stop my services, you dicks.
     
    HyRax1 likes this.
  7. OP
    OP
    GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    8,737
    Location:
    Briz Vegas
    Well if you really want to see how systemd.mount fucks with things, here is a little light reading.
    https://www.freedesktop.org/software/systemd/man/systemd.mount.html#
    https://www.freedesktop.org/software/systemd/man/systemd.automount.html#

    Pointers from this post.
    https://unix.stackexchange.com/ques...backed-tmpfs-how-to-specify-tmp-size-manually

    In this answer the main point is;
    In all seriousness.... WTF
     
  8. gdjacobs

    gdjacobs Member

    Joined:
    Apr 3, 2007
    Messages:
    2,361
    Location:
    MB, Canada
    I'm increasingly doubting that. I had a look at their source code. Even for PID1, they've got a bad case of katamari. Networking in PID1? Why?

    Compared with S6, the difference is night and day.
     

Share This Page

Advertisement: