- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- switch user without giving a password
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
06-24-2002 05:22 AM
06-24-2002 05:22 AM
switch user without giving a password
is it possible to switch to another user without giving a password? For su this is only for root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 05:25 AM
06-24-2002 05:25 AM
Re: switch user without giving a password
in my opinion only root is not asked to enter a password when doing a su. All other users have to enter a passwd no matter to which user they want to switch. ( as long as you don't create a second user with UID 0! )
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 05:31 AM
06-24-2002 05:31 AM
Re: switch user without giving a password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 05:33 AM
06-24-2002 05:33 AM
Re: switch user without giving a password
If you are logged in as root, you can do a su to another system without giving a password. But if you are logged in as any other user (without superuser priviledges), you'll have to supply a password while doing an su to another user.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 06:05 AM
06-24-2002 06:05 AM
Re: switch user without giving a password
man 1M setprivgrp - section SETRUGID
Never tried it out though
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 06:09 AM
06-24-2002 06:09 AM
Re: switch user without giving a password
1. Login to another user from root < no passwd is required >
2.logging in from a user to another user n then u need to have the passwd may be you
3.may be you can try rlogin
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 12:06 PM
07-01-2002 12:06 PM
Re: switch user without giving a password
I think I gave U the answer on this question, to make clearly to U just take this,
You cannot provide the password to the su within the script. You will always be prompted interactively.
If you are root, you can write:
# su - oracle -c
This will run
Hamdy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 12:21 PM
07-01-2002 12:21 PM
Re: switch user without giving a password
Any user except root is asked for the password during switching.
You can use sudo software if you do not want to be asked for the password. If you don't have sudo software use the following link to download it,
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.6/
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 12:30 PM
07-01-2002 12:30 PM
Re: switch user without giving a password
I think U can do the following,
Simple - Create a user with uid "0".
<<
Good luck,
Hamdy