Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rate Thread Display Modes
Old 03-10-2002, 04:28 AM   #1
gowrann
Triple-A Player
 
Join Date: Mar 2002
Location: Sydney, Australia
Posts: 158
NetInfo write failed! (Operation succeeded)

"NetInfo write failed! (Operation succeeded)"

This is the error message I get when trying to create a any change in NetInfo. Unfortunately I have no NI back up to restore. It is a single domain setup.
Any solutions?
gowrann is offline   Reply With Quote
Old 03-11-2002, 11:59 PM   #2
CharlesS
Guest
 
Posts: n/a
Make sure the setuid flag of the app binary is set and that the binary is owned by root.
  Reply With Quote
Old 03-13-2002, 07:04 AM   #3
gowrann
Triple-A Player
 
Join Date: Mar 2002
Location: Sydney, Australia
Posts: 158
Charles here is a listing of the file, the owner is set to root

drwxrwxrwx 3 0 80 58 Sep 15 13:56 NetInfo Manager.app

[localhost:NetInfo Manager.app/Contents/MacOS] neilgowr% ls -ln
total 360
-rwxrwxrwx 1 0 80 180584 Feb 20 22:52 NetInfo Manager

how do I
Quote:
Make sure the setuid flag of the app binary is set

Neil
gowrann is offline   Reply With Quote
Old 03-13-2002, 09:42 AM   #4
CharlesS
Guest
 
Posts: n/a
Quote:
Originally posted by gowrann
Charles here is a listing of the file, the owner is set to root

drwxrwxrwx 3 0 80 58 Sep 15 13:56 NetInfo Manager.app

[localhost:NetInfo Manager.app/Contents/MacOS] neilgowr% ls -ln
total 360
-rwxrwxrwx 1 0 80 180584 Feb 20 22:52 NetInfo Manager

how do I

Neil

Looks like the setuid flag isn't set. Do this:

sudo chmod 4775 /Applications/Utilities/NetInfo\ Manager.app/Contents/MacOS/NetInfo\ Manager
  Reply With Quote
Old 03-14-2002, 04:16 AM   #5
gowrann
Triple-A Player
 
Join Date: Mar 2002
Location: Sydney, Australia
Posts: 158
Thumbs up

Nice one Charles this worked ! I had tried previously with Xray which failed.

The man chmod says:
"MODES
Modes may be absolute or symbolic. An absolute mode is an octal number
constructed by or-ing the following values:

4000 set-user-ID-on-execution

which I understand certain apps have to have.

But what does it mean in layman terms to have an app with setuserid set to on.

BTW I can't remember fiddling with the perms. of this app and have seen threads on other sites for users with the same prob. in NetInfo.
gowrann is offline   Reply With Quote
Old 03-14-2002, 02:26 PM   #6
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
Quote:
But what does it mean in layman terms to have an app with setuserid set to on.

if you execute an SUID file, your user ID is set to the user ID of of the file's owner. therefore, if you execute an SUID file that is owned by root, you are the superuser -- for the duration of the program.

consider:

% ll /bin/ps
-rwsr-xr-x 1 root wheel 35k Dec 20 18:36 /bin/ps

when you run ps, it needs to stick it's fingers in the kernel's process map and other things and you need root powers to get in there, so the ps runs as root. it's like a temporary battlefield promotion from grunt to general.

SGID? likewise, except the group ID becomes the group ID of the process for the command.

i think only compiled programs can be SUID. that is, shell scripts can't get special mode permissions.

don't get any wild ideas and go and make vi SUID. that would constitute a major security hole, as vi allows shell escapes. right? right.
mervTormel is offline   Reply With Quote
Old 03-15-2002, 07:41 AM   #7
gowrann
Triple-A Player
 
Join Date: Mar 2002
Location: Sydney, Australia
Posts: 158
right!
gowrann is offline   Reply With Quote
Old 03-22-2002, 08:34 PM   #8
plattapuss
Site Admin
 
Join Date: Jan 2002
Location: Montreal, Quebec
Posts: 34
NetInfo write failed! Thank you

Well, I feel a bit stupid.

I was the Sudo Editor on MacOSXhints while Rob was away a short while ago. Last week I found that my NetInfo Manager started having this exact same problem when I tried adding a new virtual domain to my laptop.

