LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 05-30-2005, 03:49 AM   #16
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492

Ohh, sure, you should have told that before !!

Your original message was misleading, you weren't login in as a new user, as one of the "su" features is precisely to preserve most of the original user environment variables.
You can still use su for the behaviour you expected, but with the dash option.
Code:
su - root
And do not hesitate to consult the Solaris manual pages before posting, "man su" is clearly explaining how the environment is passed.
 
Old 05-30-2005, 04:38 AM   #17
syreth
LQ Newbie
 
Registered: Sep 2004
Distribution: Slackware, Solaris
Posts: 11

Original Poster
Rep: Reputation: 0
I didn't think the environment was passed that way using su. I'm used to the linux-style su where this kind of thing doesn't come up. I assumed it was the same on solaris, sorry.
 
Old 05-30-2005, 06:02 AM   #18
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Right, you pinpointed this su incompatibility.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
c++ home directory bendeco13 Programming 2 11-04-2005 05:27 PM
home directory under a home directory GEEXTER Linux - General 4 04-03-2003 09:17 AM
Can't get in home directory--Help dtsfanatic Linux - General 1 08-10-2002 03:19 PM
home directory TX_metalhead Linux - General 6 06-02-2002 01:41 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration