Solved

adduser problem

Posted on 1998-08-16
8
178 Views
Last Modified: 2013-12-06
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.
0
Comment
Question by:smiley020999
8 Comments
 

Expert Comment

by:Shockwave
ID: 1637790
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
0
 

Author Comment

by:smiley020999
ID: 1637791
the answer didn't explain why the pass is not encrypted and why the 'useradd' command is not working.
0
 
LVL 1

Expert Comment

by:Sieger
ID: 1637792
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...
0
 

Expert Comment

by:dima_sherman
ID: 1637793
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!).
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Expert Comment

by:neewbie98
ID: 1637794
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.....
0
 

Author Comment

by:smiley020999
ID: 1637795
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
0
 

Author Comment

by:smiley020999
ID: 1637796
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.

0
 
LVL 1

Accepted Solution

by:
pestilence earned 50 total points
ID: 1637797
to add a user simply type:
#adduser bob
and then
#passwd bob
remember! you have to be root!!!!
if it gives you an error message then delete the /etc/.pwd.lock file, this file locks your passwd file without letting you add any other users.
If you want shadow support then visit www.linux.org and read the appropriate HOWTO.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now