There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

kbin.life

reflectedodds , to linux in [HELP NEEDED] Unable to figure out directory permissions

Try adding USER root before the mkdir.

Also, just in general, when debugging container files, I comment out the failing line and set my command to tail -F /dev/null, then you can build and run the container and exec <container> bash and try to manually run the commands that are failing.

Findmysec OP ,

This is a very useful trick, thanks.

The problem was with the chmod, I changed it to include execute permissions for the user (764) and it worked. I’m also running named with a -u bind flag in “ENTRYPOINT” for insurance.

possiblylinux127 , to selfhosted in What self-hosted services can help during a crisis or emergency? This is for those affected OR those who want to help

I found this as well

www.meshpointone.com

tritonium , to selfhosted in OS recommendations

As long as you’re not relying on RAID as your backup. Don’t know why so many people struggle with understanding, RAID is not a backup. It’s a solution to ensure uptime in the face of a lost disk. I would guess most selfhosters shouldn’t be concerned with uptime. Use Borg or restic. Or if you are going to use zfs or btrfs then have a completely separate drive or pool where snapshots are stored.

Dust0741 OP ,

Yea I have a fully seperate backup solution

Lost_USB_Stick , to linux in [HELP NEEDED] Unable to figure out directory permissions

Chatgpt hope it helps looks like the permissions and ownership setup in your CONTAINERFILE might have a minor issue. Specifically, the chmod command you’re using might not be setting the directory permissions correctly. Directories usually need execute permissions for traversal. Here’s a refined version of your CONTAINERFILE to ensure the bind user has the correct permissions:FROM debian

ENV LC_ALL C.UTF-8

Update and upgrade system

RUN apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y

Install BIND 9 and sudo (for debugging if needed)

RUN apt-get install -y bind9 bind9-dnsutils bind9-libs bind9-utils sudo

Configure permissions for BIND directories

RUN mkdir -p /var/cache/bind /var/lib/bind /var/log/bind RUN chown -R bind:bind /var/cache/bind /var/lib/bind /var/log/bind RUN chmod 770 /var/cache/bind /var/lib/bind /var/log/bind

Create and configure log files

RUN touch /var/log/bind/default.log /var/log/bind/update_debug.log /var/log/bind/security_info.log /var/log/bind/bind.log RUN chown -R bind:bind /var/log/bind RUN chmod 660 /var/log/bind/*.log

Define volumes

VOLUME [“/etc/bind”, “/var/cache/bind”, “/var/lib/bind”, “/var/log/bind”]

Set the entrypoint to the named executable

ENTRYPOINT [“/usr/sbin/named”]

Set the default command arguments for the named executable

CMD [“-g”]Changes Made:Directory Permissions: Changed the permissions of the directories to 770 to ensure that the bind user can read, write, and execute (necessary for accessing the directory).Log File Permissions: Adjusted the log file permissions to 660 to ensure that only the bind user (and group, if applicable) can read and write.Explanation:chmod 770: Grants read, write, and execute permissions to the owner and the group. The execute permission is necessary for directories so that users can access their contents.chmod 660: Grants read and write permissions to the owner and the group for the log files, which is typically sufficient.Give this updated CONTAINERFILE a try and see if it resolves the permissions issue you’re encountering

liliumstar ,

The very brief summary: You need 7 perms on directories to write to them. So, 774, 770, or what have you for user/group perms.

Findmysec OP ,

Thanks I changed it to chmod 755 and it worked

dubyakay , to games in Good game soundtracks?
  • Bionic Commando Rearmed (by Simon Viklund)
  • Crypt of the Necrodancer (VA)
  • Katamari Fortissimo Damacy (VA)
sharkfucker420 , to memes in Windows 7's sample music unironically slapped so hard
@sharkfucker420@lemmy.ml avatar

I turned this on and my girlfriend turned around with the most bewildered but happy look on her face 😭

pushECX , to games in Good game soundtracks?

The Battlefield V soundtrack is pretty great, in my opinion.

lud ,

BF1 also has a really great soundtrack made by the same people.

tritonium , to selfhosted in Good guides for the security you need to set up for self hosting?

Do you need to serve an actual public like a website does? If not then you shouldn’t be exposing any fucking services except for wireguard for you and your handful of users.

JackbyDev OP ,

I’ve never set up a VPN. I’ve connected to them for work, sure, and I’ve dealt with port forwarding for games back in the day. Is it much trickier? Their site makes it sound pretty easy.

psycho_driver , to lemmyshitpost in jd vance

What is up with the Nosferatu ear?

Asidonhopo ,

I was going to say, that looks disgusting!

unconsciousvoidling ,

He’s a ghoul obviously.

fsxylo , to asklemmy in Do you think the world would have been a better place if there were no religions?

If there were no religions I’d figure that human race is one where tribalism can’t catch on as well, in which case there would probably be a lot less organized violence like wars.

Individual crimes are always going to happen with or without religion. Crimes generally have real tangible punishments and there are still criminals. Imaginary punishments aren’t going to do much to stop them.

Thcdenton , to asklemmy in what tips do you have to survive job hunting?

I used an automated firm to email hundreds of templated outreach emails and applications a day. Got my first SE jobin about a month.

apprehentice , to selfhosted in Why do so many people use NGINX?

nginx is mature and has a lot of support online. A lot of server projects assume you’re using nginx, as well. I’ve only ever seen caddy instructions on newer projects and even then, they usually also have nginx instructions.

Plus, I already know how to use it.

onigiri , to books in Suggestions for General Public

You might want to stick to young adult stuff. It will have less objectionable content, I think. As for a real suggestion try Sabriel by Garth Nix and if you like it there are others in the series.

TheBigBrother , (edited ) to selfhosted in Why do so many people use NGINX?

You want to access your server under CG-NAT from the outside or what is the point??

Findmysec OP ,

You can do that with Wireguard and NAT.

VelvetStorm , to showerthoughts in Truck wraps are like Lisa Frank, but for truck personality bros

I just want a jazzy solo wrap for my car. I know they exist, but I just won’t spend 400 bucks on one.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines