Syndicate content

permission

Adding a group for to a logged in Linux user

Once in a while I want to add my user to a group and then right away make use of that group.

Unfortunately, in general Unix kind of forces you to re-log in for the new group to be attached to your account.

However, a command has been added, a while back, to do just that on the fly. Not something you would want to use in a script, but at least, it works for me when doing a few things here and there.

In my case, I wanted to run QEMU, which I hadn't done in a while, and the system told me that it could not open the KVM, the error: kvm permission denied.

The problem was that I was not part ...

Writing a CRON job in /etc/cron.*/job

Setup

When writing a CRON job script that you want to install under /etc/cron.*/job-name you must remember to apply the following steps:

1. Write the script and test it as root

2. Make sure to give it execution permission, usually 755

3. The ownership is expected to be root:root

4. The filename cannot include a period or the file it completely ignored

5. The script MUST start with #!/bin/sh or an equivalent (i.e. #!/bin/bash works too.)

6. Use full paths for most everything1

  • 1. Remember that the cron environment is minimal, you generally will have PATH defined and not much

Apache error: pcfg_openfile: unable to check htaccess file, ensure it is readable

Today I got an error about an .htaccess file that Apache2 could not load.

   pcfg_openfile: unable to check htaccess file, ensure it is readable

I looked like 10 times in that folder to make sure the .htaccess was fine, which meant looking that there wasn't an actual .htaccess file there!

The fact is not exactly that the file cannot be opened, it has more to do with the parent folder accessibility. Somehow Apache2 does not check the parent folder accessibility and prints the error since, indeed, it gets an error other than the usual "File Not Found". (It's getting the ...

MS-Access Record Locking

The MS-Access system has a limited way to lock records...

This is done within what is called the Recordset object. That object has a field called LockType.

Available lock types are Optimistic, Pessimistic, Table. The last one prevents all access from anyone else (read/write lock). Pessimistic locks let other users read the locked data, but not write (write-only lock). Optimistic locks do nothing (in other words, no locking.)

The following is a synopsis for this locking feature:

GNU Free Documentation License

                GNU Free Documentation License
                 Version 1.3, 3 November 2008


 Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
     
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

0.

Syndicate content Syndicate content

Diverse Realty

Diverse Realty Team

Want a New Home?
Want to Sell Your House?

Call Alex at
+1 (916)
220 6482

Alexis Wilke, Realtor
Salesperson
Lic. # 02024063

Cory Marcus, Broker
Lic. # 01079165

     

Terms of Site Index

Find the page/content you are looking for with our index.