I searched everywhere. I mean everywhere, except for here in the MacOSXHints forum. I found all sorts of interesting things and even one person that came close by saying that some application had the wrong bit set but pointed the problem at other files and not NetInfo Manager itself.

So finally I thought, hey, maybe Rob's site has the solution. Not 1 minute later, my machine is happy and I feel relieved but somewhat foolish.

forums.macosxhints.com rocks. They saved my sanity tonight! Should I go on...

Thanks to all.
plattapuss is offline   Reply With Quote
Old 03-23-2002, 12:03 AM   #9
etwoy
Prospect
 
Join Date: Jan 2002
Posts: 4
Well I certainly haven't changed the flags on any of mine, and I've gotten this message straight from clean installations of OS X Server wrt to NetInfo domains.

I always assumed that it was a problem with the NetInfoManager.app, (as it has other bugs...) and as all the CLI NetInfo tools kept working properly, I was just ignoring it...

hmmm.... Will have to check this out next time I'm at work...
etwoy is offline   Reply With Quote
Old 03-23-2002, 12:16 AM   #10
plattapuss
Site Admin
 
Join Date: Jan 2002
Location: Montreal, Quebec
Posts: 34
NetInfo write failed! and 10.1.3

Is it possible that this is a bug in the 10.1.3 upgrade?

My problem occurred right after that. Along with my batter dying much more quickly on my laptop, but that is another thread to start.
plattapuss is offline   Reply With Quote
Old 03-23-2002, 12:21 AM   #11
etwoy
Prospect
 
Join Date: Jan 2002
Posts: 4
I could be wrong, but I've got a feeling I saw this at 10.1.2, as that's what OSXS was up to when I got my copies, and 10.1.3 didn't come out until later.


As an aside, I reckon NetInfoManager.app is to be avoided if you're setting up a complicated NetInfo domain. (I've got a nice four tiered structure now), because:

a) You might screw something up, and close familiarity with the CLI tools is the only way to fix it in single user mode.

b) You get a more indepth understanding of how the various facets of NetInfo work, as you're forced to be more explicit in your queries...
etwoy is offline   Reply With Quote
Old 03-23-2002, 02:25 AM   #12
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
etwoy, thanks. those are excellent points. i hope you're around to lend your expertise with more ni domain questions.
mervTormel is offline   Reply With Quote
Old 03-23-2002, 03:21 AM   #13
etwoy
Prospect
 
Join Date: Jan 2002
Posts: 4
Talking

I've actually got a site I'm planning to put up all about NetInfo and multi-tiered domains, but it was interrupted by my baby daughter who arrived a few weeks early...

Will be up within the month and will post it to macosxhints...
etwoy is offline   Reply With Quote
Old 03-23-2002, 03:39 AM   #14
CharlesS
Guest
 
Posts: n/a
Quote:
Originally posted by etwoy
I've actually got a site I'm planning to put up all about NetInfo and multi-tiered domains, but it was interrupted by my baby daughter who arrived a few weeks early...

Will be up within the month and will post it to macosxhints...

That will be extremely nice to have. Thanks!
  Reply With Quote
Old 03-23-2002, 03:52 AM   #15
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
etwoy, congrats. take care of your priorities.

i look forward to 'all about netinfo' (wow, that must be long! perhaps 'some about netinfo v1.0' for starters
mervTormel is offline   Reply With Quote
Old 03-23-2002, 04:12 AM   #16
etwoy
Prospect
 
Join Date: Jan 2002
Posts: 4
well... :)

Quote:
All about NetInfo and multi-tiered domains


well that was actually what I meant. Not "All about NetInfo" .... :-)

There are significant differences and limitations that the Apple docs don't get into, (and indeed stupid suggestions in their docs if you're planning to have more than two levels...)


oh and she's beautiful... :-)

http://homepage.mac.com/zoe_k


:-)
etwoy is offline   Reply With Quote
Old 03-23-2002, 05:17 AM   #17
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
yeah, i concur. the apple doc UnderstandingUsingNetInfo.pdf is woefully fluffy. i figured that could be summarized in about five good pages.

your new sub-domain is quite a nice structure. great node-name, too. may her bits never be scrambled.
mervTormel is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 07:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.