- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- password in shell file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 02:57 AM
09-03-2004 02:57 AM
password in shell file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 03:00 AM
09-03-2004 03:00 AM
Re: password in shell file
Is that cronjob running as root where it does "su - user -c
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 03:03 AM
09-03-2004 03:03 AM
Re: password in shell file
su user -c "unix_script arguments"
From root account, no passwd is requied for this command.
But from an other user, from shell, you have to give a passwd.
Can you confirm and/or give an extract from your script shell ?
Olivier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 03:06 AM
09-03-2004 03:06 AM
Re: password in shell file
Who is running script?
From command line and from cron?
If root - and it's a su to some user - then no password required....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 03:19 AM
09-03-2004 03:19 AM
Re: password in shell file
You can use r* commands on this.
make .rhosts on user's home directory and allow between the user's to not ask passwd
Example:
between root and test user then,
.rhosts on root user home dir
localhost test
.rhosts on test user home dir
locahost root
It will not ask passwd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 05:28 AM
09-03-2004 05:28 AM
Re: password in shell file
'su - oracle -c "u01/scripts/courseTitleCursor.shl" and it would prompt me for a password. if i just run the script "courseTitleCursor.shl" everything seems to be ok.
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 05:37 AM
09-03-2004 05:37 AM
Re: password in shell file
Yep. Even to su to the same login, it will prompt for a password. If you run it as root, it won't.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 05:49 AM
09-03-2004 05:49 AM
Re: password in shell file
if you have cron jobs scheduled for oracle and if you would like oracle's .profile to be sourced before executing the script in cron, then edit the script that is executed by cron and add
. ~oracle/.profile
<script>
This will ensure oracle's .profile is sourced before executing the script.
-- Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 05:52 AM
09-03-2004 05:52 AM
Re: password in shell file
Olivier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 04:03 PM
09-03-2004 04:03 PM
Re: password in shell file
IF you try to use su from users other than root it will prompt eventhough it is same user.
And try to use the absolute path on the execution on shell script with su. So the problem of passwd promption is on using su for the same user.