Link to home
Start Free TrialLog in
Avatar of smiley020999
smiley020999

asked on

adduser problem

i tried useradd command and control-panel way to add user account but failed to login, though it looks new user is added to /etc/passwd file, the password part in that file is not encrypted. what is the problem? it is redhat 5.0
BTW, where is the file to change the machine name? it is still localhost.localdomain after i changed the /etc/HOSTS file.
Avatar of Shockwave
Shockwave

Smiley,

When you use the 'User Configurator' under the control panel, you need to grab the arrow next to 'Encrypted password' and select 'change' from the list.  A dialog will pop up an you should enter the user's password in it (2 times).  It will only show **** instead of the actual password as it is typed.  After you enter the password the second time, select done and the encrypted version of the password will appear in the 'Encrypted password' field.

If you use the 'adduser' method, then you will need to do a
'passwd <username>' in order to set the user's password.

For your second question, I assume you are trying to set it in the HOSTNAME file in /etc?  This is probably being overwritten at boot by the parameters in /etc/sysconfig/network.  Try changing the hostname in network and I think that will fix your problem.

Cheers,

Shockwave
Avatar of smiley020999

ASKER

the answer didn't explain why the pass is not encrypted and why the 'useradd' command is not working.
adduser only adds user without the pasword I think.

if you doing it in control panel.  You should set passwords with the change option instead of original.  I couldn't get the original to work either.. maybe I don't understand what it does...
Ok here we go try this:
Login as root and do:
$ adduser
It will ask all you need.
If it didn't help do:
pico /etc/passwd
Insert new user there without password.
and do:
$ passwd <newuser> (While you are root)
That all.
To change name try:
In:
/etc/motd
/etc/hosts
/etc/ppp ( i forgot, but im sure it's ppp directory if you're using PPP!).
It's abit hard for you to  add user(Contro Panel...) in Red hat 5.0 cause It's a bug and should be fixed(pls check again in CD rom Red hat 5.0-Contest-Change password.....)you should try this way and I hope It will work:
#adduser bob
#passwd bob
After you added new user successfully,you can change finger information for bob
#chfn bob
...

P.S: you can still set passwd in Red hat with the change option.....
i tried adduser and then manually change password while as root. it's just not working the only time it's working is when i issue 'su' in root and in text mode(well in xterm) but if i do it at the beginning which is the xwindow login level(i set inittab at run level 5 as default) it never works.
i found red hat 5.0 is worse than older version, maybe more packages, but performance is bad. and slower
to change the name of machine, the /etc/hosts is not right and not working, /etc/motd has nothing to do with it(running only after login?)
i don't think /etc/ppp is the right place to control the machine name.

ASKER CERTIFIED SOLUTION
Avatar of pestilence
pestilence

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial