- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Scripting/permission help needed
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
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
05-09-2005 04:40 PM
05-09-2005 04:40 PM
Scripting/permission help needed
I have one script whiche create some report (say a.exe)and this file reads password info from another file(b.ini).I dont want user to view the password(b.ini) but excute the report script.I tried with SUID,But didnt help. Can any bodygive some input to achive this (script/permmission)
Thanks in advance
Anoop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 05:00 PM
05-09-2005 05:00 PM
Re: Scripting/permission help needed
Use sudo for this case which will run your a.exe script as user and read the b.ini (password file)
Change the permission of b.ini file to 000 to no one can read it and then use sudo
sudo -u
download sudo from here
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.8p6/
cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 06:30 PM
05-09-2005 06:30 PM
Re: Scripting/permission help needed
Thanks for your reply
How do I create /etc/sudoers file
Anoop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 04:48 PM
05-10-2005 04:48 PM
Re: Scripting/permission help needed
If you down loaded sudo go to /usr/local/sbin
than type ./visudo you will see example how to defined the command and permission.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 06:04 PM
05-10-2005 06:04 PM
Re: Scripting/permission help needed
I am little confused with it's man pages.Can you post some examples??
Thanks & regards
Anoop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 06:29 PM
05-10-2005 06:29 PM
Re: Scripting/permission help needed
usr1 system1 = NOPASSWD: /bin/kill, /bin/ls
this means a usr1 on system1 can run commands like /bin/kill and /bin/ls as root without being prompted for password
Have a look at the man pages of sudoers u'll have more options like if you want to be prompted for password or want to run as someother user etc..
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2005 07:14 PM
05-20-2005 07:14 PM