1832679 Members
2773 Online
110043 Solutions
New Discussion

Re: problems whith SAMBA

 
Jairo Campana
Trusted Contributor

problems whith SAMBA

hello I want to install samba in HPUX and when I want to add to the user :

I am mapeando a unit for NT and I do not want that it requests password to me that I must do in samba (smb.conf)
# Global parameters
[global]
workgroup = XDATATIC
netbios name = sip1
server string = Samba Server SIP1
encrypt passwords = yes
password server = *
syslog = 0
log file = /var/opt/samba/log.%m
max log size = 1000
local master = No
writeable = Yes
short preserve case = No
dos filetime resolution = Yes

[reportes]
comment = File system reportes para rep1
path = /reportes

hello I want to install samba in HPUX and when I want to add to the user

#cd /opt/samba_src/samba/source/
. /smbadduser javier:javier
(both created in UNIX and NT)

I obtain the following message:
sip1 # ./smbadduser javier:javier
ypcat: the NIS domain name hasn't been set on this machine
ERROR: javier Not in passwd database SKIPPING...

sip1 #
this is so that the equipment this in way trusted:

CaraS:*:115:20:,,,:/home/CaraS:/usr/bin/sh
FrancoG:*:116:20:,,,:/home/FrancoG:/usr/bin/sh
ChavezP:*:117:20:,,,:/home/ChavezP:/usr/bin/sh
BasilioH:*:118:20:,,,:/home/BasilioH:/usr/bin/sh
guardia:*:0:3:,,,:/home/guardia:/usr/bin/sh
javier:*:122:20:,,,:/home/javier:/usr/bin/sh

thanks,
legionx
1 REPLY 1
Eugen Cocalea
Respected Contributor

Re: problems whith SAMBA

Hi,

first you will have to work a little on your posting technique.

then, 'man ypcat'.

seems like your machine is not (yet) a NIS client. to do so, you will have to have a NIS client. if you already have it, issue a

domainname

where is the NIS domain that your NIS server is serving (heh, nice phrase)

then

ypinit -c

and type the name/IP of your NIS server.

then you will have to restart inet and inetsvc services.

take a look at /etc/nsswitch.conf (or /etc/nsswitch.nis, whichever your machine uses) and make sure you take the usernames and groups from NIS.

E.
To Live Is To Learn