home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.solaris:443 comp.unix.shell:5185
- Newsgroups: comp.unix.solaris,comp.unix.shell
- Path: sparky!uunet!mcsun!ub4b!info-sparc1.info.ucl.ac.be!fynu.ucl.ac.be!nina
- From: Ninane@fynu.ucl.ac.be (Alain Ninane - FYNU)
- Subject: *AGAIN* CSH - Execute `target' .cshrc with `su'
- Message-ID: <1992Dec30.111757.5822@info.ucl.ac.be>
- Originator: nina@fynu1.fynu.ucl.ac.be
- Sender: news@info.ucl.ac.be (News Administrator)
- Nntp-Posting-Host: fynu1.fynu.ucl.ac.be
- Organization: University of Louvain (LLN) - Nuclear Physics Dept.
- Date: Wed, 30 Dec 1992 11:17:57 GMT
- Lines: 28
-
- Yesterday, I posted a request about the execution of .cshrc file of
- the target user when executing su:
-
- > On our solaris 2.1 system, we are using /bin/csh as the default shell.
- > When we execute:
- > su otherUser
- > the otherUser's .cshrc file is not executed. Is there a way to modify
- > this to have a BSD like behaviour (where ~otherUser/.cshrc is executed
- > by su). Which parameter do I have to tune ? the path ?
-
- I received a bunch of responses telling me to execute:
- su - otherUser (i.e. with the `-' option)
-
- This is, to my sense, not satisfactory (i.e. BSD like). With the `-'
- option, su behaves like login, i.e. executes also the .login file;
- you are also moved to the otherUser's home directory. I would prefer
- an su which does not execute the .login file and stays where you are ...
-
- I think that the point is that system V su does not change the $USER
- environment variable (but only the userid).
-
- Thanks,
- Alain
- --
- Dr. Alain H. Ninane | Tel : +32-10-47.32.32 - Fax: +32-10-45.21.83
- University of Louvain | Internet: Ninane@fynu.ucl.ac.be
- Nuclear Physics Dept. | Ch. du Cyclotron, 2
- B-1348 Louvain-la-Neuve | BELGIUM
-