![]() |
|
|||||||
| OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
||||
|
Quote:
Read ksh's manpage (search for login shell and privileged shell). |
|
||||
|
You might consider a couple of additional man pages:
From su(1): Quote:
Quote:
__________________
OpenBSD LiveCDs/LiveDVDs |
|
||||
|
Solution to what? You haven't been clear about what you *expect* to have happen, and how that differs from what you're observing.
I'm hazarding a guess here...a very quick and dirty workaround (if I'm understanding your complaint correctly) would be to alias su="su -", then source your alias file at the bottom of your .profile. |
|
||||
|
Quote:
|
|
||||
|
Quote:
log as su - and do NOT read .profile is NOT a security risk. Just think about it for a second. |
|
||||
|
Quote:
Quote:
|
|
|||
|
I found that even with 'su -' some environment variables were read and some were not (as explained above) and the working directory changed to /root too. The aliases issue had to be overcome by putting those in a .kshrc file referred to by a $ENV variable defined in .profile. Running 'su' carries over the aliases defined in the user directory without changing working directory which I find useful.
Last edited by mechanic; 8th September 2010 at 04:09 PM. |
|
||||
|
Roots .cshrc is OK. What you do not want is to read .cshrc from your regular user account. My understanding was that he wants exactly that. To read all the environment of the regular user. I will admit that would make work more convenient but on the multi user system is just plain dangerous.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OpenBSD: modify .profile for PS1 and PAGER | J65nko | Guides | 1 | 19th January 2010 11:17 PM |
| when and by what is .profile read? | kasse | FreeBSD General | 8 | 11th September 2008 08:46 AM |
| working with .profile and history | uptonm | OpenBSD Security | 1 | 15th August 2008 12:14 PM |
| Firefox profile not saving | tonywob | FreeBSD General | 4 | 20th May 2008 12:20 PM |