Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 10-25-2005, 11:52 AM   #1
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Rep: Reputation: 30
Another basic adduser question

I was unable to add a user during the initial Debian Sarge testing installation. All I got were errors except for the root account, so I only have a root login.

Now, I need to add a user to the Debian Sarge stable system and went to my handy-dandy Debian Reference and found another short clear-as-mud instruction which referenced (/usr/share/doc/base-passwd/users-and-groups.html) for information on setting up users and groups.

All I found was an HTML document which listed directories, devices and other acronyms calling them all groups. How can a directory or device be a group?

Just what does Debian consider to be a group?

Do I have to create groups?

How do I know what the group is allowed to do? Where are its permissions set? In MS I can set permissions by the Group or User or both.

When, where and how is a password assigned to the new user?

In the Debian Forum I found the discussion "Debian Post-Install Configuration" with an example of using adduser to be able to listen to music? That seems like a lot of work for something that should be a shared application. Anyway.

Any real life examples on how to add a new user with a password?

Old 10-25-2005, 12:16 PM   #2
Registered: Jan 2005
Location: France / Bretagne
Distribution: Debian / Gentoo
Posts: 71

Rep: Reputation: 15

on your shell you can try

$ adduser

and after you can assign password for your new user with the command
$ passwd user
where user is the name of your new user

good luck
Old 10-25-2005, 01:59 PM   #3
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
In addition to using the adduser command, reading through /etc/adduser.conf is always a good thing as you can glean a number of different things about user accounts in there.

The typical debian system is setup to use the following files to maintain their list of users/groups:

/etc/passwd: Where the username and user info is stored. Also holds information for UID and GID.
/etc/shadow: Where the passwords for the users are stored
/etc/group: Where the group names are stored.
Old 10-25-2005, 02:28 PM   #4
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848

Rep: Reputation: 30
Contrary to what GaMeS wrote, you have to be root to use 'adduser'
so it's not :

$ adduser


# adduser

Old 10-26-2005, 07:28 AM   #5
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
Referred to name_regex configuration file

I received the following error:

adduser: Please enter a username matching the regular expression configured
via the name_regex configuration variable. Use the '--force-badname'
option to relax this check or reconfigure name_regex.

I did a search and can find no such file or package as "name_regex".

What is not allowed to be used in a user name? I was only using a normal name with no special characters.

It turns out that User Names can NOT start with a capital letter???

So, I now have two new user names and passwords, all in lower case letters because I do not know what other little quirks and restrictions Debian will slam me with. I did not see any restrictions in the Debian Reference Doc.

How can this be used for secure logins? I can use any combination of letters, special characters and numbers in MS for secure user names and passwords.


Last edited by AndeAnderson; 10-26-2005 at 08:30 AM.
Old 10-26-2005, 08:44 AM   #6
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848

Rep: Reputation: 30
Perhaps is it because MS needs a higher security level ?


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
Basic C++ question oulevon Programming 1 02-16-2005 06:55 PM
Basic Question insyte Linux - Wireless Networking 4 09-16-2004 12:57 PM
very basic question Louisa Linux - Newbie 4 08-31-2003 03:05 PM
basic question jaina2 Linux - Newbie 1 07-26-2003 03:44 AM
Very basic question rajanr Linux - Newbie 2 07-23-2003 04:13 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:22 AM.

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