Where is the .profile on Solaris 10G


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Where is the .profile on Solaris 10G
# 1  
Old 10-20-2005
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 Smilie

Please help
# 2  
Old 10-20-2005
the .profile on Solaris 10G

The .profile will be available in '/' . Check it there.
# 3  
Old 10-20-2005
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 Smilie

Please help

Check in /etc/passwd what is the HOME set for the root user.
goto root home and ls -a
# 4  
Old 10-20-2005
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?
# 5  
Old 10-20-2005
It sounds like you don't have a .profile yet. So just create one.
# 6  
Old 10-20-2005
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.
# 7  
Old 10-20-2005
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. IP Networking

What's the difference between Cisco SFP-10G-SR and XFP-10G-MM-SR ?

We're connecting a ASA 10G port with Cisco SFP-10G-SR transceiver to SCE 10G port with XFP-10G-MM-SR, can they connect each other? We also want to know what's the difference between them? (1 Reply)
Discussion started by: Ayaerlee
1 Replies

2. UNIX for Dummies Questions & Answers

.bash_profile versus .profile of user in Solaris 10

Hi All I am kind of confused, when to use .bash_profile or .profile I have just created a user on a test server, with: useradd -u 103 -d /fretagi -m -s /bin/bash fretagi but now in its home dir I have: -bash-3.2$ ls -al total 14 drwxr-xr-x 2 fretagi other 512 Dec 5 15:54 .... (5 Replies)
Discussion started by: fretagi
5 Replies

3. Solaris

Is possbile to install Oracle database 10g on Solaris 11 Express ?

Today I finally tuned my Solaris 11 express so now works better :D I want to install some relational database on that machine and learn for my future carrier. I downloaded Oracle database 10g for Solaris x86 and tried to install it but my system didn't passed system requirements, installer... (0 Replies)
Discussion started by: solaris_user
0 Replies

4. Solaris

Installing oracle 10g on solaris

Thanks all for your help. Now here is another problem i have, i have been trying to install oracle 10g on solaris but i keep getting this error message "there is not enough memory on the volume you specify to copy the starter database files the oracle universal installer discover that you have... (8 Replies)
Discussion started by: mutiat
8 Replies

5. High Performance Computing

Installation Guide for Solaris Cluster 3.2 Software and Oracle 10g Release 2 Real App

Here are steps for installing the Solaris 10 11/06 OS, Solaris Cluster (formerly Sun Cluster) 3.2 software, QFS 4.5, and Oracle 10gR2 RAC. Also provided are instructions on how to configure QFS and Solaris Volume Manager for use with Oracle 10gR2 RAC. More... (0 Replies)
Discussion started by: Linux Bot
0 Replies

6. Solaris

Solaris 9 and .profile

I have created a custom nologin shell named nologinksh that looks like this. #!/bin/ksh DATE=`date |sed 's/:.. .*//'` LAST=`last -1 |grep "$LOGNAME.*$DATE"` if ; then echo "Remote logon is not permitted." else export SHELL=/bin/ksh . $HOME/.profile ... (0 Replies)
Discussion started by: woodson2
0 Replies

7. Solaris

Oracle 10G installation on Solaris 9

Hi Guys, I need to install Oracle 10g on solaris 9, the server is not in cluster. The server is already running applications like OVO and Weblogic. Can you guys please tell me the steps to do this and what paramaters ( Kernal and otherwise) which need to be modified? There will be about 100... (2 Replies)
Discussion started by: nitinkgoud
2 Replies

8. UNIX for Dummies Questions & Answers

editing a profile on solaris 2.3

Firstly, thank you for this great forum and the time you spend on answering newbies like me. I still have a problem with understanding how profiling works on a solaris 2.6 unix system. when adding a user, it should get a profile in /home I suppose. And again, I suppose that this is the file... (7 Replies)
Discussion started by: phpote
7 Replies
Login or Register to Ask a Question