Skip to content

FreeBSD

https://www.freebsd.org/

I was just wondering if I can set or lists acls recursively on specific directories ?

I couldn’t find the usual ‘-R’ option for setfacl

Is there another way to do this?

Terminal window
find . -type f -exec setfacl -m xxx {} \;

or

Terminal window
find . -type d -exec setfacl -d -m u::,g::,o::,g:rrr:rwx {} \;

I hope you have got idea

See sockstat

Terminal window
su -
freebsd-update fetch install
pkg update # IF THAT FAILS, FOLLOW INSTRUCTIONS HERE: https://wiki.freebsd.org/pkgng
pkg upgrade -y
pkg audit -F
portsnap fetch
portsnap update # OR IF THAT FAILS: # portsnap extract
/usr/local/sbin/portmaster -L --index-only | egrep '(ew|ort) version|total install'
/usr/local/sbin/portmaster -a --no-confirm -b -d # OR IF THAT FAILS, run /usr/local/sbin/portmaster for each package listed in the previous commands output
ezjail-admin update -u
ezjail-admin update -P

In each jail, ONCE:

Terminal window
rm /usr/local/etc/pkg.conf
mkdir -p /usr/local/etc/pkg/repos
nano /usr/local/etc/pkg/repos/FreeBSD.conf

Contents of above file:

FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
enabled: yes
}

In each jail, ONCE:

Terminal window
echo 'WITH_PKGNG=yes' >> /etc/make.conf
pkg update && pkg upgrade
pkg2ng
pkg upgrade
pkg install -y portmaster

In each jail:

Terminal window
pkg update && pkg upgrade -y && pkg audit -F
/usr/local/sbin/portmaster -L --index-only | egrep '(ew|ort) version|total install'
/usr/local/sbin/portmaster -a --no-confirm -b -d
# OR IF THAT FAILS, run /usr/local/sbin/portmaster PACKAGE_NAME for each package listed in the previous commands output
pkg audit -F

Is there a way to scroll the screen in console mode? Something like I do in Linux with Ctrl + Page Up?

FreeBSD offers a better solution than Linux: It uses the key on the keyboard that is intended to do this.

Have a look at the ScrL (Scroll Lock) key. Have you ever asked yourself what this key will do? Try it, press it! :-)

  • ZFS