Veritas-bu

[Veritas-bu] Permission errors on restore using CLI bprestore

2003-02-25 11:41:32
Subject: [Veritas-bu] Permission errors on restore using CLI bprestore
From: Mark.Donaldson AT experianems DOT com (Donaldson, Mark)
Date: Tue, 25 Feb 2003 09:41:32 -0700
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2DCEC.C0E39C90
Content-Type: text/plain;
        charset="iso-8859-1"

Hi all,

I'm testing a process in which ordinary users can restore files they've
backed up.  

The user runs a non-root script that uses bpbackup to send files to
Netbackup - no problems there.  A different script should allow the user to
on-demand restore these files.  The problem is that I'm getting permission
errors on the directory to which these files are being restored.

Here's my ID information:
venus:mark$ id -a
uid=1000(mark) gid=14(sysadmin) groups=14(sysadmin),200(devadm)

...as you can see, my userid is a member of the "devadm" group.


Here's the directory to which I'm restoring:

venus:mark$ ls -la /stge
total 50
drwxrwxr-x   7 root     devadm      8192 Feb 25 10:21 .
drwxr-xr-x  33 root     root        1024 Feb 12 10:37 ..

... the /stge directory allows the "devadm" group full write & read
privileges.  I can create and delete files from this point without issue.


Here's the list of files that was backed-up:

venus:mark$ sudo bplist -l -R -keyword "mark:200302241809:test_backup" /
drwxr-x--- mark      sysadmin            0 Feb 24 18:08 /stge/testdir1/
-rw-r----- root      sysadmin            0 Feb 24 18:08
/stge/testdir1/tfile1
-rw-r----- mark      sysadmin            0 Feb 24 18:08
/stge/testdir1/tfile2
-rw-r----- mark      sysadmin            0 Feb 24 18:08
/stge/testdir1/tfile3


The logfile for bprestore records the following:

10:23:29 (28787.001) INF - Beginning restore from server venus to client
venus.
10:23:31 (28787.001) /stge/testdir1/
10:23:31 (28787.001) Could not make directory /stge/testdir1: Permission
denied
10:23:31 (28787.001) /stge/testdir1/tfile1
10:23:31 (28787.001) Could not create file /stge/testdir1/tfile1: No such
file or directory
10:23:31 (28787.001) /stge/testdir1/tfile2
10:23:31 (28787.001) Could not create file /stge/testdir1/tfile2: No such
file or directory
10:23:31 (28787.001) /stge/testdir1/tfile3
10:23:31 (28787.001) Could not create file /stge/testdir1/tfile3: No such
file or directory

...it says I can't write to /stge to create /stge/testdir1.  I should, a
simple "mkdir" in this directory works fine for me.  Is it a problem with
primary group/secondary group?

BTW: Solaris 8, NB 4.5 MP2.

HELP!

-M


------_=_NextPart_001_01C2DCEC.C0E39C90
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>Permission errors on restore using CLI bprestore</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hi all,</FONT>
</P>

<P><FONT SIZE=3D2>I'm testing a process in which ordinary users can =
restore files they've backed up.&nbsp; </FONT>
</P>

<P><FONT SIZE=3D2>The user runs a non-root script that uses bpbackup to =
send files to Netbackup - no problems there.&nbsp; A different script =
should allow the user to on-demand restore these files.&nbsp; The =
problem is that I'm getting permission errors on the directory to which =
these files are being restored.</FONT></P>

<P><FONT SIZE=3D2>Here's my ID information:</FONT>
<BR><FONT SIZE=3D2>venus:mark$ id -a</FONT>
<BR><FONT SIZE=3D2>uid=3D1000(mark) gid=3D14(sysadmin) =
groups=3D14(sysadmin),200(devadm)</FONT>
</P>

<P><FONT SIZE=3D2>...as you can see, my userid is a member of the =
&quot;devadm&quot; group.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Here's the directory to which I'm restoring:</FONT>
</P>

<P><FONT SIZE=3D2>venus:mark$ ls -la /stge</FONT>
<BR><FONT SIZE=3D2>total 50</FONT>
<BR><FONT SIZE=3D2>drwxrwxr-x&nbsp;&nbsp; 7 =
root&nbsp;&nbsp;&nbsp;&nbsp; devadm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8192 =
Feb 25 10:21 .</FONT>
<BR><FONT SIZE=3D2>drwxr-xr-x&nbsp; 33 root&nbsp;&nbsp;&nbsp;&nbsp; =
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024 Feb 12 10:37 =
..</FONT>
</P>

<P><FONT SIZE=3D2>... the /stge directory allows the &quot;devadm&quot; =
group full write &amp; read privileges.&nbsp; I can create and delete =
files from this point without issue.</FONT></P>
<BR>

<P><FONT SIZE=3D2>Here's the list of files that was backed-up:</FONT>
</P>

<P><FONT SIZE=3D2>venus:mark$ sudo bplist -l -R -keyword =
&quot;mark:200302241809:test_backup&quot; /</FONT>
<BR><FONT SIZE=3D2>drwxr-x--- mark&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
sysadmin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; 0 Feb 24 18:08 /stge/testdir1/</FONT>
<BR><FONT SIZE=3D2>-rw-r----- root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
sysadmin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; 0 Feb 24 18:08 /stge/testdir1/tfile1</FONT>
<BR><FONT SIZE=3D2>-rw-r----- mark&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
sysadmin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; 0 Feb 24 18:08 /stge/testdir1/tfile2</FONT>
<BR><FONT SIZE=3D2>-rw-r----- mark&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
sysadmin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; 0 Feb 24 18:08 /stge/testdir1/tfile3</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>The logfile for bprestore records the =
following:</FONT>
</P>

<P><FONT SIZE=3D2>10:23:29 (28787.001) INF - Beginning restore from =
server venus to client venus.</FONT>
<BR><FONT SIZE=3D2>10:23:31 (28787.001) /stge/testdir1/</FONT>
<BR><FONT SIZE=3D2>10:23:31 (28787.001) Could not make directory =
/stge/testdir1: Permission denied</FONT>
<BR><FONT SIZE=3D2>10:23:31 (28787.001) /stge/testdir1/tfile1</FONT>
<BR><FONT SIZE=3D2>10:23:31 (28787.001) Could not create file =
/stge/testdir1/tfile1: No such file or directory</FONT>
<BR><FONT SIZE=3D2>10:23:31 (28787.001) /stge/testdir1/tfile2</FONT>
<BR><FONT SIZE=3D2>10:23:31 (28787.001) Could not create file =
/stge/testdir1/tfile2: No such file or directory</FONT>
<BR><FONT SIZE=3D2>10:23:31 (28787.001) /stge/testdir1/tfile3</FONT>
<BR><FONT SIZE=3D2>10:23:31 (28787.001) Could not create file =
/stge/testdir1/tfile3: No such file or directory</FONT>
</P>

<P><FONT SIZE=3D2>...it says I can't write to /stge to create =
/stge/testdir1.&nbsp; I should, a simple &quot;mkdir&quot; in this =
directory works fine for me.&nbsp; Is it a problem with primary =
group/secondary group?</FONT></P>

<P><FONT SIZE=3D2>BTW: Solaris 8, NB 4.5 MP2.</FONT>
</P>

<P><FONT SIZE=3D2>HELP!</FONT>
</P>

<P><FONT SIZE=3D2>-M</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C2DCEC.C0E39C90--

<Prev in Thread] Current Thread [Next in Thread>