|
Author: xhzhi
Date: 28-02-01 09:38
when I login system as general user called "xhzhi",i found my path is not correctly,below
$pwd
/
normal path is /usr/home/xhzhi
why?could you tell me ? thank you very much.
|
|
Reply To This Message
|
|
Author: alone
Date: 28-02-01 10:51
portion of this two files (/etc/master.passwd , /etc/passwd) should contain similar to this:
master.passwd:
xhzhi:%^4234$533543i66/:1234:1234::0:0:my name:/usr/home/xhzhi:/usr/bin/tcsh
passwd:
xhzhi:*:1234:1234:my name:/usr/home/xhzhi:/usr/bin/tcsh
maybe after "my name:" you have " / " and not "/usr/home/xhzhi"
|
|
Reply To This Message
|
|
Author: Dan Langille
Date: 28-02-01 15:54
run vipw, look fo your user. modify the path.
Don't modify /etc/master.passwd , /etc/passwd by hand. Use vipw.
|
|
Reply To This Message
|
|
Author: alone
Date: 01-03-01 02:39
i see! so that's the correct way to do it... thanks for the additional info. BTW how bad it is, if I'll modify those two files manually?
thanks,
alone
|
|
Reply To This Message
|
|
Author: shrub34
Date: 02-03-01 15:38
alone wrote:
>
> i see! so that's the correct way to do it... thanks for the
> additional info. BTW how bad it is, if I'll modify those two
> files manually?
>
> thanks,
> alone
On a standalone system, editing the file with $EDITOR <file> will not cause huge problems.
As soon as you have multiple sys admins, the need to use vipw becomes more important.
vipw: locks the file for editing and before writing the file verifies that the format is correct.
shrub
|
|
Reply To This Message
|
|