LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Other *NIX (https://www.linuxquestions.org/questions/other-%2Anix-55/)
-   -   Sudo (https://www.linuxquestions.org/questions/other-%2Anix-55/sudo-939494/)

Melensa 04-12-2012 12:25 PM

Sudo
 
Actually my question regards UNIX: sudo in MACOSX Terminal.
I want to deactivate the remote desktop management

chmod ug-s /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAgent

but Terminal answers: Operation not permitted

Is there anybody who can help me?...

Thanks
Melensa

MensaWater 04-12-2012 01:02 PM

You ask about sudo but aren't using sudo that I see.

What happens if you type:
sudo chmod ug-s /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAgent

Melensa 04-14-2012 03:31 PM

Why do you ask me what happens if I add sudo... do YOU know what happens or do you mean that I should try even it could be a terrible mistake? :-)

I know NOTHING in this field but I need to use some commands to eliminate my vulnerability to intruders. I need to tell the computer to eliminate the desktop management function.

You write:

Humility is the refuge of the incompetent.
~Nero Wolfe (Rex Stout character)

I don't need any refuge, not even humility could save me from my ignorance: I am REALLY an incompetent in this field but I need to use these commands.

Thank you for your answer

Melensa

WizadNoNext 04-15-2012 03:56 AM

I am sorry but this is linuxquestions and not macosxquestions. You should ask people, who work on you system, not people working on Linux, which is very very different.

P.S. Mac OS X have just UNIX base, most of software do not come neither from GNU nor UNIX. I have iMac G5 and it is pain in ass, cause it is different.

MensaWater 04-16-2012 08:50 AM

Quote:

Originally Posted by Melensa (Post 4652765)
Why do you ask me what happens if I add sudo... do YOU know what happens or do you mean that I should try even it could be a terrible mistake? :-)

I know NOTHING in this field but I need to use some commands to eliminate my vulnerability to intruders. I need to tell the computer to eliminate the desktop management function.

You write:

Humility is the refuge of the incompetent.
~Nero Wolfe (Rex Stout character)

I don't need any refuge, not even humility could save me from my ignorance: I am REALLY an incompetent in this field but I need to use these commands.

Thank you for your answer

Melensa

Asking people for FREE help then bitching about what they write is NOT the way to get help. :tisk:

The humility line is a quote in my signature and not something directed at you personally. If you'd bothered to look at it you'd have known that given that I attribute it to Nero Wolfe.

I ask about what happens when you type the sudo line because I don't have a system like yours to test it on. I do not knowingly try to sabotage people asking for assistance. The sudo command itself only executes other commands as root. The chmod command itself changes permissions on files. Since you asked about doing the chmod and mentioned sudo I asked you to try doing the chmod with sudo. You really didn't give enough information for anyone to help you but I made the mistake of trying anyway. I won't bother to try any further. :mad:

MensaWater 04-16-2012 08:53 AM

Quote:

Originally Posted by WizadNoNext (Post 4653100)
I am sorry but this is linuxquestions and not macosxquestions. You should ask people, who work on you system, not people working on Linux, which is very very different.

P.S. Mac OS X have just UNIX base, most of software do not come neither from GNU nor UNIX. I have iMac G5 and it is pain in ass, cause it is different.

Actually the OP posted in Other *NIX forum and since there is a UNIX base I think the Q was proper. :twocents:

The OP's response however was another matter. It often amazes me how people looking for free help somehow think they have the right to demand things. Apparently the phrase "beggars can't be choosers" is lost on the OP. :rolleyes:

WizadNoNext 04-17-2012 05:29 AM

If you want to change permissions to file you do not won, you need to do it from account, which do own this file or from root account. Easiest and fastest way is obviously using sudo. That is why, you were asked 'what happens if you use sudo'. Just add sudo in front and it will change permissions. sudo do not anything to be honest - it just call your command as root, nothing more.

cliffordw 04-18-2012 03:34 AM

Hi Melensa,

To fix the "Operation not permitted" problem, sudo is the solution, i.e. run:
sudo chmod ug-s /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAgent

This should not be necessary, though. You can simply disable this in System Preferences => Sharing => Remote Management.

One possible problem with changing the permissions, is that a future update may change these again without you knowing.

Good luck!


All times are GMT -5. The time now is 03:11 AM.