* useradd & dxaccounts commands
@ 1996-11-28 5:00 Aleksandar Milivojevic
1996-11-29 5:00 ` Jon Nielsen
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Aleksandar Milivojevic @ 1996-11-28 5:00 UTC (permalink / raw)
Digital Unix 4.0 have useradd and dxaccounts commands. The problem
with them is that if domainname is set, they assume that NIS is in
use, and they print error messages. If domainname is blank strig, they
assume that NIS is not in use, and they work correctly. I have
domainname set, but I don't use NIS. Since lot of applications expects
that hostname is just hostname whithout the name of domain, and that
domainname *is* set to the name of domain, I susspect that lot of
people out there have this problem (if they for this or that reason
need to use useradd instead of adduser command).
This behavior of useradd and dxaccount commands is certanly not
correct. The simple workaround would be to set domainname to blank
string before using useradd, and then recreating it after useradd has
done it's job, but this is realy a bad solution to the problem. Is
there any other workaround and/or patch for this?
--
Aleksandar Milivojeviďż˝ http://jagor.srce.hr/~alex/
e-mail: alex@srce.hr
================================ooooO=Ooooo==============================
"I believe OS/2 is destined to be the most important
operating system, and possibly program, of all time."
-- Bill Gates, OS/2 Programmer's Guide foreward, 1987
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: useradd & dxaccounts commands
1996-11-28 5:00 useradd & dxaccounts commands Aleksandar Milivojevic
@ 1996-11-29 5:00 ` Jon Nielsen
1996-11-29 5:00 ` Aleksandar Milivojevic
1996-11-30 5:00 ` Charles M Richmond
2 siblings, 0 replies; 4+ messages in thread
From: Jon Nielsen @ 1996-11-29 5:00 UTC (permalink / raw)
In article <gliv6qnr5e.fsf@regoc.srce.hr>, Aleksandar Milivojevic
<alex@srce.hr> wrote:
>Digital Unix 4.0 have useradd and dxaccounts commands. The problem
>with them is that if domainname is set, they assume that NIS is in
>use, and they print error messages. If domainname is blank strig, they
>assume that NIS is not in use, and they work correctly. I have
>domainname set, but I don't use NIS.
Extracts from the man page for domainname:
--
domainname - display or set the name of the current NIS domain for this
system
...
A domain is a logical grouping of networked-connected systems established
for the purpose of sharing a common set of NIS data files. Domains are
only used by NIS.
--
There's your answer - if you're not using NIS you shouldn't be setting the
domainname.
Jon
--
--
Jon Nielsen <jon@agric.uwa.edu.au>, +61-9-380-1813
Network/Sys Admin/Lab Manager/User Support
Faculty of Agriculture, The University of Western Australia
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: useradd & dxaccounts commands
1996-11-28 5:00 useradd & dxaccounts commands Aleksandar Milivojevic
1996-11-29 5:00 ` Jon Nielsen
@ 1996-11-29 5:00 ` Aleksandar Milivojevic
1996-11-30 5:00 ` Charles M Richmond
2 siblings, 0 replies; 4+ messages in thread
From: Aleksandar Milivojevic @ 1996-11-29 5:00 UTC (permalink / raw)
Jon Nielsen (jon@agric.uwa.edu.au) wrote:
> Extracts from the man page for domainname:
>
> --
> domainname - display or set the name of the current NIS domain for this
> system
> ...
> A domain is a logical grouping of networked-connected systems established
> for the purpose of sharing a common set of NIS data files. Domains are
> only used by NIS.
> --
>
> There's your answer - if you're not using NIS you shouldn't be setting the
> domainname.
Well, manpages differ from system to system, and on some other systems
things like DNS, sendmail etc. are also mentioned in the man page for
domainname. For example, useradd command on Solaris works if
domainname is set, so obviusly there is some better, more correct, way to
check wether NIS is in use then checking if domainname is set.
--
Aleksandar Milivojeviďż˝ http://jagor.srce.hr/~alex/
e-mail: alex@srce.hr
================================ooooO=Ooooo==============================
"I believe OS/2 is destined to be the most important
operating system, and possibly program, of all time."
-- Bill Gates, OS/2 Programmer's Guide foreward, 1987
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: useradd & dxaccounts commands
1996-11-28 5:00 useradd & dxaccounts commands Aleksandar Milivojevic
1996-11-29 5:00 ` Jon Nielsen
1996-11-29 5:00 ` Aleksandar Milivojevic
@ 1996-11-30 5:00 ` Charles M Richmond
2 siblings, 0 replies; 4+ messages in thread
From: Charles M Richmond @ 1996-11-30 5:00 UTC (permalink / raw)
Aleksandar Milivojevic wrote:
>
> Jon Nielsen (jon@agric.uwa.edu.au) wrote:
> > Extracts from the man page for domainname:
> >
> > --
> > domainname - display or set the name of the current NIS domain for this
> > system
> > ...
> > A domain is a logical grouping of networked-connected systems established
> > for the purpose of sharing a common set of NIS data files. Domains are
> > only used by NIS.
> > --
> >
> > There's your answer - if you're not using NIS you shouldn't be setting the
> > domainname.
>
> Well, manpages differ from system to system, and on some other systems
> things like DNS, sendmail etc. are also mentioned in the man page for
> domainname. For example, useradd command on Solaris works if
> domainname is set, so obviusly there is some better, more correct, way to
> check wether NIS is in use then checking if domainname is set.
>
From Ultrix domainname manpage: (note 'yp' is old name for NIS)
Domains are only used by the yellow pages (YP) service and are called
YP
domains. A YP domain is a directory in /etc/yp, established through
the
use of the domainname command, ...
From SCO domainname manpage:
domainname - set or display name of current Network Information
Service
(NIS) domain
From Linux domainname manpage:
domainname - show or set the system's NIS/YP domain name
From SunOS 4.1.4
domainname - set or display name of the current NIS domain
The Solaris man page reference to use with DNS is nonstandard , but not
surprising when you consider that the yp/nis code came from Sun.
Charlie (sometime consultant with both Digital & Sun)
--
***********************************************************************
* Charles Richmond Integrated International Systems Corporation *
* cmr@iisc.com cmr@koibito.iisc.com cmr@shore.net *
* UNIX Internals, I18N, L10N, X, Realtime Imaging, and Custom S/W *
* One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431 *
* (617) 723 7695 (617) 367 3151 FAX (617) 723 6861 *
***********************************************************************
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-11-30 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-11-28 5:00 useradd & dxaccounts commands Aleksandar Milivojevic
1996-11-29 5:00 ` Jon Nielsen
1996-11-29 5:00 ` Aleksandar Milivojevic
1996-11-30 5:00 ` Charles M Richmond
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox