Add a user without using 'adduser' command

0
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.

emptysky의 이미지
1480
points

/etc/shadow 파일에[code:1]추가사용자:&

0
points

/etc/shadow 파일에

추가사용자::::::::            <- 콜론 8개

이렇게 추가하시고
passwd 추가사용자

로 패스워드를 주세요

정말 감사드립니다!!!!!!!!!

0
points

정말 감사드립니다!!!!!!!!!

댓글 보기 옵션

원하시는 댓글 전시 방법을 선택한 다음 "설정 저장"을 누르셔서 적용하십시오.