09-24-2009
useradd -d /home/user -m -s /bin/bash -c "Name&Surname" user
this will create new user
then
passwd user --> enter new password
then transfer owneship to new user
chown -R user /home/user
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can any one tell me if i dun want using 'useradd' command to add new user, it is have any command i can use to add a new user?and any extra step needed for my local environment? (3 Replies)
Discussion started by: foong
3 Replies
2. UNIX for Advanced & Expert Users
hi all
i am writing a script to create user and group from the input given to script
for eg. script needs to values
1. mode - 1 or 2
2. id - if mode is 1 then id should be 2 char like x1 / v1 / v2
if mode is 2 then id should be 1 char like x / v / e
from these to values group is... (1 Reply)
Discussion started by: zedex
1 Replies
3. UNIX for Dummies Questions & Answers
Hi
Can anybody explain the following shell features with example
a) Command line editing
b) filename completion
c) job control (1 Reply)
Discussion started by: skyineyes
1 Replies
4. Shell Programming and Scripting
Hello,
My team and I planing to create a new shell. We are including features like handing the "command not found" exception, etc....
1)Can you please give some suggestions on what do do while writing a new shell.....
2)can you please give me your problems with the existing shells..My... (15 Replies)
Discussion started by: nsharath
15 Replies
5. Linux
Hi,
I am new in linux. Please help for create new user and also need to give sudo access in linux box. Please help me
Now i am having new access
Thanks,
Mani (2 Replies)
Discussion started by: Mani_apr08
2 Replies
6. UNIX for Dummies Questions & Answers
Dear all,
I have a file with two columns - the first column is increasing every 50, the second column is just count (e.g. 5). However, when count is zero, no line is present.
Sample:
1950 7
2000 14
2050 7
2100 13
2150 10
2200 9
2250 7
2300 8
2350 7... (1 Reply)
Discussion started by: TheTransporter
1 Replies
7. UNIX for Dummies Questions & Answers
Dear all,
I have a file with two columns - the first column is increasing every 50, the second column is just count (e.g. 5). However, when count is zero, no line is present.
Sample:
How can I change the file so as to include lines with zero count? e.g. in the previous file to put... (4 Replies)
Discussion started by: TheTransporter
4 Replies
8. Shell Programming and Scripting
hi,
I am still a newbie on ssh but trying hard.
my friends website was hit by some virus which included a long encrypted malware code on each and every php file she had.
I was able to use sed command via ssh to remove the malware codes but now most pages don't have a opening <?php tag.
i... (8 Replies)
Discussion started by: netatma
8 Replies
USER(8) BSD System Manager's Manual USER(8)
NAME
user -- manage user login information on the system
SYNOPSIS
user add -D [options]
user add [options] user
user del -D [options]
user del [options] user
user info [options] user
user mod [options] user
DESCRIPTION
The user utility acts as a frontend to the useradd(8), usermod(8), userinfo(8), and userdel(8) commands. The utilities by default are built
with EXTENSIONS. This allows for further functionality.
For a full explanation of the options available, please see the relevant manual page.
EXIT STATUS
The user utility exits 0 on success, and >0 if an error occurs.
FILES
/etc/skel/.[A-z]* Skeleton files for new user
/etc/usermgmt.conf Configuration file for user, group(8) and the backend commands mentioned above.
SEE ALSO
chpass(1), group(5), passwd(5), usermgmt.conf(5), useradd(8), userdel(8), userinfo(8), usermod(8)
HISTORY
The user utility first appeared in NetBSD 1.5. It is based on the addnerd package by the same author.
AUTHORS
The user utility was written by Alistair G. Crooks <agc@NetBSD.org>.
BSD
November 16, 2005 BSD