Click to See Complete Forum and Search --> : Where's Root?


rachaelz
10-27-2000, 02:30 PM
Hello,

I'm new to Solaris and am trying to append to the search path in my root account. I'm used to RedHat which has a /root directory. Where in the tree is the file where I can add to my PATH var? A command sequence will do, but I'd like to know where all my root stuff is.

Thanks,

Rachael

bytemare
10-27-2000, 04:38 PM
Root is /

You could change it if you like, by creating a /root or something and then modifying /etc/passwd, but I wouldn't recommend this, some things might require root to be /
maybe you don't want that in your path either.. http://www.linuxnewbie.org/ubb/smile.gif

dieselboy
10-29-2000, 10:31 AM
In solaris.. as root, you dont have your own environment files as of yet.. everyone by default uses the system files for first setup.. I believe they are in /etc/skel... you will see a local.profile, a local.login and a local.cshrc... yo umust copy these to you rhome directory as follows..

cp local.login /.login
cp local.profile /.profile
cp local.cshrc /.cshrc

then you can modify these as necessary.. I believe that if you are using ksh then your path is read from .profile and bourne is reading from .login... csh naturally reads from .cshrc.. so set your path in one of these files accordingly...

hope this helps..

lates

diesel