Re: amandas group membership in FC6?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 25 November 2006 09:42, Aaron Konstam wrote:
>On Sat, 2006-11-25 at 07:58 -0500, Gene Heskett wrote:
>> reetings;
>>
>> Despite the fact that the user 'amanda' is a member of the group
>> 'disk',
>> all compilations and new files generated by the user amanda seem to
>> be
>> owned by amanda:amanda instead of the expected amanda:disk.
>
>Sounds like a job for SGID. If a directory is SGID then all files that
>are created in that directory are in the same group as the directory.

Not too sure I understand what you are saying Aaron.  What is SGID?

That has never been the case before:

[amanda@coyote /]$ ls -l /home/
total 56
drwx------ 26 amanda amanda 4096 Nov 25 07:44 amanda
drwx------ 14    502    502 4096 Nov 12  2002 elmer
drwx------ 41 gene   gene   4096 Nov 25 10:54 gene
drwx------  3    503    503 4096 Nov 21  2002 roadrunner
drwxr-xr-x 18 gene   gene   4096 Aug 14 03:42 shop
drwxr-xr-x 19   1000   1000 4096 Aug 13  2004 shop-gene
drwxr-xr-x  6   1002   1002 4096 Dec 14  2005 spamd

This tree was copied over from the old FC2 /home directory which looks 
like this:

[amanda@coyote GenesAmandaHelper-0.5]$ ls -l /mnt/hdb/home
total 36
drwxr-xr-x 21     33 disk   4096 Nov  8 23:37 amanda
drwx------  3 amanda amanda 4096 Nov  9  2004 elladene
drwx------ 14    502    502 4096 Nov 12  2002 elmer
drwx------ 36 gene   gene   4096 Nov  9 16:32 gene
drwx------  2 root   root   4096 Oct 22  2002 lost+found
drwx------  3    503    503 4096 Nov 21  2002 roadrunner
drwxr-xr-x 18 gene   gene   4096 Aug 14 03:42 shop
drwxr-xr-x 19   1000   1000 4096 Aug 13  2004 shop-gene
drwxr-xr-x  6   1002   1002 4096 Dec 14  2005 spamd

Which was done after the user was created.  Now, if I look at the old FC2 
passwd file and grep for amanda, this comes back:

[amanda@coyote /]$ grep amanda /mnt/hdb/disk/etc/passwd
amanda:x:33:6:Amanda user:/home/amanda:/bin/bash

How amanda ever got to be userID 33 I have NDI.

For FC6, I get this:
[amanda@coyote /]$ grep amanda /etc/passwd
amanda:x:501:501::/home/amanda:/bin/bash

But the same on the group file:
FC2:disk:x:6:amanda,root
FC6:disk:x:6:amanda,root

Am I supposed to hand edit the passwd file to change that second number to 
a 6?  That doesn't make sense when I've already used the menu tools to 
supposedly do that.

Here is the contents of that directory:
[amanda@coyote ~]$ ls -l
total 19616
drwxr-xr-x 20 amanda disk      4096 Oct 21 06:04 amanda-2.5.1p1-20061020
-rw-r--r--  1 amanda disk   1888117 Nov  1 17:04 
amanda-2.5.1p1-20061101.tar.gz
drwxr-xr-x 20 amanda disk      4096 Nov  2 22:12 amanda-2.5.1p1-20061102
-rw-r--r--  1 amanda disk   1888410 Nov  2 20:29 
amanda-2.5.1p1-20061102.tar.gz
-rw-r--r--  1 amanda disk   1888772 Nov  6 21:05 
amanda-2.5.1p1-20061106.tar.gz
drwxr-xr-x 20 amanda disk      4096 Nov  7 14:00 amanda-2.5.1p1-20061107
-rw-r--r--  1 amanda disk   1888823 Nov  7 13:58 
amanda-2.5.1p1-20061107.tar.gz
drwxr-xr-x 20 amanda disk      4096 Nov  8 23:39 amanda-2.5.1p1-20061108
-rw-r--r--  1 amanda disk   1888999 Nov  8 22:44 
amanda-2.5.1p1-20061108.tar.gz
drwxr-xr-x 20 amanda disk      4096 Nov 11 20:32 amanda-2.5.1p2-20061109
-rw-r--r--  1 amanda disk   1890485 Nov 11 20:12 
amanda-2.5.1p2-20061109.tar.gz
-rw-r--r--  1 amanda disk   1890480 Nov 14 14:06 
amanda-2.5.1p2-20061114.tar.gz
drwxrwxrwx 20 amanda disk      4096 Nov 22 07:45 amanda-2.5.1p2-20061120
-rw-r--r--  1 amanda disk   1890762 Nov 20 22:09 
amanda-2.5.1p2-20061120.tar.gz
drwxr-xr-x 20 amanda amanda    4096 Nov 25 07:46 amanda-2.5.1p2-20061124
-rw-r--r--  1 root   root   1892383 Nov 24 19:07 
amanda-2.5.1p2-20061124.tar.gz
-rw-r--r--  1 amanda disk       805 Oct  5  2004 fix-3hole.ps
-rwxr-xr-x  1 amanda disk       673 Nov 11 20:19 gh.cf
drwx------  2 amanda amanda    4096 Nov 22 16:39 Mail
-rw-r--r--  1 amanda disk      1530 Feb  8  2003 tapetype-pagesize.diff


Now, anecdotal. As root, I chowned that whole subdir of /home/amanda to be 
amanda:disk, then did the make install, then ran a backup which has now 
finished succesfully, everything had enough perms to do its job.  But I 
want this to be automatic like it was on the 21st (that was also built on 
FC6, the earlier ones were on FC2), not something I have to do by hand 
everytime I install a new amanda, which may be several times a week.  I'm 
one of the 'canaries in the coal mine' type testers.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2006 by Maurice Eugene Heskett, all rights reserved.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux