Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Arriving at a specified directory instead of the user's home |
|---|---|
| Date: | Tue, 13 Mar 2007 13:07:48 -0500 |
On Mon, Mar 12, 2007 at 07:03:55PM +0000, Robin Green wrote:
# Find out the user's preferred shell and execute it exec `getent passwd $USER|sed -e 's|.*:\(.*\)$|\1|'`
$USER is far, far less standard than $LOGNAME. Also, getent(1) is only present on a very small cross-section of unix-like systems. Why not simply use $SHELL?
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Arriving at a specified directory instead of the user's home, Greg Wooledge |
|---|---|
| Next by Date: | FC6 ssh times out to one particular host, chris |
| Previous by Thread: | Re: Arriving at a specified directory instead of the user's home, Robin Green |
| Next by Thread: | RE: Arriving at a specified directory instead of the user's home, Dr Yuri \"Joe\" Petkoswki |
| Indexes: | [Date] [Thread] [Top] [All Lists] |