LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Is There Anyone Still Using Suse 9.3? Please Help... zzz (https://www.linuxquestions.org/questions/suse-opensuse-60/is-there-anyone-still-using-suse-9-3-please-help-zzz-462297/)

Osirix 07-09-2006 05:54 AM

Is There Anyone Still Using Suse 9.3? Please Help... zzz
 
In Suse9.3, is it possible to add a user via directly editing the file /etc/passwd?

I manually inserted a new line below into the passwd file:
exuser::3:3::/:/bin/bash

But when I
>su exuser
in bash, there is no prompt of entering any password, and it just prompted
su: incorrect password

Well, I suppose the password for this new user should be blank. ...What's possibly going wrong?

Is there anyone having a test of this?


:) Many 3ks!

nlinecomputers 07-09-2006 07:19 AM

You need to use the useradd command.

Or use yast.

Osirix 07-09-2006 01:56 PM

Well, I am just curious about this. Because I can add user in this way under many other Linux OSs but only except this Suse 9.3....why?

nlinecomputers 07-09-2006 02:17 PM

Because Suse uses shadow password files, usually blowfish, and su is only granted to known users. You can manually edit a bunch of files but why bother. That is what the useradd program is for, and you can run if from a script.


All times are GMT -5. The time now is 12:50 AM.