Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I usually add a user using adduser command. But are there any other steps to add a user to a system without using useradd/adduser? how can we change the default uid range?

share|improve this question

closed as not a real question by womble, MDMarra, Wesley, symcbean, voretaq7 Nov 21 '11 at 14:52

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Three off-topic votes so far. What is off topic about this question? –  John Gardeniers Aug 19 '11 at 4:40
    
For what purpose? Why does adduser not meet your requirements? What are these requirements? –  symcbean Aug 19 '11 at 12:15

1 Answer 1

up vote 5 down vote accepted

It depends on your distribution, as each has their own little niggles. On Debian, for instance, adduser is just a perl script that calls various underlying utilities like useradd, usermod, chage, and makes the home directory and copies /etc/skel into place -- all things you can do yourself if you need to. Even calling adduser is unnecessary, if you're willing to edit /etc/passwd, /etc/shadow, and so on yourself.

To address your second question (which should be a separate one), to modify the default UID range used on a Debian system you should edit /etc/adduser.conf, specifically the FIRST_UID and LAST_UID values, taking care not to overlap with other ranges.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.