Subject: Re: Newbie questions
To: Kris Lander <kris@inquo.net>
From: Johan Claesson <Johan.Claesson@uab.ericsson.se>
List: port-mac68k
Date: 07/12/1998 00:04:38
Hi Kris,
First, your problem running your newly created C-prog. The problem is that
the current working directory is not your path environment (se echo $PATH).
When ever you runs an application by only typing the name of it. The
$PATH-variable is searched for entries.
To fix this you either type ./a.out to run it, or you may add "." to your
path. Adding "." to the PATH is not a very good idea, due to security
problems, and it is better to learn to use ./ beforer running any binary that
doesn't exist in your $PATH.
Second, to make a nother user being able to become root, you must add him/her
to the group wheel. Edit /etc/group and add the requested user to this group.
The format of a group entry is: groupname:password:group id:user1:user2:etc
Ex. wheel:*:0:kris
Good Luck!
Regards Johan
Kris Lander wrote:
> Hi all, I just installed NetBSD/Mac68k on my old Macintosh IIcx, and
> while I'm familiar with Unix operating systems, I just have a few
> questions.
>
> I tried to compile a simple HelloWorld program, (I'm still learning
> C/C++, so this is a real easy one for me to write and compile). I guess
> everything compiled alright, I got an a.out file. But, when I try to run
> the program to see if it worked I get a message that says:
> a.out: Command not found.
> I checked the permissions on the file, and everything seems alright, but
> I just can't run the program. (Oh, I compiled it by using the command
> "g++ helloworld.C").
>
> Also, how do I give another user root or super user (are they the same
> thing) access? Do I just make the UID 0 (zero)?
>
> Thanks in advance for you help.
>
> Kris Lander
> kris@inquo.net