Sponsored Content
Full Discussion: How to install Unix on my pc
Top Forums UNIX for Dummies Questions & Answers How to install Unix on my pc Post 62546 by gjduff on Thursday 17th of February 2005 03:57:14 AM
Old 02-17-2005
useradd example

In case you have useradd, here's an example of me
using it:
Code:
[root@melvin gjduff]# /usr/sbin/useradd dingbat -G dinger -s /bin/bash -p dingbat8
[root@melvin gjduff]# passwd dingbat
Changing password for user dingbat.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

I'm adding a user named dingbat in the group dinger, and giving him
bash as a default shell.

I had to change the password. I think the -p actually takes what is
supposed to be the encrypted variation of it. No matter though.
You can just use passwd to enter it the normal way.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can we install Unix in PC or imac?

I'm a beginner in Unix OS. I really want to know what kind of hardware I need in order to install the Unix OS.(I know Linx can be installed in both Mac & PC, but not Unix) Thanks to let me ask such question here. (1 Reply)
Discussion started by: Mutsu
1 Replies

2. UNIX for Dummies Questions & Answers

Unix Install

Hi I'm a newbie here and, in Unix. I bought a book to learn the code. I have been in different websites to find information on how to install Red Hat Linux 7.2 on my system, but I may not understand what's going on. All I see on the sites is ftp sites for download but when you click on the links... (1 Reply)
Discussion started by: Millienc
1 Replies

3. UNIX for Dummies Questions & Answers

can i install UNIX beside Windows XP???

Hi guys i'm new here .. and actually i wanna anyone answer my question it's simple the question is " can i setup or install UNIX beside windows XP?" i need answer plz thanks :) (11 Replies)
Discussion started by: M_Hafez
11 Replies

4. UNIX for Dummies Questions & Answers

How to install Unix

Can anyone tell me how to install Unix. (1 Reply)
Discussion started by: hrach_gulzadyan
1 Replies

5. UNIX for Dummies Questions & Answers

How do I install Unix?

Hi, Im completely new to Unix installations, but have done some unix work so some commands are not new to me. But I would like to start my own Unix FTP server, but I have no clue where to start. I have a computer that i soon format the HD on (Was Windows,Intel computer), so I want to use... (3 Replies)
Discussion started by: helpMeGetStarte
3 Replies

6. UNIX for Dummies Questions & Answers

How do I install things on Unix?

I am really confused as to how to install a piece of software on Unix especially after having worked with Windows for over 10 years. I see the tar.gz, tar.gz2 and rpm packages. How do I install these things? Do I have to be a root to do this? If its only the root, then how do users generally... (4 Replies)
Discussion started by: Legend986
4 Replies

7. UNIX for Dummies Questions & Answers

Looking to install Unix on my Mac

I know how to install Unix or Linux on my Mac using bootcamp, I installed the Ubuntu distribution of Linux on my Mac. Basically I'm looking for advice on what OS I should learn with. I am fiercely interested in programming, and am learning C++ and Python at the moment. Anyways, everyone has... (5 Replies)
Discussion started by: Micolejr2
5 Replies

8. UNIX for Dummies Questions & Answers

Please Help I Can't Install Unix On My Machine

Hi everybody; How are you? I have a machine with these components motherboard Gigabyet processor Intel RAM Kingstone 1GB HDD Westerndigital 160GB DVD ASUS I use this machine for labs, I was running WinXP I am now taking one of Sun's exams, I formated the HDD and get... (3 Replies)
Discussion started by: katilina
3 Replies

9. UNIX for Dummies Questions & Answers

How to install Unix??

Hi Experts, I am a new born trying to start learning UNIX so please be patient. I have downloaded Free BSD 9.0 Release i386 All recently.Upon extracting it I found four Disc Image File. FreeBSD-9.0-RELEASE-i386-bootonly FreeBSD-9.0-RELEASE-i386-disc1 FreeBSD-9.0-RELEASE-i386-dvd1... (1 Reply)
Discussion started by: RishabhK
1 Replies

10. UNIX for Beginners Questions & Answers

Install git on UNIX

How can I install git on unix using wget? (7 Replies)
Discussion started by: Akash BHardwaj
7 Replies
d_passwd(4)							   File Formats 						       d_passwd(4)

NAME
d_passwd - dial-up password file SYNOPSIS
/etc/d_passwd DESCRIPTION
A dial-up password is an additional password required of users who access the computer through a modem or dial-up port. The correct pass- word must be entered before the user is granted access to the computer. d_passwd is an ASCII file which contains a list of executable programs (typically shells) that require a dial-up password and the associ- ated encrypted passwords. When a user attempts to log in on any of the ports listed in the dialups file (see dialups(4)), the login program looks at the user's login entry stored in the passwd file (see passwd(4)), and compares the login shell field to the entries in d_passwd. These entries determine whether the user will be required to supply a dial-up password. Each entry in d_passwd is a single line of the form: login-shell:password: where login-shell The name of the login program that will require an additional dial-up password. password An encrypted password. Users accessing the computer through a dial-up port or modem using login-shell will be required to enter this password before gaining access to the computer. d_passwd should be owned by the root user and the root group. The file should have read and write permissions for the owner (root) only. If the user's login program in the passwd file is not found in d_passwd or if the login shell field in passwd is empty, the user must sup- ply the default password. The default password is the entry for /usr/bin/sh. If d_passwd has no entry for /usr/bin/sh, then those users whose login shell field in passwd is empty or does not match any entry in d_passwd will not be prompted for a dial-up password. Dial-up logins are disabled if d_passwd has only the following entry: /usr/bin/sh:*: EXAMPLES
Example 1 Sample d_passwd file. Here is a sample d_passwd file: /usr/lib/uucp/uucico:q.mJzTnu8icF0: /usr/bin/csh:6k/7KCFRPNVXg: /usr/bin/ksh:9df/FDf.4jkRt: /usr/bin/sh:41FuGVzGcDJlw: Generating An Encrypted Password The passwd (see passwd(1)) utility can be used to generate the encrypted password for each login program. passwd generates encrypted pass- words for users and places the password in the shadow (see shadow(4)) file. Passwords for the d_passwd file will need to be generated by first adding a temporary user id using useradd (see useradd(1M)), and then using passwd(1) to generate the desired password in the shadow file. Once the encrypted version of the password has been created, it can be copied to the d_passwd file. For example: 1. Type useradd tempuser and press Return. This creates a user named tempuser. 2. Type passwd tempuser and press Return. This creates an encrypted password for tempuser and places it in the shadow file. 3. Find the entry for tempuser in the shadow file and copy the encrypted password to the desired entry in the d_passwd file. 4. Type userdel tempuser and press Return to delete tempuser. These steps must be executed as the root user. FILES
/etc/d_passwd dial-up password file /etc/dialups list of dial-up ports requiring dial-up passwords /etc/passwd password file /etc/shadow shadow password file SEE ALSO
passwd(1), useradd(1M), dialups(4), passwd(4), shadow(4) WARNINGS
When creating a new dial-up password, be sure to remain logged in on at least one terminal while testing the new password. This ensures that there is an available terminal from which you can correct any mistakes that were made when the new password was added. SunOS 5.11 2 Sep 2004 d_passwd(4)
All times are GMT -4. The time now is 02:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy