Skip to content

Instantly share code, notes, and snippets.

View jcpunk's full-sized avatar
🐱

Pat Riehecky jcpunk

🐱
View GitHub Profile
yum -y install bash-completion procps-ng vim git gcc g++ epel-release systemd-devel ruby-devel glibc-devel irb postgresql postgresql-server
crb enable
yum -y install rubygems rubygem-ruby-libvirt libvirt-devel sassc libsass-devel rubygem-rspec rubygem-rake rubygem-pg rubygem-ffi rubygem-bundler rubygem-rdoc rubygem-mail gettext-devel
mkdir /run/postgresql
chown postgres /run/postgresql
su - postgres -c 'initdb'
su - postgres -c 'pg_ctl -D /var/lib/pgsql/data -l logfile start'
su - postgres -c 'createuser -s root'
The delegation of the subordinate uids can be configured via the subid field in /etc/nsswitch.conf file.
Only one value can be set as the delegation source. Setting this field to files configures the delegation
of uids to /etc/subuid. Setting any other value treats the delegation as a plugin following with a name
of the form libsubid_$value.so. If the value or plugin is missing, then the subordinate uid delegation
falls back to files.
needs to provide a drop in replacement for libsubid via nsswitch.conf
https://github.com/shadow-maint/shadow/tree/master/libsubid
Follow this algorithm -> but in C:
@jcpunk
jcpunk / vpn.fnal.gov.nmconnection
Last active October 23, 2024 18:11
NetworkManager vpn.fnal.gov
[connection]
id=vpn.fnal.gov
uuid=6cd553e9-cf8a-4869-adce-5d25bcf04dfa
type=vpn
autoconnect=false
permissions=
[vpn]
authtype=password
autoconnect-flags=0