[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bacula-bugs
Subject:    [Bacula-bugs] [bacula 0001712]: shows wrong username/group for
From:       Mantis Bug Tracker <nobody () baculabugs ! unixathome ! org>
Date:       2011-03-29 4:11:43
Message-ID: 806ef7daaba25c8b10fccda665d3a045 () bugs ! bacula ! org
[Download RAW message or body]


The following issue has been CLOSED 
====================================================================== 
http://bugs.bacula.org/view.php?id=1712 
====================================================================== 
Reported By:                mnalis
Assigned To:                
====================================================================== 
Project:                    bacula
Issue ID:                   1712
Category:                   Director
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-03-21 15:33 GMT
Last Modified:              2011-03-29 04:11 GMT
====================================================================== 
Summary:                    shows wrong username/group for client UID/GID
Description: 
It seems that when the machine is backed up, the database does not save username
and group, but only numerical UID/GID (in file.lstat table). 

So, when restoring, it cannot show correct username and group (but only
numerical UID/GID), although it currently incorrectly attempts to do so using
the getpwuid(3)/getgrgid(3) in get_uidname() and get_gidname() on
bacula-director (instead of bacula-fd).

Problem is, users and groups on machine running bacula-director are often not
the same as the users and groups on machine being backed up and restored
(especially if you are running more than one client which is director at the
same time)

Steps to Reproduce: 
in bconsole, run "restore" command and select for example "5: Select the most
recent backup for a client". Choose a client which is machine with different
users than the machine running bacula-director, and issue "dir" command.

You will see that username/groups shown in directory listing are completely
mixed up.

Additional Information: 
exact bacula version is 5.0.3 with git Branch-5.0 as of 20110301
====================================================================== 

---------------------------------------------------------------------- 
 (0005812) ebollengier (administrator) - 2011-03-29 04:11
 http://bugs.bacula.org/view.php?id=1712#c5812 
---------------------------------------------------------------------- 
What you are explaining is a new feature, a simple workaround to your problem is
to use the same use/group list in your network. Tools like NIS, Samba or
cfengine/pupet permits to do that.

It's also possible to keep the user list on the director side rather small in
order to display numerical info instead of names. It should be also possible to
turn off this mapping if it really annoys you with a couple of #ifdef. (or use
ls instead of dir)

Please, submit a New Feature form to the devel list as explained in
www.bacula.org -> New Features, it's definitely interesting but not trivial to
fix. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-21 15:33 mnalis         New Issue                                    
2011-03-21 15:33 mnalis         Issue Monitored: mnalis                      
2011-03-29 04:11 ebollengier    Note Added: 0005812                          
2011-03-29 04:11 ebollengier    Status                   new => closed       
======================================================================


------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Bacula-bugs mailing list
Bacula-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic