General discussion

Locked

Creating user in linux as Numeric Only

By malikaqib ·
I want to create users in linux as numeric (numbers only).Normally we create users as starting with alphabats.Some one told me to create alias file for that users. But is there any better way, so i can directly create users as in numerics

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Creating user in linux as Numeric Only

by spamlover In reply to Creating user in linux as ...

If you haven't tried directly editing the /etc/passwd file you might try that. At least doing it that way would bypass any limitations of the adduser command or any GUI tools for adding users.

Make sure you are superuser/root and edit the /etc/passwd file.
Each user on the system has a separate line in the file with the following format:

username:password:uid:gid:optional_info:home_dir:shell

Collapse -

Creating user in linux as Numeric Only

by malikaqib In reply to Creating user in linux as ...

The question was auto-closed by TechRepublic

Collapse -

Creating user in linux as Numeric Only

by petronil In reply to Creating user in linux as ...

yeah sure! You can directly create users in numerics through the adduser command but how about your previous users? Thus this mean that you edit manually your /etc/passwd and your /etc/shadow? If so then it requires you a lot of work to do. I advisethat you create a simple perl script to handle that task for this will minimize your work specially if you have created many users already.

Collapse -

Creating user in linux as Numeric Only

by malikaqib In reply to Creating user in linux as ...

The question was auto-closed by TechRepublic

Collapse -

Creating user in linux as Numeric Only

by Bruce Timberlake In reply to Creating user in linux as ...

You can create usernames that are just numbers; you don't need to do any aliasing or anything.

Collapse -

Creating user in linux as Numeric Only

by malikaqib In reply to Creating user in linux as ...

The question was auto-closed by TechRepublic

Collapse -

Creating user in linux as Numeric Only

by malikaqib In reply to Creating user in linux as ...

This question was auto closed due to inactivity

Back to Linux Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums