Add a user without using 'adduser' command

125
points
points
I wanna add a user directly manipulating the file 'passwd', not using 'adduser' command.
So I did like this:
# echo "$name $uid $gid $......"
# mkdir $homedir
But when I try to give $name a password:
# passwd $name
Shell said 'Authentication token manipulation error'
Now what am I supposed to do now?
..
I think it will be so kind if you let me know exactly what procedure I have take to add a new user not using 'adduser' command.
..
Please help me out, guys.
And I'd like to appreciate for the previous help.
»
- 인쇄에 적합한 버전
- Login or register to post comments
- 1205번 읽힘

points
/etc/shadow 파일에[code:1]추가사용자:&
/etc/shadow 파일에
이렇게 추가하시고
로 패스워드를 주세요
points
정말 감사드립니다!!!!!!!!!
정말 감사드립니다!!!!!!!!!