The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: change default path ?
Alvin
Newbie
Rank: 1



UID 50
Digest Posts 0
Credits 0
Posts 19
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:48 AM  Profile | P.M. 
change default path ?



change default path ?



dear all

when i am telnet' ing to some ip, after logging in, i am into some default path.i want to specify "custom path" , that is after logging in , when i do pwd it should be custom path.for this where i have to change the setting or edit the path already specified.


i am having root password.


Top
24abc
Newbie
Rank: 1



UID 30
Digest Posts 0
Credits 0
Posts 51
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:48 AM  Profile | P.M. 
edit your .profile file and give the path.
Top
DPhil
Newbie
Rank: 1



UID 122
Digest Posts 0
Credits 0
Posts 36
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:49 AM  Profile | P.M. 
hi krrishv,

in solaris 10 i don't see .profile file , this file default in solaris system or must be add by user ?

thank you


regards
Top
littlebobek
Newbie
Rank: 1



UID 236
Digest Posts 0
Credits 0
Posts 26
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:49 AM  Profile | P.M. 
you want to modify login file for "root", you need to identify login shell for the user root and its home directory, post the output of following command:
Top
jloswald
Newbie
Rank: 1



UID 204
Digest Posts 0
Credits 0
Posts 28
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:49 AM  Profile | P.M. 
1st method : - do ls -la in your home directory you can see a .profile file.

$ ls -la
total 81
drwxr-xr-x 5 x033870 users 4096 jan 13 23:50 .
dr-xr-xr-x 3 root root 3 jan 13 23:46 ..
-rw-r--r-- 1 x033870 users 102 jul 6 2006 .boks_uenv
-rw-r--r-- 1 x033870 users 600 jul 6 2006 .cshrc
-rw-r--r-- 1 x033870 users 380 jul 6 2006 .kshrc
-rw-r--r-- 1 x033870 users 681 jul 6 2006 .login
-rw-r--r-- 1 x033870 users 699 jan 13 23:50 .profile
-rw------- 1 x033870 users 1608 jan 13 23:51 .sh_history
-rw-r----- 1 x033870 users 73 dec 26 06:08 im.sh
drwxr-xr-x 2 x033870 users 96 dec 26 05:18 take
drwxr-x-wx 2 x033870 users 96 jan 13 05:54 te
-rw-r----- 1 x033870 users 22 dec 26 05:22 test
-rw-r----- 1 x033870 users 3 dec 26 06:03 test1
drwxr-xr-x 2 x033870 users 96 jan 13 00:29 thr
$ uname -x
system = sunos
node = ash
release = 5.8
kernelid = generic_117350-41
machine = sun4u
bustype = <unknown>
serial = <unknown>
users = <unknown>
oem# = 0
origin# = 1
numcpu = 8
$ pwd
/home/x033870

edit the .profile file and add the line cd <path>

then logout and login you will be taken to that directory which u mentioned.

2nd method : check for .kshrc or .bashrc file in your home directory with ls -la
Top
 

 

All times are GMT, the time now is Jul 31, 2010 03:31 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.005285 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP