The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Jumpstart "profile" with Solaris 8 vasy SUN Solaris 4 06-10-2008 12:48 AM
Solaris 9 and .profile woodson2 SUN Solaris 0 11-29-2006 12:46 PM
Difference between .profile and .~/.profile maneesh mehta SCO 3 12-14-2005 01:35 AM
changed .profile but didnt ./.profile, yet reflected changes yls177 UNIX for Dummies Questions & Answers 4 12-05-2002 08:21 AM
editing a profile on solaris 2.3 phpote UNIX for Dummies Questions & Answers 7 08-20-2001 01:16 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 10-20-2005
Registered User
 

Join Date: Sep 2005
Posts: 18
Where is the .profile on Solaris 10G

Hi,

I am trying to modifying the root user .profile file, but I cannot find it.

If I do the command "echo $SHELL", i get /sbin/sh

Where is the .profile located at? Sun's doc says the users home folder. I'm logged in as root, but when I go "/home", I don't see it

Please help
Reply With Quote
Forum Sponsor
  #2  
Old 10-20-2005
Registered User
 

Join Date: Feb 2005
Location: Limassol, Cyprus
Posts: 3
the .profile on Solaris 10G

The .profile will be available in '/' . Check it there.
Reply With Quote
  #3  
Old 10-20-2005
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
Quote:
Originally Posted by annointed3
Hi,

I am trying to modifying the root user .profile file, but I cannot find it.

If I do the command "echo $SHELL", i get /sbin/sh

Where is the .profile located at? Sun's doc says the users home folder. I'm logged in as root, but when I go "/home", I don't see it

Please help

Check in /etc/passwd what is the HOME set for the root user.
goto root home and ls -a
Reply With Quote
  #4  
Old 10-20-2005
Registered User
 

Join Date: Sep 2005
Posts: 18
Hi,

Is there some type of special command I have to type to access it?

For example, I'm in '/' now. So, I execute the command "vi .profile" and it creates a new file, so it's not finding the .profile. Ultimately, I would like to add an environment variable to this file. I have found a .profile in /export/home, but it has none of the entries that I see when i execute the env command?
Reply With Quote
  #5  
Old 10-20-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,611
It sounds like you don't have a .profile yet. So just create one.
Reply With Quote
  #6  
Old 10-20-2005
Registered User
 

Join Date: Sep 2005
Posts: 18
Hi,

in passwd file, the entry for root is below:

root:x:0:10:Super-User:/:/sbin/sh

Well, if I don't have a .profile, what files are my environment variables being set in. if I do a env, I can already see values set the $PATH, I just cannot find the file where these values are stored.
Reply With Quote
  #7  
Old 10-20-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,611
The login program will initialize the environment if you went though the login program. Documented in "man login" Then most shells have a global startup script that affects all users. Documented in the man page for your shell...in this case /etc/profile.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
solaris

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0