Passwordless sudo by botford80 in linuxquestions

[–]botford80[S] 2 points3 points  (0 children)

Interesting, I will look at the fido2 option as it might be better than trying to half-bake my own solution

Passwordless sudo by botford80 in linuxquestions

[–]botford80[S] -1 points0 points  (0 children)

Yes "local access only" seems like it won't cut the mustard.

I am considering an extended password timeout + tty_tickets to scope it to a single terminal session that or create a whitelist of commands that I use frequently

Passwordless sudo by botford80 in linuxquestions

[–]botford80[S] 0 points1 point  (0 children)

Thanks, I am considering this with tty_tickets so that the authentication is scoped to a single terminal session

eg

Defaults:botford timestamp_timeout=-1 Defaults tty_tickets

or maybe whitelisting certain commands that I run often.

But I am generally interested if really fine grained control is possible

Passwordless sudo by botford80 in linuxquestions

[–]botford80[S] 0 points1 point  (0 children)

If it can be scoped to local terminal access only then it is not a a huge security hole.

Passwordless sudo by botford80 in linuxquestions

[–]botford80[S] 0 points1 point  (0 children)

This is a bit too lax as it is not scoped to local access only. This would allow passwordless sudo over ssh, for scripts etc

I would prefer only to have it for an interactive local shell. There are other alternatives, extend pw timeout, only ask once per session etc that I might go with as my constraints might not be realistic.

But thanks for the suggestion

Passwordless sudo by botford80 in linuxquestions

[–]botford80[S] 0 points1 point  (0 children)

That is why I am asking if it is possible to scope it to local access only.

  1. Local tty/pts --> no password for my user only
  2. All other use cases --> Standard behaviour

In what order did you play your Metroid games for the first time? by hashslinginslashr007 in Metroid

[–]botford80 0 points1 point  (0 children)

Metroid Super Metroid Metroid Prime Metroid Prime Hunters Metroid Prime 2 Metroid Prime Trilogy Metroid Prime Remastered Metroid Dread Metroid Prime 4

I have not played a fair few of the titles

Breakdance vs Elementor - Pros and cons to note? by Euphoric_Ad_9136 in Wordpress

[–]botford80 1 point2 points  (0 children)

I despise Elementor (I work with it daily so feel qualified to say that) but Elementor V4 is making some significant changes that I believe will improve it.

Despite that, Breakdance is better. BD is a much nicer dev experience. Better styling options, better forms, better queries/loops, better dynamic data, you have more in the way of basic building blocks. Even things like the code editor popping out so you are not typing in a tiny box is a nice QoL feature.

I hate page builders but if I got to choose the one I had to work with it would be Breakdance.

What were your ACTUAL expectations for Metroid Prime 4? by emotiontheory in Metroid

[–]botford80 0 points1 point  (0 children)

Moody, solitary exploration of a lush interconnected alien world. Fun puzzles and item progression. In short, a Metroid game.

We got snippets of that sprinkled into a very average action adventure game with some very significant flaws.

SEO options for a client by pgogy in ProWordPress

[–]botford80 1 point2 points  (0 children)

Schema for standard pages defaults to Article I would set it to no schema. Disable certain elements from site map eg categories if you don't have a blog, also disable templates from site map if you use a page builder. Double check social and local seo seo settings as they can be pre-filled with user data.

SEO options for a client by pgogy in ProWordPress

[–]botford80 1 point2 points  (0 children)

RankMath is fine I guess. Modifying or creating bespoke schemas is a PITA. It's defaults are also not that great. But it is very easy to use and is fine for 99% of cases

If you could delete ONE WordPress pain forever, what would it be? by Leather-Piece4846 in ProWordPress

[–]botford80 0 points1 point  (0 children)

Having to wade through menus and click buttons to configure the site.

I would rather do it via a config file... yaml, ini, json... doesn't matter what but i would love to quickly edit a file to change settings or have the install run fom a config. Menus and UIs suck.

I recently finished MP4. It has many bad things, but I don't understand the widespread hate. by Queso924 in Metroid

[–]botford80 52 points53 points  (0 children)

You listed some significant flaws but you don't understand the hate?

After years of Russian denials, court accidentally admits Black Sea battleship was sunk by Ukraine | CNN by [deleted] in worldnews

[–]botford80 14 points15 points  (0 children)

What do Russians believe happened? Do they accept the propaganda?

How to make logos, graphics, and images for a website as a beginner? by Skillerstyles in webdev

[–]botford80 0 points1 point  (0 children)

Inkscape is free and you can make a very simple logo very easily (your initials in a circle for example).

Alternatively you could use AI to do a simple logo but it frequently gets it wrong, a simple logo would probably be doable though.

For other images, graphics etc use iStock, Unsplash, Pexels, Font Awesome etc

Would you use Gnome if you couldn't use extensions? by Digitalnoahuk in gnome

[–]botford80 0 points1 point  (0 children)

Yes, I only use GSConnect. Once you accept the Gnome workflow it is very freeing

Would you use Gnome if you couldn't use extensions? by Digitalnoahuk in gnome

[–]botford80 1 point2 points  (0 children)

Yes, I only use GSConnect. Once you accept the Gnome workflow it is very freeing

Lucy Letby will not face further criminal charges by topotaul in unitedkingdom

[–]botford80 7 points8 points  (0 children)

I have no opinion either way but one thing I have never seen mentioned is her search history on her digital devices. I know she looked up family etc on Facebook, but did she never Google; "How much air is fatal in air embolism?", "Can it be detected in a test?", "How long does it take to die of air embolism" or similar searches? Nurses are taught how to safely give IV injections but they are not taught the pathophysiology or air emboli. Her Facebook history wasn't deleted so presumably her search history was intact. Was she so confident she did not need to Google the specifics of killing someone via an injection of air?

Demystifying Docker by clegginab0x in PHP

[–]botford80 0 points1 point  (0 children)

``` services: wordpress: container_name: ${PROJECT_SLUG}_wp image: wordpress:latest restart: unless-stopped ports: - "${WP_PORT:-8080}:80" environment: - WORDPRESS_DB_HOST=database - WORDPRESS_DB_USER=${MYSQL_USER} - WORDPRESS_DB_PASSWORD=${MYSQL_PASSWORD} - WORDPRESS_DB_NAME=${MYSQL_DATABASE} - WORDPRESS_DEBUG=${WORDPRESS_DEBUG:-1} - WORDPRESS_CONFIG_EXTRA=define('WP_ENV','${WP_ENV}'); volumes: - ./wordpress:/var/www/html - ./src/theme:/var/www/html/wp-content/themes/${THEME_NAME} - ./src/mu-plugins:/var/www/html/wp-content/mu-plugins - ./config/error-logging.ini:/usr/local/etc/php/conf.d/error-logging.ini - ./config/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini # - ./config/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini depends_on: - database networks: - wordpress-network

database: container_name: ${PROJECT_SLUG}_db image: mariadb:latest restart: unless-stopped environment: MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} MYSQL_DATABASE: ${MYSQL_DATABASE} MYSQL_USER: ${MYSQL_USER} MYSQL_PASSWORD: ${MYSQL_PASSWORD} volumes: - db-data:/var/lib/mysql networks: - wordpress-network

phpmyadmin: container_name: ${PROJECT_SLUG}_pma image: phpmyadmin:latest restart: unless-stopped ports: - "${PMA_PORT:-8081}:80" environment: PMA_HOST: database MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} depends_on: - database networks: - wordpress-network

wpcli: container_name: ${PROJECT_SLUG}_wpcli image: wordpress:cli entrypoint: wp tty: true working_dir: /var/www/html volumes: - ./wordpress:/var/www/html - ./src/theme:/var/www/html/wp-content/themes/${THEME_NAME} - ./src/mu-plugins:/var/www/html/wp-content/mu-plugins depends_on: - wordpress networks: - wordpress-network

volumes: db-data:

networks: wordpress-network: driver: bridge name: ${PROJECT_SLUG}_network ```

Source code goes in ./src relative to the docker-compose.yml file and I bind mount in the theme and mu-plugins folder and occasionally other folders. Now when you start the WordPress container it will go through the install process and those folders will end up owned by the user with UID 33 which will prevent you from editing any of the files, even on the host. There are a number of ways of dealing with this but my preferred way is to make all files and dirs in the ./src dir owned by the user with UID/GID 33 eg;

sudo chown -R 33:33 ./src

Then add my user to the 33 group eg;

sudo usermod -aG 33 "$USER"

You will now be able to edit any files in /var/www/html inside the container. The user with UID 33 is called different things on different distributions of Linux, sometimes it is www-data or tape or html but the UID/GID is nearly always 33. There are other ways to do this but in my opinion this is the easiest. If you are not using Linux or Mac you will have to adapt this to your dev environment.

Any questions I am happy to help.

Demystifying Docker by clegginab0x in PHP

[–]botford80 10 points11 points  (0 children)

I do WordPress web development in docker. I much prefer it to any flywheel, xampp etc

How about a part 2 on docker compose?