The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 login question
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
 
 Re: login question
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
 
 Re: login question
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
 
 Re: login question
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
 
 nevermind
Author: alone 
Date:   01-03-01 02:46

nevermind answering my question, I read the manual already...sorry

Reply To This Message
 
 Re: login question
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
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org