LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-08-2004, 10:02 PM   #1
hindll01
LQ Newbie
 
Registered: Sep 2004
Location: New Zealand
Distribution: Fedora Core 1
Posts: 13

Rep: Reputation: 0
How to add new user to system with fullname


I am trying to add new users to the system by using a shell script.

The shell script reads the user information from a file that is formatted like this:

username:password:groupname:fullname

I have tried using (useradd -c $fullname $username) BUT

what I really need is to allow the fullname to have a space between the first and last name.

HOw do I allow spaces??
 
Old 09-08-2004, 10:13 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
quotes
 
Old 09-08-2004, 10:28 PM   #3
hindll01
LQ Newbie
 
Registered: Sep 2004
Location: New Zealand
Distribution: Fedora Core 1
Posts: 13

Original Poster
Rep: Reputation: 0
thanks a lot
"as you can tell im a beginner"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 01:14 PM
user home dir doesn't create when new user add dev_mohamed Linux - Software 3 01-12-2007 01:08 AM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 09:59 AM
about on the system side add user smallfish01 Linux - Enterprise 3 06-10-2005 11:19 AM
Samba: how to create a logon script file when i add a system user. heero82 Linux - Software 2 06-19-2003 08:29 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration