Or the path you want su to have can be set in /etc/default/su.


--Mike
 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2007 9:14 AM
To: [email protected]
Subject: Re: [Solaris-Users] why source after su

 
In a message dated 7/24/2007 6:31:54 AM Eastern Daylight Time,  
[EMAIL PROTECTED] writes:

when I  do a 'su' I must execute 'source /etc/profile' in order to get a
decent  $PATH.....

is there a way aorunf this.... to have the same $PATH I had  before
su-ing ??


Instead of 'su', use 'su -'
 
That should fix it.



************************************** Get a sneak peek of the all-new AOL
at 
http://discover.aol.com/memed/aolcom30tour
_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users


_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

Reply via email to