- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: su to user without knowing the 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
09-19-2002 03:06 AM
09-19-2002 03:06 AM
Can I setup (configure) some trustings?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2002 03:06 AM
09-19-2002 03:06 AM
Re: su to user without knowing the password
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2002 03:31 AM
09-19-2002 03:31 AM
Re: su to user without knowing the password
I think your pretty safe with that reply Pete
Regs
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2002 03:46 AM
09-19-2002 03:46 AM
Re: su to user without knowing the password
"To use su, the appropriate password must be supplied unless the current user is superuser."
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2002 03:55 AM
09-19-2002 03:55 AM
SolutionDownload it from
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.2b1/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2002 07:45 PM
09-19-2002 07:45 PM
Re: su to user without knowing the password
As user2, cd to your home directory and 'echo "mymach user1" >> .rhosts'
As long as remsh service is enabled and you can resolve mymach, you now should be able to execute as user1 'remsh mymach -l user2
It's not pretty, but it works.
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2002 05:22 AM
09-20-2002 05:22 AM
Re: su to user without knowing the password
.rhosts files are easy ways to bypass the passwd - if rsh,rlogin are on, you can act as another user as long as your ID is listed in the .rhosts file.
This is usually a security issue for a number of reasons:
1) poor syntax in the .rhosts file can lead to a server compromise. If Bob has a .rhosts file which says:
ralph bigserver
dave
Then ANY system which can answer as "bigserver" with a userid of "ralph" on it can gain access without a passwd. The "dave" entry is worse, as it doesn't care which server has a userid of "dave" it will have access.
This is how I accessed a server which lost the root passwd - through .rhost files. We saw the .rhosts file was readable for root, and saw a non-root user who was in the list. We logged into another UNIX host, su'd to that user, then used rlogin as root to access the locked out host, all without knowing the root passwd.
2) Daisychaining across hosts - Since many people use NFS to deliver /home/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2002 05:02 AM
09-21-2002 05:02 AM
Re: su to user without knowing the password
If you use "sudo" then you can set it up to allow a particular user to su to another user, and they won't need the password.
sudo lets them run the su command as root.
http://www.courtesan.com for sudo.