* shell tools for addding/deleting users?
@ 1999-01-09 18:15 Chris Price
1999-01-09 21:46 ` Michal Jaegermann
0 siblings, 1 reply; 2+ messages in thread
From: Chris Price @ 1999-01-09 18:15 UTC (permalink / raw)
To: axp-list
Hi;
I am not running X in a system doe to resource constraints, and
would like to have a tool that interactively adds users, UID, GID, passwd,
etc..
I d/l'ded the adduser-shadow tools from sunsite,unc (I understand
that they are/were a part of the Slakware distro at one point) and tried
to compile. Here's where I had problems:
gcc -g -Wall -o adduser.o -c adduser.c
adduser.c:435: warning: return type of `main' is not `int'
gcc adduser.o -o adduser-1.5
adduser.o: In function `main':
/root/adduser-shadow-1.6/adduser.c:690: undefined reference to `crypt'
/root/adduser-shadow-1.6/adduser.c:690: undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [adduser] Error 1
I guess myy first question is what teh status of the 'crypt()'
call is on AXP. My first guess would be that it *should* work fine as
the passwd command uses the crypt() call (do4es it not?).
I dunno. I could really use this package (or one similar) to do
an interactive user addition without having to run x on this server
system.
Any input you can provide is really appreciated...
Chris
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: shell tools for addding/deleting users?
1999-01-09 18:15 shell tools for addding/deleting users? Chris Price
@ 1999-01-09 21:46 ` Michal Jaegermann
0 siblings, 0 replies; 2+ messages in thread
From: Michal Jaegermann @ 1999-01-09 21:46 UTC (permalink / raw)
To: axp-list; +Cc: cprice
Chris Price wrote:
>
>
> and tried
> to compile. Here's where I had problems:
>
> adduser.o: In function `main':
> /root/adduser-shadow-1.6/adduser.c:690: undefined reference to `crypt'
> /root/adduser-shadow-1.6/adduser.c:690: undefined reference to `crypt'
> collect2: ld returned 1 exit status
> make: *** [adduser] Error 1
...
> Any input you can provide is really appreciated...
Add '-lcrypt' to a list of libraries you are linking. This is not
Alpha; this is glibc on any platform and the real reason behind
this are ITAR regulations we all love so deeply.
An old Slackware distribution was using libc5, where crypt functions
were not split into a separate library, and yes, C-standard
**requires** for 'main()' to return 'int'.
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-01-09 22:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-09 18:15 shell tools for addding/deleting users? Chris Price
1999-01-09 21:46 ` Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox