![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sudoers | tjmannonline | UNIX for Dummies Questions & Answers | 5 | 06-13-2009 05:12 AM |
| sudoers syntax | chuckuykendall | UNIX for Advanced & Expert Users | 2 | 04-28-2009 04:28 AM |
| sudoers file questions | hemangjani | UNIX for Dummies Questions & Answers | 2 | 04-21-2008 02:35 PM |
| sudoers on HP 11.11 | dhlopomo | UNIX for Dummies Questions & Answers | 2 | 01-18-2008 06:03 AM |
| sudoers file | whatisthis | Linux | 4 | 12-02-2004 05:59 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Sudoers problems.
Hi!
I'm trying to come up with a way for me to automate some processes. I have to do this via ssh. What I'm trying to do is have "box A" connect to "box B" as "user A" and execute a command as "user B" (sudoer). It needs to be done this way because of auditing and security policy. This is on Solaris 8 Here's how I have it setup now: Box A has connectivity to box B User A has logins on both box A and box B User A connects to box B from box A and sudo's to user B Here's what I have in the sudoers file: User_Alias USERA = userA Cmnd_Alias SU_USERA = /usr/bin/su - userB USERA ALL = NOPASSWD: SU_USERA So, I connect to box A and type: ssh -t boxB "sudo su - userB /opt/rah/rah/rah/command.sh" >> /some/log/dir It either doesn't change the user or it asks for a password. The script keeps a log in a directory owned by userB and, if it doesn't change the user, it says "cannot create, permission denied". Otherwise it sits there asking for a password. I've tried putting the full command in sudoers and that doesn't work. Anyone have ideas? Btw, this will eventually be put under Autosys control. Thanks! Last edited by blane; 04-04-2008 at 02:57 PM.. |
| Bookmarks |
| Tags |
| autosys, solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|