If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Sudo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-18-10, 18:02
ncmdba ncmdba is offline
Registered User
 
Join Date: May 2010
Posts: 8
Sudo

Hello,

i have question regarding sudo access.Can you do a sudo to a group?? or is sudo only for to login as another user???

-> if i do a sudo to the group will i acquire all the roles assigned to that group?
eg: sudo su - admin

admin is a group

i am little confused here.

thanks,
Reply With Quote
  #2 (permalink)  
Old 10-18-10, 20:05
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
su is used to switch to another user.

"sudo su -root" or "sudo <some db2 command that needs root privilege>" is frequently used by DBAs to get root access.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On