HELP, how can i create user with only numbers????

Hello,

i am trying to create some user with only numbers and i cant…

Opensuse tell me that i need that the user start with a letter or “_”…

How can i create the user!!! i need :frowning:

thanks

Well you go through
yast–>Manage user and group

You will write a difficult name and a password including letters and numbers.

Thanks for you reply.

However, my user must be “22222” only “22222”… but i receive this error:

http://i53.tinypic.com/nnw51l.jpg

I dont want other username!! i want only “22222”. what can i do?

In my opinion this username is not acceptable try other

i know that… but i think that it must have one possibility to do it.

More help pls!!

You can’t. Because in various programs, if you give a user id that is all digits, the program assumes that it is the numeric ID of the account. Hence to avoid such hassles, such user ids are forbidden.

This is not possible. Users are already ‘numbers’. What counts for the systems are not user names but user numbers (UID) and not group names but group numbers (GID).

If you want to see your UID, just type the following command in a terminal:

id -u

Now if you had a user John with UID 22222, you could type for example :

chown 22222 somefile

to change the ownership of “somefile”, so that it would belong to John. Or you could type:

chown John somefile

which has the same effect. How could it work if you had a user called “22222”?
The only thing you can do is give your user the UID 22222.

dubois1 wrote:
> However, my user must be “22222” only “22222”…

two2222 works…

or two2two2two…

or twentytwothousand,twohundredtwentytwo should work…

what is the problem? :wink:


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
Be it ever so humble, there is no place like 127.0.0.1.

And so does “zzzzz” with a curly font. :wink:

I have to connect a vol iscsi… this vol have permission already defined… For example, one folder with propetary 22222.

But it isnt the problem, the problem is that i need that i can modify this folder through SAMBA and to define user in SAMBA you need that it is defined in LINUX.

For example, in samba my logon “juan” (with uid 22222) and pw “xxx”, i cant write in this folder…

i dunno if i explain correctly

ken yap wrote:

>
> You can’t. Because in various programs, if you give a user id that is
> all digits, the program assumes that it is the numeric ID of the
> account. Hence to avoid such hassles, such user ids are forbidden.
>
>
Just to support that.
Not only in various programs but also in the linux system (and as far as I
remember in every unix like bsd) itself.
man useradd clearly tells

The account name must begin with an alphabetic character and the rest of
the string should be from the POSIX portable character class ([A-Za-z_][A-
Za-z0-9_-.]*[A-Za-z0-9_-.$]).

I would be very surprised if there is a way to circumvent that.


openSUSE 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.5 | GeForce
9600 GT | 4GB Ram
openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | KDE 4.5 | Quadro FX
3600M | 4GB Ram

dubois1 wrote:
> But it isnt the problem, the problem is that i need that i can modify
> this folder through SAMBA and to define user in SAMBA you need that it
> is defined in LINUX.

how many times do you have to be told it is not possible to have a
user ID in Linux like 22222?

instead, you will have to change the other side of the SAMBA fence…

and, if you can’t change the other side, you can thank the kind folks
in Redmond who knew it impossible to have a Linux ID like 2Anything
when they later ‘innovated’ their active directory rules as they did
to make it as difficult as possible for folks with an MS nose ring to
interact with any non-MS system…

it is called “customer lock in” and it is a central and consistent
feature of MS software…


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
Be it ever so humble, there is no place like 127.0.0.1.

That sounds like the solution, if the ISCSI permission is 22222 for userid, group, etc, but that’s not true of Linux which only uses 4 characters for “sguo”.
You need to determine the ISCSI folder permissions are to Samba.

Assuming you installed ISCSI support correctly on Linux, and correctly connected to the ISCSI folder, don’t you have to login to ISCSI anyway using the 22222 login name for ISCSI? You see the ISCSI folder and when you access it you must then login using that 22222 login name? Not a Samba or Linux login?

In Samba, you’re also allowed to create user groups, and users and grant permissions of shared Samba folders to those groups.
You can also map a user to a Linux user,


username map = /etc/users.map

### create umasks and directory masks
[SmallGroup]
   comment = Small Share - Few Users
   path = /samba/smallgroup
   read only = No
   guest ok = No
   browseable = Yes
   create mask = 0666
   directory mask = 0777
**   valid users = peter, paul, mary**

/etc/users.map would contain something like:

root = administrator
xyz=@abc

On 01/20/2011 10:07 AM, DenverD wrote:
> dubois1 wrote:
>> But it isnt the problem, the problem is that i need that i can modify
>> this folder through SAMBA and to define user in SAMBA you need that it
>> is defined in LINUX.
>
> how many times do you have to be told it is not possible to have a
> user ID in Linux like 22222?
>
> instead, you will have to change the other side of the SAMBA fence…
>
> and, if you can’t change the other side, you can thank the kind folks
> in Redmond who knew it impossible to have a Linux ID like 2Anything
> when they later ‘innovated’ their active directory rules as they did
> to make it as difficult as possible for folks with an MS nose ring to
> interact with any non-MS system…
>
> it is called “customer lock in” and it is a central and consistent
> feature of MS software…

You CAN have a User Id (also known as UID) of 22222. You cannot have a User NAME
that starts with a number.

Using YaST => Security and Users => User and Group Management, use “Add” to
create a new user name. After you enter the name and password information, click
on the “Details” tab. There you can enter any UID that you want. Once you log
into this account, you should be able to access the network drive.

thanks all for your replies.

I know SAMBA, but the problem is that if i create user “Juan” with uid “22222” and in the smb.conf i put valid user: juan. When i connect from windows XP, the user that will be “juan”. Consequently, when i try write from windows XP i am doing with user “juan” who hasnt permission (is juan, not 22222)…

Then, i will leave opensuse :frowning: do you know if fedora can create user with only numbers? (red hat yes, but i have problem with hyper-v)

Regards,
thanks all

dubois1 wrote:

> do you know if fedora can create user with only numbers?

this is not a limitation of openSUSE, it is true for all Linux
distributions that it is impossible to have a user named 12345, or
even 2juan…the first character must be a letter

> (red hat yes, but i have problem with hyper-v)

since Red Hat is also Linux it has the same user name rule…

perhaps something is amiss in the way you have setup your openSUSE box
to allow ‘juan’ permission to read/write ?? (openSUSE will not allow a
user named ‘22222’ to read/write, but it WILL allow ‘juan’ with a UID
of 22222)


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
Be it ever so humble, there is no place like 127.0.0.1.

http://img810.imageshack.us/img810/6360/22222h.png

Without tricks or manipulation!!! (Actually I intended to prove the opposite).

  • It doesn’t mean that you should do it either!

This is OT but what Terminal Emulator is that?

Thanks

This is aterm … old and not UTF-8 compatible… but I’ve been using it for so many years and I still like it (even if the cursor keys don’t work with ncurses programs, such as yast, alsamixer, etc). I replaced it progressively with urxvt.

AfterStep - Aterm : The AfterStep Terminal Emulator

I use it under openSUSE too:

uhura:/usr/packages # zypper info aterm
Loading repository data...
Reading installed packages...


Information for package aterm:

Repository: @System
Name: aterm
Version: 1.0.1-1.3
Arch: x86_64
Vendor: obs://build.opensuse.org/openSUSE:Factory:Contrib
Installed: Yes
Status: up-to-date
Installed Size: 256.0 KiB
Summary: A terminal emulator with transparency support
Description: 
aterm is the X Terminal Emulator. Originated from rxvt 2.4.8 it
strives to provide user with complete control over its look. Features
include fast transparency with shading and tinting, NeXTish scrollbar,
fading when unfocused and more.

Great, thanks much for that :slight_smile: