37
Wombat
6y

N e v e r, fucking e v e r chmod/ chown permissions recursive on the linux /etc folder❗

I did yesterday (, because I am fucking dumb and know little about linux systems) and got the result today. My whole mailserver wasn't working.
After fucking tons of googling and searching and log-digging I found that postfix and opendkim require specific permissions on their respective folders and files.

After changing a fucking amount of permissions on those fucking files the fucking mailserver worked and I can send and receive mails, now. 😤😤😤

What a torture. Lesson learned. Never will repeat this mistake.

Comments
  • 32
    Just do a simple chmod -R 777 /etc
    *Trump voice* Don't care. It's totally safe. So safe. Like the safest it has ever been.
  • 0
    I migrated from a mail server I configured manually to one that's configured entirely with Ansible roles:

    https://github.com/sumdog/bee2/...

    It makes things a lot easier if I ever want to migrate it somewhere else.
  • 3
    chown www-data:www-data /var/www - R

    This is a command I use quite frequently.
  • 0
    @undef how can I make snapshots?
  • 0
    @olback what does that do? Who is this user-group?
  • 2
    @Wombat changes the ownership of '/var/www' (where my websites are located) to 'www-data'. The web server is running under the user www-data.
  • 0
    @undef are you 12? 🙄
  • 0
    @kenogo thank you, sir.
  • 1
    @Wombat what mail server are you using? I know I asked this a lot but now that I have a four day vacation I am planning on finally making one for myself
  • 1
    @gitpush @linuxxx helped me a lot with setting it up. I use a bunch of software wich I don't fully understand eg.: postfix, dovecot, roundcube, opendkim...

    Since I installed it in January I can't remember details. But it was pretty brain fucking for me. 😥
  • 3
    @Wombat I will dig again into my favorite rants, I'm sure I added one where @Linux gave info, and one where @linuxxx gave info. This vacation is gonna be fun ^_^

    Hoping I don't get hacked tho lol
  • 2
    @gitpush
    Dont make an open relay ;)
  • 2
    @Linux I wonder what will happen if I do so XD

    Thanks for the tip :D
  • 1
    I did a chmod -R 777 / once on my pi because of permission problems. *sudo* and lots of other important commands died as well. I had to reinstall Ubuntu Mate ... 😞
  • 2
    etckeeper is your friend :)

    Not to mention LVM or ZFS: you can use them to make quick periodic snapshots of your system, so that you can easily rollback or compare when something happens
  • 0
    @stacked I just flashed by 64 SSD with Ubuntu, I think I'll try etckeeper. Thanks!
Add Comment