Ola Gustavo,
Fiz o teste que vc pediu, mas sem sucesso.
Verificando o log, o meu problema parece estar justamente no script para
inserir o micro XP no domínio.
Se eu executo a linha: add machine script =
adduser --force-badname --no-create-home --disabled-login --disabled-password
%m$; smbpasswd -am %m
Obtenho:
tail -f /var/log/samba/estacaoxp.log
Unknown option: am
[2008/03/12 13:12:34, 0] passdb/pdb_interface.c:pdb_default_create_user(368)
_samr_create_user: Running the command
`adduser --force-badname --no-create-home --disabled-login --disabled-password
estacaoxp$; smbpasswd -am estacaoxp' gave 1
Unknown option: m
[2008/03/12 13:15:45, 0] passdb/pdb_interface.c:pdb_default_create_user(368)
_samr_create_user: Running the command
`adduser --force-badname --no-create-home --disabled-login --disabled-password
estacaoxp$; smbpasswd -a -m estacaoxp' gave 1
Unknown option: m
[2008/03/12 13:16:26, 0] passdb/pdb_interface.c:pdb_default_create_user(368)
_samr_create_user: Running the command
`adduser --force-badname --no-create-home --disabled-login --disabled-password
estacaoxp$; smbpasswd -a -m estacaoxp' gave 1
Se eu executo a linha: add machine script = /usr/sbin/useradd -d
/dev/null -c %m -m -s /bin/false %m$; smbpasswd -am %m
cat /var/log/samba/winxp.log
/usr/sbin/useradd: invalid option -- a
Usage: useradd [options] LOGIN
Options:
-b, --base-dir BASE_DIR base directory for the new user account
home directory
-c, --comment COMMENT set the GECOS field for the new user account
-d, --home-dir HOME_DIR home directory for the new user account
-D, --defaults print or save modified default useradd
configuration
-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
-f, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-g, --gid GROUP force use GROUP for the new user account
-G, --groups GROUPS list of supplementary groups for the new
user account
-h, --help display this help message and exit
-k, --skel SKEL_DIR specify an alternative skel directory
-K, --key KEY=VALUE overrides /etc/login.defs defaults
-m, --create-home create home directory for the new user
account
-o, --non-unique allow create user with duplicate
(non-unique) UID
-p, --password PASSWORD use encrypted password for the new user
account
-r, --system create a system account
-s, --shell SHELL the login shell for the new user account
-u, --uid UID force use the UID for the new user account
[2008/03/12 13:39:39, 0] passdb/pdb_interface.c:pdb_default_create_user(368)
_samr_create_user: Running the command `/usr/sbin/useradd -d /dev/null -c
winxp -m -s /bin/false winxp$; smbpasswd -am winx
p' gave 2
Segue abaixo o smb.conf:
[global]
workgroup = VINI
log file = /var/log/samba/%m.log
max log size = 200
hosts allow = 192.168.0. 127.
map to guest = bad user
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
keepalive = 0
read raw = yes
write raw = yes
deadtime = 0
getwd cache = yes
local master = yes
os level = 200
logon drive = G:
domain master = yes
preferred master = yes
domain logons = yes
logon script = %u.ba
add machine script = /usr/sbin/useradd -d /dev/null -c %m -m -s /bin/false
%m$; smbpasswd -am %m
#add machine script =
adduser --force-badname --no-create-home --disabled-login --disabled-password
%m$; smbpasswd -am %m
Marcus Vinicius Gonçalves
Suporte em Informática
Linux user 228081
----- Original Message -----
From: "Gustavo { Ozzy }" <[EMAIL PROTECTED]>
To: "imvinfo" <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2008 8:13 AM
Subject: Re: (linux-br) xp no samba
> Bom dia.
>
> Não sei se é seu caso, mas tente adicionar ao samba um usuário que você
> tem no seu linux (que tem q ser o mesmo do windows):
>
> >>> smbpasswd -a <usuario>
>
---------------------------------------------------------------------------
Esta lista é patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br
Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utilização da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html