Unix Technical Forum

File Permissions for system administor on AIX for DB2 UDB

This is a discussion on File Permissions for system administor on AIX for DB2 UDB within the DB2 forums, part of the Database Server Software category; --> Would anybody know the minimum permissions for the system administrator account on AIX for DB2 UDB? TIA....


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 06:56 PM
Keith
 
Posts: n/a
Default File Permissions for system administor on AIX for DB2 UDB

Would anybody know the minimum permissions for the system
administrator account on AIX for DB2 UDB? TIA.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 06:56 PM
Richard D. Latham
 
Posts: n/a
Default Re: File Permissions for system administor on AIX for DB2 UDB

mcgillivrayk@prodigy.net (Keith) writes:

> Would anybody know the minimum permissions for the system
> administrator account on AIX for DB2 UDB? TIA.


When you install DB2 on AIX, (essentially) all the "goodies" get
installed in /usr/lpp/db2 ( blah blah blah ).

When you create an instance on *nix, you either provide an existing
user id (and group) , or have the install create them for you.

An instance (there can be more than one ) is 'created' in the instance
owner's home directory. This involves copying the necessary stuff from
/usr/lpp/db2... to ~/sqllib , and creating symbolic links for the
rest, and possibly some other magic that we don't really care about
right now.

Therefore the instance owner's userid has (almost) all the
permissions it needs to manage the databases and db objects created
therein. By default, databases are created in a sub-directory of the
instance id's home directory. If you ask DB2 to create them elsewhere,
say in /tmp, you'll have to use the root id to give the db2 instance
owner the appropiate file system permissions ... probably chmod 755
.... but check and make sure.

So, the instance creation sets the appropiate (and _minimum_ )
permissions automagically ... if you "dork around" with these
permissions, you're almost guaranteed to break something :-)

HTH.

--
#include <disclaimer.std> /* I don't speak for IBM ... */
/* Heck, I don't even speak for myself */
/* Don't believe me ? Ask my wife :-) */
Richard D. Latham lathamr@us.ibm.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 06:57 PM
Keith
 
Posts: n/a
Default Re: File Permissions for system administor on AIX for DB2 UDB

lathamr@us.ibm.com (Richard D. Latham) wrote in message news:<7jt47vf7.fsf@us.ibm.com>...
> mcgillivrayk@prodigy.net (Keith) writes:
>
> > Would anybody know the minimum permissions for the system
> > administrator account on AIX for DB2 UDB? TIA.

>
> When you install DB2 on AIX, (essentially) all the "goodies" get
> installed in /usr/lpp/db2 ( blah blah blah ).
>
> When you create an instance on *nix, you either provide an existing
> user id (and group) , or have the install create them for you.
>
> An instance (there can be more than one ) is 'created' in the instance
> owner's home directory. This involves copying the necessary stuff from
> /usr/lpp/db2... to ~/sqllib , and creating symbolic links for the
> rest, and possibly some other magic that we don't really care about
> right now.
>
> Therefore the instance owner's userid has (almost) all the
> permissions it needs to manage the databases and db objects created
> therein. By default, databases are created in a sub-directory of the
> instance id's home directory. If you ask DB2 to create them elsewhere,
> say in /tmp, you'll have to use the root id to give the db2 instance
> owner the appropiate file system permissions ... probably chmod 755
> ... but check and make sure.
>
> So, the instance creation sets the appropiate (and _minimum_ )
> permissions automagically ... if you "dork around" with these
> permissions, you're almost guaranteed to break something :-)
>
> HTH.



Curious about the 755: can it be 750 or is 755 the way it has to be?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 06:57 PM
Richard D. Latham
 
Posts: n/a
Default Re: File Permissions for system administor on AIX for DB2 UDB

mcgillivrayk@prodigy.net (Keith) writes:

> lathamr@us.ibm.com (Richard D. Latham) wrote


< snip >

>>
>> Therefore the instance owner's userid has (almost) all the
>> permissions it needs to manage the databases and db objects created
>> therein. By default, databases are created in a sub-directory of the
>> instance id's home directory. If you ask DB2 to create them elsewhere,
>> say in /tmp, you'll have to use the root id to give the db2 instance
>> owner the appropiate file system permissions ... probably chmod 755
>> ... but check and make sure.
>>
>> So, the instance creation sets the appropiate (and _minimum_ )
>> permissions automagically ... if you "dork around" with these
>> permissions, you're almost guaranteed to break something :-)
>>
>> HTH.

>
>
> Curious about the 755: can it be 750 or is 755 the way it has to be?


Well, neither is right, actually :-) Comsult a real instance
sub-directory with "ls -lR" for the gory details.

Let me reiterate what I said above ... "If you dork around with this,
you're gonna break things".

--
#include <disclaimer.std> /* I don't speak for IBM ... */
/* Heck, I don't even speak for myself */
/* Don't believe me ? Ask my wife :-) */
Richard D. Latham lathamr@us.ibm.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:02 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com