[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: exit usage



Hello Rick!

On Wed, Jan 07, 2004 at 07:13:44PM -0600, Rick Weinbender wrote:
I have a situation where I login as the root user,
then 'su <username>' to a user with limited rights,
and run a short script as this user.
*
My question is:
In the last line of my script, can I invoke some
form of the exit command to leave me back
at the #prompt or root user prompt?

Better just run your script as
# su -c=<script> <username>
so you won't even get a user prompt to exit from.

You could also use sudo...

HTH,
Flo

Attachment: signature.asc
Description: Digital signature


Reply to: