RH7.1 Creating new users (useradd & linuxconf)

RH7.1 Creating new users (useradd & linuxconf)

Post by atna.. » Thu, 26 Jul 2001 23:59:16



I have installed RH7.1 &  trying to add user using

"/usr/sbin/adduser"

My problem is I'm unable to log with the new login name. It is just not
accepting password. I have tried  "adduser -p passwd" option to set
password but its still not working.

I searched REDHAT & it suggest some utility "linuxconf" to do all these
tasks. But my installation does not have this utility. Is this partof
RH7.1 or I need to install it separately. If seaparate installation is
required from where can I get the rpm & installation instrutions.

Thanks,

Diganta

 
 
 

RH7.1 Creating new users (useradd & linuxconf)

Post by Swif » Fri, 27 Jul 2001 00:04:46



> I have installed RH7.1 &  trying to add user using

> "/usr/sbin/adduser"

> My problem is I'm unable to log with the new login name. It is just not
> accepting password. I have tried  "adduser -p passwd" option to set
> password but its still not working.

Set the password with "passwd <username>".

F.i. "passwd atnagid" if your user's login is atnagid.

--
 SwifT                     -    Key-ID CDBA2FDB
 LUG: http://www.lugwv.be  -    http://www.keyserver.net

 
 
 

RH7.1 Creating new users (useradd & linuxconf)

Post by George P. Nelso » Fri, 27 Jul 2001 03:35:05



> My problem is I'm unable to log with the new login name. It is just
> not accepting password. I have tried??"adduser?-p?passwd"?option?to
> set password but its still not working.

  1st: are you sure that you were doing this as root? I don't believe
this would work logged in as a normal user.

Quote:> I searched REDHAT & it suggest some utility "linuxconf" to do all
> these tasks. But my installation does not have this utility. Is this
> partof RH7.1 or I need to install it separately. If seaparate
> installation is required from where can I get the rpm & installation
> instrutions.

 this definitely is a normal redhat program. the rpm for it is part of
the normal redhat install. I believe that its installation is a
standard rpm install. Also, you MUST be root to run linuxconf. I
honestly think you've got it installed already unless you actively
disabled & deselected it during the original 7.1 installation, And
you're probably tying to run it logged in as someone other than root.
 
 
 

RH7.1 Creating new users (useradd & linuxconf)

Post by Dave Uhrin » Fri, 27 Jul 2001 09:54:47




>> My problem is I'm unable to log with the new login name. It is just
>> not accepting password. I have tried??"adduser?-p?passwd"?option?to
>> set password but its still not working.

>   1st: are you sure that you were doing this as root? I don't believe
> this would work logged in as a normal user.

>> I searched REDHAT & it suggest some utility "linuxconf" to do all
>> these tasks. But my installation does not have this utility. Is this
>> partof RH7.1 or I need to install it separately. If seaparate
>> installation is required from where can I get the rpm & installation
>> instrutions.

>  this definitely is a normal redhat program. the rpm for it is part of
> the normal redhat install. I believe that its installation is a
> standard rpm install. Also, you MUST be root to run linuxconf. I
> honestly think you've got it installed already unless you actively
> disabled & deselected it during the original 7.1 installation, And
> you're probably tying to run it logged in as someone other than root.

George, Red Hat no longer installs linuxconf by default.  They state
clearly that it is "deprecated".  It doesn't work, either ;-)
 
 
 

1. Creating script to add new users w/o using USERADD command

Can anyone give me a few suggestion on the following scenario:

Creating the password should also be incorporated in the script. That
means, when you call the script to create a user, you also give it the
password value, and then, your script will create the user and also
create the password without prompting you for anything.

Assume the name of your script is create_users . Then the following
command:

./create_users username uid gid initial_password user_information
home_directory default_shell

will create a user named smith, with UID 101, add to primary group
120, home directory /home/smith, information about the account being
"Alex Smith", with the bash shell as the default login shell and with
the initial password set to initpassvalue. A .profile file and a
.login file should automatically be copied into the home directory,
every time a user is created.

The system will incorporate the shadow password file. The password
should automatically have the default values for the following:

Any hints or examples? Thanks in advance.

David

2. SMC NIC Not Working ------Please Help!

3. ** Creating script to add new users w/o using USERADD **

4. Dial-up connection

5. Sendmail help - alias works for install-created users, does not for new users.

6. TCP/IP

7. RH7.0 Problems - new user

8. replace Sun type 6 keyboard with a "normal" keyboard?

9. Linuxconf - deprecated package RH7.1

10. Cannot configure DNS server with Linuxconf on rh7

11. RH7 missing DNS in linuxconf

12. linuxconf Q rh7.0

13. linuxconf - where in RH7.2