Home   Notes   Contact Me

Red Hat

Local

External


Setting the Hostname

# in /etc/sysconfig/network # set the value of HOSTNAME to the name you want HOSTNAME=my-super-duper-hostname

Updating

Use pup (but for installing use pirut)


Samba, getting started

To get it working

Working smb.conf file

[global] workgroup = APOLLOLINUX server string = ApolloLinux samba log file = /var/log/samba/%m.log socket options = TCP_NODELAY SO_RCVBUF=8192 max log size = 1000 username map = /etc/samba/smbusers [Downloads] comment = Petritis path = /homelocal/petritis/pub writeable = yes valid users = petritis2, petritis

Failures for Directory create, file rename, and file save

When I had these problems, I somehow looked in /var/log/messages and saw these lines

Jan 28 16:15:10 apollolinux setroubleshoot: SELinux is preventing samba (/usr/sbin/smbd) "lock" to /homelocal/petritis/pub/New Text Document (7).txt (root_t). For complete SELinux messages. run sealert -l 71d74e69-ab19-4405-89b5-5b627983744d Jan 28 16:15:10 apollolinux last message repeated 2 times Jan 28 16:15:23 apollolinux setroubleshoot: SELinux is preventing samba (/usr/sbin/smbd) "rename" to New Text Document (7).txt (root_t). For complete SELinux messages. run sealert -l 8650eaad-1686-43a8-9554-89ec652cd5de

So I typed the command it suggested:

sealert -l 71d74e69-ab19-4405-89b5-5b627983744d

Which told me it was a SELinux problem. And suggested the following solution:

chcon -R -t samba_share_t /homelocal/petritis/pub/New Text Document (7).txt

But I wanted access to everything in the directory petritis and down so I tried the following which seems to have worked:

chcon -R -t samba_share_t /homelocal/petritis

Refernces


Installing Software, Red Hat Enterprise

Run the GUI program pirut to find and install packages.

Make sure the following are installed:

Not a good way to do this:

Use the online install capability provided by Red Hat. On the Linux machine, browse to https://rhn.redhat.com/ and install from there.


Starting X

startx