Tux

...making Linux just a little more fun!

sudo in nis

baskar baskar [baskarkpm at yahoo.co.in]
Tue, 28 Nov 2006 16:22:25 +0000 (GMT)

i have configured nis with solaris and linux boxes

i have done automount with sudo

it works in all solaris boxes in linux boxes it displays cannot execute binary file

is there any other way to do sudo in nis

send any documents with sudo in nis.

thanks in advance

Regards

Baskar.N


Top    Back


Thomas Adam [thomas.adam22 at gmail.com]
Tue, 28 Nov 2006 18:37:23 +0000

On Tue, 28 Nov 2006 16:22:25 +0000 (GMT) baskar baskar <baskarkpm@yahoo.co.in> wrote:

> i have configured nis with solaris and linux boxes
> i have done automount with sudo
> it works in all solaris boxes in linux boxes it displays cannot execute
> binary file
> 
> is there any other way to do sudo in nis
> send any documents with sudo in nis.

What you're seeing there is a difference in one of the C lib calls (I forget which -- use strace to find out). I suspect there isn't an easy way unless there's a wrapper library for it.

-- Thomas Adam

-- 
ThisWindow (thomas_adam) Destroy

Top    Back


Benjamin A. Okopnik [ben at linuxgazette.net]
Tue, 28 Nov 2006 13:04:11 -0500

On Tue, Nov 28, 2006 at 06:37:23PM +0000, Thomas Adam wrote:

> On Tue, 28 Nov 2006 16:22:25 +0000 (GMT) baskar baskar
> <baskarkpm@yahoo.co.in> wrote:
> 
> > i have configured nis with solaris and linux boxes
> > i have done automount with sudo
> > it works in all solaris boxes in linux boxes it displays cannot execute
> > binary file
> > 
> > is there any other way to do sudo in nis
> > send any documents with sudo in nis.
> 
> What you're seeing there is a difference in one of the C lib calls (I
> forget which -- use strace to find out).  I suspect there isn't an easy
> way unless there's a wrapper library for it.

Also, "Cannot execute binary file" is usually a response to trying to exec a non-Linux executable in Linux. You might want to check exactly what is being executed as you call 'automount'; you may have, for example, copied something from your Solaris boxes into your Linux machines. As Thomas mentioned, 'strace' is your friend.

-- 
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *

Top    Back


Faber J. Fedor [faber at linuxnj.com]
Tue, 28 Nov 2006 16:30:23 -0500

On 28/11/06 13:04 -0500, Benjamin A. Okopnik wrote:

> As Thomas mentioned, 'strace' is your friend.

I was teaching a Linux class to a bunch of Windows C++ developers a while back. When I showed them strace, their eyes got wide. When I showed them how to strace an already running program, their jaws dropped. The lead developer said "I spent the last three days rewriting my app to do that to trace a bug!"

There are times I think Windows developers don't truly grok computers. :-)

-- 
 
Regards,
 
Faber Fedor
President
Linux New Jersey, Inc.
908-320-0357
800-706-0701


Top    Back


Benjamin A. Okopnik [ben at linuxgazette.net]
Tue, 28 Nov 2006 16:45:59 -0500

On Tue, Nov 28, 2006 at 04:30:23PM -0500, Faber Fedor wrote:

> On 28/11/06 13:04 -0500, Benjamin A. Okopnik wrote:
> > As Thomas mentioned, 'strace' is your friend.
> 
> I was teaching a Linux class to a bunch of Windows C++ developers a
> while back.  When I showed them strace, their eyes got wide.  When I
> showed them how to strace an already running program, their jaws
> dropped.  The lead developer said "I spent the last three days rewriting
> my app to do that to trace a bug!"
> 
> There are times I think Windows developers don't truly grok computers.
> :-)

Well, duh. Otherwise, they'd hear the horrible screams of the tortured electrons and feel the suffering of the innocent CPU cycles as they are mercilessly mangled by their OS of choice. No one could possibly grok and withstand such horror.

Apropos of nothing, I wonder if drinking those 8 cups of double espresso this morning has had any effect. Other than making my eyebrows climb to the back of my head, I mean.

-- 
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *

Top    Back