The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Expired password doesn't prompt for change mark24p SUN Solaris 2 04-28-2008 04:15 PM
Stopping password prompt rochitsharma UNIX for Advanced & Expert Users 4 07-04-2006 01:14 PM
password not prompt when doing a remote log in legato UNIX for Dummies Questions & Answers 1 04-19-2005 07:20 AM
Unable to get password prompt owls IP Networking 2 11-12-2003 02:17 AM
rcp without password prompt scottl UNIX for Dummies Questions & Answers 1 09-15-2003 07:47 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-16-2003
myelvis myelvis is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 16
any way to use SU command without prompt for password

Hi,
First i want to tell you i am not a administrator and everytime to run a sqlscritpt i have to login as SU in a particular account to connect to sqlplus..

I want to write a script which can make me free by doin this .. since i am having the permission for SU i want to know if i can SUDO into that particular account without getting a prompt for entering password ... Is there a way i can provide password to SU so that it doesn't give me password prompt..

Thanks for any help you can provide me in this ....
  #2 (permalink)  
Old 11-16-2003
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
take a look and see if you have the 'sudo' program installed on your system. sudo can do this and its configuration is controlled by the /etc/sudoers file. it is easy to set up.
  #3 (permalink)  
Old 11-17-2003
kduffin's Avatar
kduffin kduffin is offline Forum Advisor  
UN1X
  
 

Join Date: Nov 2003
Location: Maryland
Posts: 449
You should always identify which platform you are working with. There are often facilities that are particular to the OS that may accomplish a desired task. For example, Solaris has the RBAC facility that can authorize a user to execute a program with an effective uid.

I'd be extremely cautious in what you are describing. You don't want to sacrifice security for ease of use. There are other options such as setuid with extended ACLs (setfacl) or if it is a job that will run as a scheduled job, running it out of root's cron.

Cheers,

Keith
  #4 (permalink)  
Old 11-17-2003
myelvis myelvis is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 16
Hi guys ,

Thanks for the reply and sorry for not letting you the flavour of UNIX i am working on ..

I am on SUN solaris 5.7 ....

I do have the sudo installed but don't have access to view the /etc/sudoers file .

My point is if i am authorize to do a particular thing then i should be able to do it within my login ... Looking for a way to do it ...

I will take care of the security issue ....
See if u can help me out
c ya
  #5 (permalink)  
Old 11-17-2003
kduffin's Avatar
kduffin kduffin is offline Forum Advisor  
UN1X
  
 

Join Date: Nov 2003
Location: Maryland
Posts: 449
Sun Solaris makes it easy. It has a built in called RBAC (Role Based Access Controls). Do a man on user_attr, exec_attr and prof_attr. I'll drop a FAQ in a day or so for RBAC without the SMC.

Cheers,
Keith
  #6 (permalink)  
Old 11-17-2003
myelvis myelvis is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 16
Hi Keith,

Thanks for letting me know about RBAC.But sadly i don't seem to have any man entry for either of these : user_attr, exec_attr and prof_attr.

Don't really know what exactly these are .. Would be great if you could tell me abt these attributes in detail ..

Really appreciate your help

Take care
  #7 (permalink)  
Old 11-17-2003
kduffin's Avatar
kduffin kduffin is offline Forum Advisor  
UN1X
  
 

Join Date: Nov 2003
Location: Maryland
Posts: 449
RBAC is a sadly under used facility in Solaris. The nice thing about RBAC is that if you are using auditing to meet C2 compliance, the audit trail is maintained, whereas such tools as sudo don't address BSM options in Solaris and break the audit trail. I don't have 5.7 running anywhere (just 8/9), so I'd take a close look at the file formats before following my example.

Oops - there's the call for dinner. I'll post the example tonight. Typically you administer RBAC from the SMC, but I don't like it and tend to leave it off and edit the files directly. You can grab some blueprints from sun.com/bigadmin.

Cheers,

Keith
Closed Thread

Bookmarks

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0