Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing FW1

Status
Not open for further replies.
Jan 4, 2001
35
US
I have never worked Solaris but have been tasked with installing FW1. It says that I have to update my scripts to the .profile and my .bash_profile . I cannot find these files so I am assuming that it is a log in profile script. Where do I find it? I cannot find them anywhere.
 
the .profile is the unix form of autoexec.bat, sort of, and it can be found in your home directory (/home)
the .bash_profile... I´ve no idea what that is.
It is possible that root doesn´t have any .profile but a newly added user might.
write man useradd or man adduser to see what the syntaxes are. I can´t remember if the .profile only is added to users who use the restricted shell.
In either way the manual pages are great (man [command]).

I can understand that FW-1 wants to execute some kind of scripts during login/startup. perhaps you should look into the startup-scripts as well.
the .profile is loaded when a user logs in. But in /etc/rc.d you can find startup scripts that load certain deamons, programs etc. during boot-up.
Nostradamus
 
The .profile is used by the bourne-shell (and ksh) and .bash_profile is used by the bash-shell (if it is installed on your system). They are located in the homedirectories of users.
Maybe you want to take a look at /etc/profile because that is the system-wide profile that is executed before .profile

Alex


 
If you are unfamiliar with Solaris /UNIX you will need to use the ls -la command to view hidden files (unless your logged in as root). All files preceeded with a " . " are hidden to a standard user unless specified otherwise. Both of these files are used a mentioned above and will be ran at login by the user automatically. Anything in the script will then be executed. They are most often used to set prompts, local variables, paths etc., Check the man page for shells or profile. A good book to reference is O'reilly's "Essential System Administration". Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top