creating a new user


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers creating a new user
# 1  
Old 07-20-2002
creating a new user

i just installed netBSD, and i want to know how to create a new user account. i understand that netBSD doesn't come with the tools to do that, so i downloaded a user utility (mebbe i'm wrong about netBSD) but the problem is, i don't know how to read files off floppy disks. (i'm quite new to unix) could someone point me in the right direction?
# 2  
Old 07-21-2002
another question of mine is how do i use a fat formated floppy in my unix system?
# 3  
Old 07-24-2002
how to add a user.

Let me answer the easy one first. You can mount a WINdows disk as mount -f "fstype" device. Do a "man 1m mount" or "man mount" and look for a -f option for mounting a certain type of filesystem.


_____________________________________
You can do this the old-fashioned way. Also there are free add_user scripts on the web as well.

1) create the user's home directory
mkdir /home/user1

2) Assign a unique UID and pick the GID group Id that you want this person to be a member of.

You may need to edit /etc/group and add a line like users::333:

3)edit /etc/passwd.
user1Smilieasswdhere:UID:333:"user info here":/home/user1:/usr/bin/ksh

4) copy from /etc/skel to /home/user1 the config files and startup files. Or you can copy from the root user but change the PATH var so it doesn't include forbidden directories.

cp /etc/skel/* /home/user1

-r--r--r-- 1 bin bin 814 Nov 7 1997 .cshrc
-r--r--r-- 1 bin bin 347 Oct 27 1997 .exrc
-r--r--r-- 1 bin bin 341 Nov 7 1997 .login
-r--r----- 1 bin bin 445 Jun 12 2000 .profile

5) assign a passwd for the user.

passwd user1
New password:
Re-enter new password:

6) Login as the user to test the passwd.

7) Check the env for the user. PATH variable, TERM, create any aliases for common commands.



This should get you on the way. You can do a google search to check for sites that have scripts for adding users. BTW, look in /usr/local/bin or ../sbin or maybe in /usr/sbin/useradd.

Hope this is informative.








Smilie
# 4  
Old 07-27-2002
Hammer & Screwdriver

Login as root.

Use command adduser

root@localhost#: adduser test

root@localhost#Smilieasswd pass_for_test

root@localhost#:mkdir /home/test

root@localhost#:chown test /home/test

root@localhost#:chmod 755 /home/test
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Prevent user from creating new user from his login

Hi Experts, Need your support Redhat 6.5 I want to create a user with all(read, write, execute) privileges except that user should not be able to create any new user from his login to perform any task. (10 Replies)
Discussion started by: as7951
10 Replies

2. UNIX for Dummies Questions & Answers

Creating a new directory by getting input from user

Hi All, I am really new to Linux.I am trying to write a script for creating a new directory by getting input of folder name from the user.Please help me in this regard. #! /bin/bash echo "Enter name of dir":$filename mkdir -p $filename When executing this I am getting following error ... (13 Replies)
Discussion started by: Pradeep_1990
13 Replies

3. UNIX for Dummies Questions & Answers

Creating files with New User

Hello All, I just created a new user on a server running SLES 11, and I created the user using the command below: # useradd -G nagios scpuser But whenever I create a file or directory while logged in as this user it creates the file's ownership permissions as "scpuser:users" instead of it... (2 Replies)
Discussion started by: mrm5102
2 Replies

4. SuSE

creating user on SUSE Linux

Hi I need to create a user who can have access on only one folder. for example I created a user "test" . he should have access only on folder /testfolder. The problem is that the user will mostly use FileZilla to ftp his files in the testfolder. In the fileZilla , i want him to be... (21 Replies)
Discussion started by: SystemEng
21 Replies

5. Solaris

Creating user in solaris

Hi all, I logged in as root in solaris machine and made an attempt to create a user ,i am getting the following error message pls help me to resolve this issue bash-3.00# useradd -d /home/kalyan -m -s /bin/sh kalyan UX: useradd: ERROR: Unable to create the home directory: Operation not... (2 Replies)
Discussion started by: kalyankalyan
2 Replies

6. Shell Programming and Scripting

Creating user accounts

Hi, I have written a program using shell scripting. When you run the file it will asks you to enter the user name, if the user exists it says " user exists " if not it will displays like " user doesnt exist" and then asks you like " do you want to add user with options Yes or No " if you say... (1 Reply)
Discussion started by: vishwaprasad
1 Replies

7. UNIX for Dummies Questions & Answers

Creating user accounts

Hey everyone I am new to the forums and to Unix. I am currently taking a class on Unix, our teacher posed the question to us How do u create a user account without using GUI or command? We are currently running Knoppix version of Unix and for the life of me I can't figure out how this is possible.... (0 Replies)
Discussion started by: Redditt90kg
0 Replies

8. AIX

Limiting length of user in while creating user

Hi all, I am a newbe to aix 5.2. I want to specify the characters used by users while creating user in aix like specifying the length of the password should i use some sript for that if it is then please let me know how to do this if yes give me the link for the scripts. Thanks in advance ... (2 Replies)
Discussion started by: Satya Mishra
2 Replies

9. UNIX for Dummies Questions & Answers

creating a new user

I have AIX 5.1 I have created a user manually in the /etc directory. Then I created his home directory "mkdir /home/fharvey" then I changed ownership "chown fharvey /home/fharvey" set his password "passwd fharvey" When I log in as him I get "user is required to change password. "when I... (7 Replies)
Discussion started by: rocker40
7 Replies

10. UNIX for Advanced & Expert Users

creating user accounts in AIX

Hello all: I am new to UNIX and I am given the responsibility of administering a UNIX machine recently. The system is a IBM AIX 3.1. As a part of my duties I recently created some user accounts using "smit". It looked as if everything went well. But, after creating the account, I logged into... (3 Replies)
Discussion started by: pdepa
3 Replies
Login or Register to Ask a Question