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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can not fine root's .profile 2

Status
Not open for further replies.

jkoslosk

Programmer
May 21, 2002
2
US
I am trying to find root's .profile so I may add some lines according to some software install instructions I have recieved. I am a developer and unfamiliar with the AIX 5.1 (5L) system administration. I did not see a root user folder in /home and could not find a .profile in the / directory. Any information would be helpfull.

Joel
 
you can do
finger root
youll see roots home is /, that's bad
use
smitty user
to move it to something like /root
then you can create .profile there
add user for yourself and deny direct root login - use
su -
to get to root

default profiles are (only if all users need your environment):
/etc/security/.profile - the one copied when addig user
/etc/profile - the one executed before users .profile
/etc/enviroment - default environment before previous in form
VARIABLE=value, no commands there

 
mkdir /root
first - or you'll have to restore it from diag mode/install media
 
The root user's home directory is "/" and the default installation is to use the korn shell /usr/bin/ksh. This will place a .prfoile in /

My guess is that it was removed, but can be recreated. Just add your PATH statement or any other environment variable you want, then change permissons to 600 and owner/group of root:system and place it in /
 
/.profile is not present after install
root's home is /
 
DO NOT create a /root that is something used in *BSD and Linux. You would just create problems for yourself during upgrades and a .profile is created when using the ksh.
 
Hey...

Are you doing "ls" as root? Are you doing "ls -a"? You cannot see so-called hidden files otherwise. Hidden files begin with a dot, like .profile.
 
AIXSPADMIN: dont fear of /root as it helps hide root's inventory from everyone, it is mounted along with / - so where are problems?
 
We keep default of / as root home, no problems with that.

o14777@host:/utc/home/o14777>whoami
o14777
o14777@host:/utc/home/o14777>touch /testgl
touch: 0652-046 Cannot create /testgl.
o14777@host:/utc/home/o14777>ls -la /|head -3
total 4214
drwxr-xr-x 29 bin bin 1536 May 17 19:56 .
drwxr-xr-x 29 bin bin 1536 May 17 19:56 ..

Seems secure to me.
 
HOLD ON THERE!!!

jkoslosk, are you the system admin? If you are not, then I would suggest letting the admin do the software install. You mentioned that you are a developer and not familiar with system administration. Someone needs to be responsible for your server, and that person should be the one to do the software install.

Don't try to be the admin if that isn't your responsibility. You will only cause everyone who uses your server a great deal of pain. Einstein47
(Love is like PI - natural, irrational, endless, and very important.)
 
Perhaps you have hit upon the problem, Ein. =) Good thinking. I should try to remember asking why would someone need to do something.
 
You will be amazed how many developers out there end up doing system administration, especially in small companies who cannot warrant a full-time sysadmin. IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
 
On many of the new installs I find that in both 5 and in 4.3 the .profile for root
is non existant or not created by default. These can easily be created with vi.

If you do not create it, it uses the /etc/profile. If you wish to just customize roots .profile and not make it a general change, you can create
the .profile in / (I prefer / but yes you can create elsewhere)


 
I know that sometimes developers need to do sys admin stuff, but there still will be someone "responsible" for the server. If jkoslosk is that person, then he needs all our help. However, if there is someone else that is the sys admin and we give jkoslosk too much help, his server could be foobared for weeks. been there - done that

Otherwise, listen to the aixqueen. She didn't get on the top of the "Top Experts List" by sitting on a throne. Einstein47
(Love is like PI - natural, irrational, endless, and very important.)
 
Thank you all for your help.
A little backgound- I am a developer writing a Solution Manual. Everything starts and ends with me unfortunately. (Jack of all trades master of none)
From what I understand I need to create my own .profile for root because none is create by default upon install. Once that is created I will need to add my lines needed for the other software I am installing. ( In case your interested WebSphere Commerce Suite 5.4 and everything else associated with it... What a bear ;-( )
Thanks again for your help.

FYI: I work for a big company that just announced it is laying off 8,000 employees hint hint.. (don't want to mention any names...) I get the whole 44P Model 270 to myself to crash and burn and re-install the os and all that fun stuff.. If they gave me a tape backup I wouldn't have to re-isntall each time I screwup a software install.
 
Not my company then, we are only laying off 300. Or so I hear. =)

My company is very territorial and I think most of us work in such environments; note my frequent comments about something being outside my responsibility, such as DNS, any sort of cable either copper or fibre, EMC frames, the firewall, etc. In fact I am not even supposed to do user administration. Since the security group barely understands NT, however, we mostly ignore them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top