Logo Hardware.com.br
Leandro S.
Leandro S. Novo Membro Registrado
6 Mensagens 0 Curtidas

Salvar profile winxp-pro servidor samba.

#1 Por Leandro S. 30/07/2004 - 13:18
Estou com um sério problema, não estou conseguindo salvar o profile de uma estação winxp-pro no servidor samba com domínio configurado tudo belezinha, a estação esta logando no dominio normalzinho, o único problema é este naum esta salvando o profile no servidor só salva na estação local.
Já coloquei logon path e [profiles] no smb.conf, já mudei a permissão da pasta para 775,770 e 777, mas nda da certo.
Ficarei muito grato.
Leandro S.
Leandro S. Novo Membro Registrado
6 Mensagens 0 Curtidas
#3 Por Leandro S.
30/07/2004 - 15:01
Já coloquei \\server\home\%u\profile, /home/profiles, \\%L\profiles\xp\%u, qual seria o certo hein. Ai meu Deus estou até perdido no meio de tantas tentativas q já fiz. Já criei também uma pasta
[profiles]
path = /home/profiles
browseable = yes
create mask = 0600
directory mask = 0700
read only = no
writable = yes
Precisa de criar esta pasta?
-------------------------------------------------------
ECS-K7VTA3V5, 1700+,256MB,40GB,RIVA TNT2
Tiago Cruz
Tiago Cruz Zumbi Registrado
10.3K Mensagens 1 Curtida
#4 Por Tiago Cruz
30/07/2004 - 15:32
A forma correta é a descrita no manual:

logon home (G)
This parameter specifies the home directory location when a Win95/98 or NT Workstation logs into a Samba PDC. It allows you to do

C:\> NET USE H: /HOME


from a command prompt, for example.


This option takes the standard substitutions, allowing you to have separate logon scripts for each user or machine.


This parameter can be used with Win9X workstations to ensure that roaming profiles are stored in a subdirectory of the user's home directory. This is done in the following way:


logon home = \\%N\%U\profile


This tells Samba to return the above string, with substitutions made when a client requests the info, generally in a NetUserGetInfo request. Win9X clients truncate the info to \\server\share when a user does net use /home but use the whole string when dealing with profiles.


Note that in prior versions of Samba, the logon path was returned rather thanlogon home. This broke net use /home but allowed profiles outside the home directory. The current implementation is correct, and can be used for profiles if you use the above trick.


This option is only useful if Samba is set up as a logon server.


Default: logon home = \\%N\%U


Example: logon home = \\remote_smb_server\%U


logon path (G)
This parameter specifies the home directory where roaming profiles (NTuser.dat etc files for Windows NT) are stored. Contrary to previous versions of these manual pages, it has nothing to do with Win 9X roaming profiles. To find out how to handle roaming profiles for Win 9X system, see the logon home parameter.

This option takes the standard substitutions, allowing you to have separate logon scripts for each user or machine. It also specifies the directory from which the "Application Data", (desktop, start menu,network neighborhood, programs and other folders, and their contents, are loaded and displayed on your Windows NT client.


The share and the path must be readable by the user for the preferences and directories to be loaded onto the Windows NT client. The share must be writeable when the user logs in for the first time, in order that the Windows NT client can create the NTuser.dat and other directories.


Thereafter, the directories and any of the contents can, if required, be made read-only. It is not advisable that the NTuser.dat file be made read-only - rename it to NTuser.man to achieve the desired effect (a MANdatory profile).


Windows clients can sometimes maintain a connection to the [homes] share, even though there is no user logged in. Therefore, it is vital that the logon path does not include a reference to the homes share (i.e. setting this parameter to \%N\%U\profile_path will cause problems).


This option takes the standard substitutions, allowing you to have separate logon scripts for each user or machine.


Note that this option is only useful if Samba is set up as a logon server.


Default: logon path = \\%N\%U\profile


Example: logon path = >\\PROFILESERVER\PROFILE\%U
Leandro S.
Leandro S. Novo Membro Registrado
6 Mensagens 0 Curtidas
#5 Por Leandro S.
30/07/2004 - 16:19
Desculpem minha amolação, mas seria possivel vc postar como seria o modo correto segundo o manual q vc citou, tendo como exemplo um dominio de nome linux, o servidor de nome server e uma estação de nome station1. E o compartilhamento [profiles] precisa de estar definido? Pois aí sim tem como eu testar lá em casa, por volta das 18:30, pois estou no serviço e aki naum tem domínio e nem servidor linux.
-------------------------------------------------------
ECS-K7VTA3V5, 1700+,256MB,40GB,RIVA TNT2
Leandro S.
Leandro S. Novo Membro Registrado
6 Mensagens 0 Curtidas
#7 Por Leandro S.
30/07/2004 - 19:15
Vejam meu smb.conf, pois ainda naum consegui:
# Global parameters
[global]
workgroup = linux
netbios name = server
server string = Servidor SAMBA
security = user
OS level = 80
domain logons = Yes
preferred master = True
domain master = True
nt acl support = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
logon script = %U.bat
logon path = \\%N\profiles\%U

#Configuração de log
#log individual de cada maquina
#log file = /var/log/samba/%m.log
#log geral do dominio
log file = /var/log/samba/bytelink.log
log level = 1
max log size = 30

encrypt passwords = yes
smb passwd file = /etc/smbpasswd
unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %nn *Retype*new*password* %nn
passwd:*all*authentication*tokens*updated*successfully

admin users = root, maicon, lele, jose

[profiles]
path = /profiles
browseable = yes
create mask = 0777 # so para efeito de teste eu coloquei esta permissao
directory mask = 0777
read only = no
writable = yes

[homes]
comment = Home do Usuario
writable = yes
browseable = No
available = yes

[netlogon]
path = /home/netlogon
read only = yes
browseable = no
available = yes
[www]
path = /var/www
writable = yes
browseable = no
available = yes
[public]
path = /var/public
public = yes
only guest = yes
writable = yes
printable = no
[zip]
path = /mnt/zip
writable = yes
browseable = yes
available = yes
available = yes
-------------------------------------------------------
ECS-K7VTA3V5, 1700+,256MB,40GB,RIVA TNT2
© 1999-2024 Hardware.com.br. Todos os direitos reservados.
Imagem do Modal