adduser desabilitando login

1. adduser desabilitando login

Leoncio Medeiros Macambira
LMM

(usa Conectiva)

Enviado em 23/01/2006 - 11:56h

bom dia,
Gostaria de saber como cadastrar usuarios sem possibilidade de login e sem diretorio home.
O sistema pede um (UID) e nao sei qual colocar.
E se deixo em branco acontece isso:
create-home leoncio

Login name for new user: --disabled-login

User ID ('UID') [ defaults to next available ]:1
- That UID is already in use;please choose another
User ID ('UID') [ defaults to next available ]:2
- That UID is already in use; please choose another
User ID ('UID') [ defaults to next available ]: 4
- That UID is already in use; please choose another
User ID ('UID') [ defaults to next available ]: 5

Initial group [ users ]: 1

Additional groups (comma separated) []:

Home directory [ /home/--disabled-login ]

Shell [ /bin/bash ]

Expiry date (YYYY-MM-DD) []:

New account will be created as follows:

---------------------------------------
Login name.......: --disabled-login
UID..............: [ Next available ]
Initial group....: 1
Additional groups: [ None ]
Home directory...: /home/--disabled-login
Shell............: /bin/bash
Expiry date......: [ Never ]

This is it... if you want to bail out, hit Control-C. Otherwise, press
ENTER to go ahead and make the account.


Creating new account...


/usr/sbin/useradd: invalid option -- -
usage: useradd [-u uid [-o]] [-g group] [-G group,...]
[-d home] [-s shell] [-c comment] [-m [-k template]]
[-f inactive] [-e expire ] [-p passwd] name
useradd -D [-g group] [-b base] [-s shell]
[-f inactive] [-e expire ]
- Error running useradd command -- account not created!
(cmd: /usr/sbin/useradd -d /home/--disabled-login -m -g 1 -s /bin/bash --disabled-login)
[email protected]:~#



  


2. admuser ou user-admin

Leoncio Medeiros Macambira
LMM

(usa Conectiva)

Enviado em 24/01/2006 - 10:02h

Bom dia,
Alguém conhece outra maneira de configurar os usuários através de acesso remoto ou utilitários?
obrigado,
Leo







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts