Nuts. I definitely screwed up something. I was trying to make it possible to set it up so that users who belonged to the group "staff" would have the right to install source programs in the /usr/local directory, thus keeping these programs separate from the slapt-packaged installed programs in the /usr/ directory (and making these programs relatively easy to get rid of if they did not come equipped with an uninstall script). So, I recursively changed the group of /usr/local from root to staff, giving this group read and write privileges. Then, I wanted to add my user "mark" to the group "staff". However, the way I've done this on Debian did not work here (via
"addgroup", see previous post).
I searched the net and found the command "usermod". The instructions for it were almost incomprehensible to me, but I gave it a try anyway. However, the result was somewhat bizarre and it certainly did not do what I was hoping it would do, that being to simply add my user to the group and let me work freely in the /usr/local directory. Instead, it created a clone of my user, and added the clone to the group!
I ran the following:
vector://home/mark/slackpacks/gscan2pdf
root:# usermod -a -G staff mark
vector://home/mark/slackpacks/gscan2pdf
root:# exit
exit
vector:/~/slackpacks/gscan2pdf
mark:$ groups
mark disk lp floppy audio video cdrom games slocate plugdev power netdev scanner users
vector:/~/slackpacks/gscan2pdf
mark:$ users
mark mark
vector:/~/slackpacks/gscan2pdf
mark:$ groups mark
mark : mark disk lp floppy audio video cdrom games slocate plugdev power netdev scanner users staff
vector:/~/slackpacks/gscan2pdf
mark:$ groups
mark disk lp floppy audio video cdrom games slocate plugdev power netdev scanner users
vector:/~/slackpacks/gscan2pdf
mark:$ groups mark
mark : mark disk lp floppy audio video cdrom games slocate plugdev power netdev scanner users staff
vector:/~/slackpacks/gscan2pdf
mark:$ ls
gscan2pdf-0.9.31-i686-3jsc.txz gscan2pdf-0.9.32.tar.gz gscan2pdf-1.0.1.tar.gz
gscan2pdf-0.9.31.tar.gz gscan2pdf-1.0.0.tar.gz
vector:/~/slackpacks/gscan2pdf
mark:$ cp gscan2pdf-1.0.1.tar.gz /usr/local/src
cp: cannot create regular file `/usr/local/src/gscan2pdf-1.0.1.tar.gz': Permission denied
vector:/~/slackpacks/gscan2pdf
mark:$ ls -l /usr/local/
total 40
drwxrwxr-x 2 root staff 4096 Nov 24 1993 bin/
drwxrwxr-x 2 root staff 4096 Nov 24 1993 etc/
drwxrwxr-x 2 root staff 4096 Mar 13 12:42 games/
drwxrwxr-x 2 root staff 4096 Mar 15 1994 include/
drwxrwxr-x 2 root staff 4096 Nov 24 1993 info/
drwxrwxr-x 2 root staff 4096 Mar 15 1994 lib/
drwxrwxr-x 22 root staff 4096 Jun 1 1994 man/
drwxrwxr-x 2 root staff 4096 Nov 24 1993 sbin/
drwxrwxr-x 4 root staff 4096 Mar 13 12:36 share/
drwxrwxr-x 2 root staff 4096 Nov 24 1993 src/
I'm reminded of the movie Moon.
Anyway, from the above, apparently my clone could copy a file into /usr/local/src, but I cannot. Maybe me and my clone will be merged if I reboot. Here goes...