|
|
#1 |
|
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? |
|
|
|
|
|
#2 |
|
Guest
Posts: n/a
|
Make sure the setuid flag of the app binary is set and that the binary is owned by root.
|
|
|
|
#3 | |||||||||||||||||||
|
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
Neil |
|||||||||||||||||||
|
|
|
|
|
#4 | |||||||||||||||||||
|
Guest
Posts: n/a
|
Looks like the setuid flag isn't set. Do this: sudo chmod 4775 /Applications/Utilities/NetInfo\ Manager.app/Contents/MacOS/NetInfo\ Manager |
|||||||||||||||||||
|
|
|
#5 |
|
Triple-A Player
Join Date: Mar 2002
Location: Sydney, Australia
Posts: 158
|
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. |
|
|
|
|
|
#6 | |||||||||||||||||||
|
League Commissioner
Join Date: Jan 2002
Posts: 5,536
|
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. |
|||||||||||||||||||
|
|
|
|
|
#7 |
|
Triple-A Player
Join Date: Mar 2002
Location: Sydney, Australia
Posts: 158
|
right!
|
|
|
|
|
|
#8 |
|
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. |
|
|
|
|
|
#9 |
|
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... |
|
|
|
|
|
#10 |
|
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. |
|
|
|
|
|
#11 |
|
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... |
|
|
|
|
|
#12 |
|
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.
|
|
|
|
|
|
#13 |
|
Prospect
Join Date: Jan 2002
Posts: 4
|
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... |
|
|
|
|
|
#14 | |||||||||||||||||||
|
Guest
Posts: n/a
|
That will be extremely nice to have. Thanks! |
|||||||||||||||||||
|
|
|
#15 |
|
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
|
|
|
|
|
|
#16 | |||||||||||||||||||
|
Prospect
Join Date: Jan 2002
Posts: 4
|
well... :)
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 :-) |
|||||||||||||||||||
|
|
|
|
|
#17 |
|
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. |
|
|
|
![]() |
|
|