DevHeads.net

Postings by Warren Young

Samba HOWTO wiki bug: chcon samba_share_t

In this wiki article:

<a href="https://wiki.centos.org/HowTos/SetUpSamba" title="https://wiki.centos.org/HowTos/SetUpSamba">https://wiki.centos.org/HowTos/SetUpSamba</a>

…there is a command down in section 2 that gives an error here on CentOS 7:

$ sudo semanage fcontext –at samba_share_t /path/to/share
…noise noise noise…
semanage: error: unrecognized arguments: samba_share_t /path/to/share

That and the following restorecon command can be replaced by a single shorter command, which also fixes the symptom:

$ sudo chcon -R -t samba_share_t /path/to/share

EL7 mirror: "There is no installed groups file."

I installed the RHEL 7 beta here to test while waiting for CentOS 7 to
arrive. On noticing that yum didn't work, I decided to set up a local
mirror. I rsync'd

<a href="ftp://ftp.redhat.com/pub/redhat/rhel/beta/7/x86_64/os/Packages/" title="ftp://ftp.redhat.com/pub/redhat/rhel/beta/7/x86_64/os/Packages/">ftp://ftp.redhat.com/pub/redhat/rhel/beta/7/x86_64/os/Packages/</a>

to a local web server here, then regenerated the repodata directory with
createrepo.

Now yum works fine, for the most part.

Most efficient way to create a CentOS 3 test VM

I'm about to create a new CentOS 3 VM for testing, since we still have a
bunch of deployed machines running that OS.

(Don't yell at me about using old OSes. These machines won't get
"un-deployed" until they fall over dead of natural causes.