Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Sudo Here document
Name: VitaCarrot Date: August 29, 2007 at 13:12:59 Pacific OS: Solaris CPU/Ram: 100000 Product: Sparc
Comment:
I'm trying to create a here document to automate the sudo command. Anyone have any experience with this? This is what I have but it's not working, it still prompts for password:
Summary: You could try to use a "here document". passwd public_login << EOF newpassword newpassword EOF If you could live with the existing account, you could just lock the password to disable the account too....
Summary: You don't have a fully functional system during jumpstart, so I think you would have a very hard time getting Expect to run. I don't think you can do it. The Begin/Finish scripts may only run in the B...
Summary: Sorry, but Unix here documents don't work that way. Every thing between the first EOF and the second EOF is considered as input. All a here document does is redirect input. Consider redirecting inpu...