Re: xterm operation not permitted

2020-02-13 Thread Dr. Burkhard Schmidt via X11-users
Hello,

meanwhile the xterm problem is discussed since quite a while — it’s time to 
give an explanation:

Indeed giving Full Disk Access to /bin/bash is the correct solution. Why? Well, 
assuming the standard location for XQuartz, look at 
/Applications/Utilities/XQuartz.app/Contents/Info.plist. Under the key 
CFBundleExecutable you will find the value X11 which is 
/Applications/Utilities/XQuartz.app/Contents/MacOS/X11. The command „file 
/Applications/Utilities/XQuartz.app/Contents/MacOS/X11“ returns 
„/Applications/Utilities/XQuartz.app/Contents/MacOS/X11: Bourne-Again shell 
script text executable, ASCII text“, so X11 is actually not a binary but a 
shell script. Open it with your favourite text editor. The first line reads 
„#!/bin/bash“, so eventually /bin/bash is executed upon opening 
(double-clicking) XQuartz. All further X11 processes are child processes to it 
and inherit the Full Disk Access right.

Best regards,
Burkhard.

___
Dr. Burkhard Schmidt * 
Max-Planck-Institut für chemische Physik fester Stoffe
Nöthnitzer Str. 40 * 01187 Dresden * Tel. +49 351 4646-2235

> Am 12.02.2020 um 16:24 schrieb Jamie Kennea via X11-users 
> :
> 
> I can confirm that this solution works for me also.
> 
> No idea why, as I too use tcsh as my default shell, and the default Catalina 
> shell is zsh, but whatever, I can now enter my download folder on a xterm 
> again, so great.
> 
> Jamie
> 
> 
>> On Feb 7, 2020, at 5:40 AM, Ben Kilminster via X11-users 
>>  wrote:
>> 
>> Hi,
>> 
>> I found a solution that worked, which was recommended on the "macOS 
>> Catalina" forum at discussions.apple.com :  
>> https://discussions.apple.com/thread/251027260?answerId=252097327022
>> 
>> The solution is to give "Full Disk Access" to /bin/bash.  [1]
>> 
>> But I don't know why it works, since I in fact use tcsh, and neither does 
>> the person who offered the solution. 
>> 
>> [1] /bin is hidden to us by OS X, so one needs to navigate to "Macintosh HD" 
>> and then type "command+shift" plus the " . " symbol to make the directory 
>> visible. 
>> 
>> 
>> Best,
>> Ben
>> 
>> 
>> 
>>> On Feb 5, 2020, at 5:10 PM, Ben Kilminster  
>>> wrote:
>>> 
>>> Hello, 
>>> 
>>> I'm on a Mac  (Mac Catalina 10.15.2, XQuartz 2.7.11).
>>> 
>>> The problem is using the xterm provided by XQuartz, I no longer have 
>>> permission to look in my directories :
>>> Wed 16:59 [bjk] ls ~/Documents/
>>> ls: : Operation not permitted
>>> 
>>> I found a solution recommended online, which is :
>>> 1) System Preferences -> Security & Privacy -> Privacy -> "Full Disk 
>>> Access" 
>>> 2) Unlock then add "Applications/Utilities/XQuartz.app"
>>> 3) Restart everything.
>>> 
>>> However, I still get the same error.  
>>> 
>>> The other "Terminal" program still works, so this is not fatal.  
>>> But right now XQuartz is not usable for me.  Suggestions ?
>>> 
>>> Best,
>>> Ben
>>> 
>>> p.s. Apologies if I am posting to the wrong forum or should have found the 
>>> answer to this somewhere online. 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> X11-users mailing list  (X11-users@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription: 
>> https://lists.apple.com/mailman/options/x11-users/jamie%40pompey.org
>> 
>> This email sent to ja...@pompey.org
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> X11-users mailing list  (X11-users@lists.apple.com)
> Help/Unsubscribe/Update your Subscription: 
> https://lists.apple.com/mailman/options/x11-users/bs%40cpfs.mpg.de
> 
> This email sent to b...@cpfs.mpg.de



smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-12 Thread Jamie Kennea via X11-users
I can confirm that this solution works for me also.

No idea why, as I too use tcsh as my default shell, and the default Catalina 
shell is zsh, but whatever, I can now enter my download folder on a xterm 
again, so great.

Jamie


> On Feb 7, 2020, at 5:40 AM, Ben Kilminster via X11-users 
>  wrote:
> 
> Hi,
> 
> I found a solution that worked, which was recommended on the "macOS Catalina" 
> forum at discussions.apple.com :  
> https://discussions.apple.com/thread/251027260?answerId=252097327022
> 
> The solution is to give "Full Disk Access" to /bin/bash.  [1]
> 
> But I don't know why it works, since I in fact use tcsh, and neither does the 
> person who offered the solution. 
> 
> [1] /bin is hidden to us by OS X, so one needs to navigate to "Macintosh HD" 
> and then type "command+shift" plus the " . " symbol to make the directory 
> visible. 
> 
> 
> Best,
> Ben
> 
> 
> 
>> On Feb 5, 2020, at 5:10 PM, Ben Kilminster  
>> wrote:
>> 
>> Hello, 
>> 
>> I'm on a Mac  (Mac Catalina 10.15.2, XQuartz 2.7.11).
>> 
>> The problem is using the xterm provided by XQuartz, I no longer have 
>> permission to look in my directories :
>> Wed 16:59 [bjk] ls ~/Documents/
>> ls: : Operation not permitted
>> 
>> I found a solution recommended online, which is :
>> 1) System Preferences -> Security & Privacy -> Privacy -> "Full Disk Access" 
>> 2) Unlock then add "Applications/Utilities/XQuartz.app"
>> 3) Restart everything.
>> 
>> However, I still get the same error.  
>> 
>> The other "Terminal" program still works, so this is not fatal.  
>> But right now XQuartz is not usable for me.  Suggestions ?
>> 
>> Best,
>> Ben
>> 
>> p.s. Apologies if I am posting to the wrong forum or should have found the 
>> answer to this somewhere online. 
>> 
>> 
>> 
>> 
>> 
>> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> X11-users mailing list  (X11-users@lists.apple.com)
> Help/Unsubscribe/Update your Subscription: 
> https://lists.apple.com/mailman/options/x11-users/jamie%40pompey.org
> 
> This email sent to ja...@pompey.org

 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-07 Thread David Ledger via X11-users

On 2020-02-07 08:44, Ben Kilminster wrote:



On 2020-02-05 16:10, Ben Kilminster via X11-users wrote:

Hello,
I'm on a Mac  (Mac Catalina 10.15.2, XQuartz 2.7.11).
The problem is using the xterm provided by XQuartz, I no longer have 
permission to look in my directories :

Wed 16:59 [bjk] ls ~/Documents/
ls: : Operation not permitted
I found a solution recommended online, which is :
1) System Preferences -> Security & Privacy -> Privacy -> "Full Disk 
Access"

2) Unlock then add "Applications/Utilities/XQuartz.app"
3) Restart everything.
However, I still get the same error.
The other "Terminal" program still works, so this is not fatal.
But right now XQuartz is not usable for me.  Suggestions ?


It look like you are either not *who* you think you are or not *where* 
you think you are.


In both of a fresh Terminal and a fresh xterm, do:

$ pwd
$ id
$ echo $0
$ echo $SHELL
$ echo ~
$ echo $HOME

They should match between the Terminal and xterm environments.

Whichever terminal (lower 't') you use it's the shell that does the 
work not the terminal.


David



Hello David,

Unfortunately, both agree.
There are plenty of other ideas though, and I will go through them all.


I wonder if it's anything to do with Sandboxing. It's something I know 
virtually nothing about.


David




___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-07 Thread Fco. Javier Modrego via X11-users
Here https://discussions.apple.com/thread/251065137 there is another solution 
worth to try…



 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-07 Thread Ben Kilminster via X11-users
Hi,

I found a solution that worked, which was recommended on the "macOS Catalina" 
forum at discussions.apple.com :  
https://discussions.apple.com/thread/251027260?answerId=252097327022

The solution is to give "Full Disk Access" to /bin/bash.  [1]

But I don't know why it works, since I in fact use tcsh, and neither does the 
person who offered the solution. 

[1] /bin is hidden to us by OS X, so one needs to navigate to "Macintosh HD" 
and then type "command+shift" plus the " . " symbol to make the directory 
visible. 


Best,
Ben



> On Feb 5, 2020, at 5:10 PM, Ben Kilminster  
> wrote:
> 
> Hello, 
> 
> I'm on a Mac  (Mac Catalina 10.15.2, XQuartz 2.7.11).
> 
> The problem is using the xterm provided by XQuartz, I no longer have 
> permission to look in my directories :
> Wed 16:59 [bjk] ls ~/Documents/
> ls: : Operation not permitted
> 
> I found a solution recommended online, which is :
> 1) System Preferences -> Security & Privacy -> Privacy -> "Full Disk Access" 
> 2) Unlock then add "Applications/Utilities/XQuartz.app"
> 3) Restart everything.
> 
> However, I still get the same error.  
> 
> The other "Terminal" program still works, so this is not fatal.  
> But right now XQuartz is not usable for me.  Suggestions ?
> 
> Best,
> Ben
> 
> p.s. Apologies if I am posting to the wrong forum or should have found the 
> answer to this somewhere online. 
> 
> 
> 
> 
> 
> 

 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-07 Thread Ben Kilminster via X11-users
Hi John,

There is no "XTerm" app visible anywhere. 

Best,
Ben


> On Feb 5, 2020, at 9:51 PM, John Francini  wrote:
> 
> Another thing to try. 
> 
> Follow the steps you did earlier for adding XQuartz but instead add the XTerm 
> app. The difference here is that you are adding the app that actually owns 
> the child processes - which isn't XQuartz, but is XTerm.
> 
> Just my $0.02.
> 
> John
> 
> 
> 
>> On 5 Feb 2020, at 14:36, Mike Thornburg (mthorn) via X11-users 
>> mailto:x11-users@lists.apple.com>> wrote:
>> 
>>> 
>>> On Feb 5, 2020, at 10:16 AM, Pascal Bourguignon via X11-users 
>>> mailto:x11-users@lists.apple.com>> wrote:
>>> 
 On 5 Feb 2020, at 17:10, Ben Kilminster via X11-users 
 mailto:x11-users@lists.apple.com>> wrote:
 
 Hello, 
 
 I'm on a Mac  (Mac Catalina 10.15.2, XQuartz 2.7.11).
 
 The problem is using the xterm provided by XQuartz, I no longer have 
 permission to look in my directories :
 Wed 16:59 [bjk] ls ~/Documents/
 ls: : Operation not permitted
 
 I found a solution recommended online, which is :
 1) System Preferences -> Security & Privacy -> Privacy -> "Full Disk 
 Access" 
 2) Unlock then add "Applications/Utilities/XQuartz.app"
 3) Restart everything.
 
 However, I still get the same error.  
 
 The other "Terminal" program still works, so this is not fatal.  
 But right now XQuartz is not usable for me.  Suggestions ?
 
 Best,
 Ben
 
 p.s. Apologies if I am posting to the wrong forum or should have found the 
 answer to this somewhere online. 
>>> 
>>> 
>>> 1- consider switching to Linux.
>>> 
>>> 2- Disable System Integrity Protection.
>>> 
>>> $ csrutil status
>>> System Integrity Protection status: disabled.
>>> 
>>> But this will probably not work anymore in future versions of macOS…  
>>> therefore consider switching to Linux.  Or FreeBSD or OpenBSD if you really 
>>> want.
>>> 
>>> Note: you will need to reboot in Recovery Mode to do that.
>>> 
>> 
>> I don't know if this workaround works on Catalina because I am still running 
>> Mohave, but 
>> I have found that if I enable my account for remote login, start an xterm, 
>> and 
>> 
>>   ssh my_user_id@localhost
>> 
>> from within the xterm I can access the locations (eg, ~/Library/Safari) that 
>> are protected by System Integrity 
>> Protection on Mohave without having to disable System Integrity Protection.  
>> I don't know if it makes any 
>> difference here, but I have also given the Terminal.app Full Disk Access in 
>> the Security & Privacy preferences.
>> 
>> If you want to start other xclients from the remote login session you will 
>> need to do something to set up 
>> the DISPLAY environment variable properly in your new shell, but as far as I 
>> know once you do that everything 
>> works.
>> 
>> Mike
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> X11-users mailing list  (X11-users@lists.apple.com 
>> )
>> Help/Unsubscribe/Update your Subscription: 
>> https://lists.apple.com/mailman/options/x11-users/francini%40mac.com 
>> 
>> 
>> This email sent to franc...@mac.com 

 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-07 Thread Thomas Dickey via X11-users
On Thu, Feb 06, 2020 at 09:30:52PM -0500, Jonathan Prescott wrote:
> As a data point, if it is relevant, rxvt has always worked from El Capitan, 
> which was when I bought this Mac, to Catalina today.  Not sure if that is 
> important, but, it is an observation.  ETerm was not working, but, I haven’t 
> upgraded it since the MacPorts upgrade.  I normally used Apple’s Terminal, 
> and iTerm, but, xterm, et al, are useful once in awhile, which why I keep 
> them around.
> 
> Another point, the last time I installed xterm prior to today, the operating
> system was Catalina 10.15.2.  When I upgraded MacPorts today, my machine had
> been upgraded to 10.15.3 in the interim.  Your point about potential point
> upgrade to the devices fixing the bug could be on point.

yes - would be nice if Apple provided release notes...

In a quick check, I see that the MacPorts package for urxvt uses these
functions:

posix_openpt
grantpt
ptsname
unlockpt

while xterm uses this:

openpty

The actual choice depends on the configure script, but it is optional:

Patch #292 - 2013/04/25
 * add   configure   option   --disable-openpty  to  control  whether
   openpty() may be used in preference to posix_openpt().
 * improve  workaround  from [451]patch #279 for BSD systems which do
   not complete initialization until both sides of the pseudoterminal
   are  opened,  by preferring openpty() function over posix_openpt()
   when available (report by Christian Weisgerber).

That bug report referred to MacOS, and because it related to timing
(which will be different between different terminal programs), one
may "work" while another has unexpected behavior.

> Jonathan
> 
> > On Feb 6, 2020, at 8:37 PM, Thomas Dickey  wrote:
> > 
> > On Thu, Feb 06, 2020 at 10:37:34AM -0500, Jonathan Prescott wrote:
> >> Well, let’s just say that, on MacOS Catalina 10.15.3, the xterm I had
> >> installed, the latest at the time from MacPorts, failed in the way everyone
> >> has been noting lately.  I did my periodic update of MacPorts, and I 
> >> noticed
> >> that xterm was updated this cycle.  After the MacPorts update, xterm worked
> >> like everyone is expecting.  Now, whether it was xterm that was fixed, or 
> >> an
> >> X11 related library (that’s all I use MacPorts for), I couldn’t tell you. 
> >> However, it was not a change in the operating system, or XQuartz (not X11
> >> server), since these didn’t change.
> > 
> > I don't know - since nothing relevant changed in xterm (it's been almost
> > all font-related/display-related things in the past year).
> > 
> > A few years ago someone had a problem with those symptoms which was
> > apparently due to MacOS/OSX associating permissions to the _pseudo 
> > terminal_.
> > 
> > In a quick check, it seems I last revised that in 2011.
> > 
> > I upgraded one of my machines to Catalina in October to investigate this
> > (there are a couple of pty-interfaces which _could_ be used, and possibly
> > Apple's broken a different one in Catalina), but found no corresponding
> > problem (but that one started as Mohave - upgrades from older releases,
> > I think, accumulate crud that Apple doesn't cleanup).
> > 
> > If the problem is related to file-permissions (and acls), I suppose
> > it's also possible that an unrelated upgrade will replace some
> > file and suddenly relieve some bug.  But I don't know to advise you
> > on that -- only on things that I can reproduce :-)
> > 
> >> Jonathan
> >> 
> >>> On Feb 6, 2020, at 3:54 AM, Thomas Dickey  wrote:
> >>> 
> >>> - Original Message -
> >>> | From: "Apple X11 Users' List" 
> >>> | To: "David Ledger" 
> >>> | Cc: "Apple X11 Users' List" 
> >>> | Sent: Wednesday, February 5, 2020 9:35:37 PM
> >>> | Subject: Re: xterm operation not permitted
> >>> 
> >>> | I just updated my MacPorts distribution, and the new xterm seems to 
> >>> have been
> >>> | fixed so that it works on Catalina as you would expect.
> >>> | Jonathan
> >>> 
> >>> that's not due to a change in xterm, but some permissions bug in the 
> >>> pseudo-terminal support.
> > 
> > -- 
> > Thomas E. Dickey 
> > https://invisible-island.net <https://invisible-island.net/>
> > ftp://ftp.invisible-island.net <ftp://ftp.invisible-island.net/>

-- 
Thomas E. Dickey 
https://invisible-island.net
ftp://ftp.invisible-island.net


signature.asc
Description: PGP signature
 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-07 Thread Ben Kilminster via X11-users
> On Feb 5, 2020, at 7:30 PM, Fco. Javier Modrego via X11-users 
>  wrote:
> 
> Reinstall xquartz by first uninstalling it completely.
> 
> https://discussions.apple.com/thread/250731310
> 
> http://information-technology.web.cern.ch/services/fe/mac-support/howto/about-macos-1015-catalina
> 
> Bets,
> FJM
> ___
> Do not post admin requests to the list. They will be ignored.
> X11-users mailing list  (X11-users@lists.apple.com)
> Help/Unsubscribe/Update your Subscription: 
> https://lists.apple.com/mailman/options/x11-users/ben.kilminster%40physik.uzh.ch
> 
> This email sent to ben.kilmins...@physik.uzh.ch
> 


Dear FJM,

This did not work.  I did a complete uninstall (using AppCleaner, which does a 
thorough job) and re-installed. 

Thanks,
Ben






 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-07 Thread Ben Kilminster via X11-users

> On 2020-02-05 16:10, Ben Kilminster via X11-users wrote:
>> Hello,
>> I'm on a Mac  (Mac Catalina 10.15.2, XQuartz 2.7.11).
>> The problem is using the xterm provided by XQuartz, I no longer have 
>> permission to look in my directories :
>> Wed 16:59 [bjk] ls ~/Documents/
>> ls: : Operation not permitted
>> I found a solution recommended online, which is :
>> 1) System Preferences -> Security & Privacy -> Privacy -> "Full Disk Access"
>> 2) Unlock then add "Applications/Utilities/XQuartz.app"
>> 3) Restart everything.
>> However, I still get the same error.
>> The other "Terminal" program still works, so this is not fatal.
>> But right now XQuartz is not usable for me.  Suggestions ?
> 
> It look like you are either not *who* you think you are or not *where* you 
> think you are.
> 
> In both of a fresh Terminal and a fresh xterm, do:
> 
> $ pwd
> $ id
> $ echo $0
> $ echo $SHELL
> $ echo ~
> $ echo $HOME
> 
> They should match between the Terminal and xterm environments.
> 
> Whichever terminal (lower 't') you use it's the shell that does the work not 
> the terminal.
> 
> David
> 

Hello David, 

Unfortunately, both agree. 
There are plenty of other ideas though, and I will go through them all.


XQuartz xterm : 
Fri 9:37 [bjk] pwd
/Users/bjk
Fri 9:37 [bjk] id
uid=501(bjk) ...
Fri 9:37 [bjk] echo $0
tcsh
Fri 9:38 [bjk] echo $SHELL
/bin/tcsh
Fri 9:38 [bjk] echo ~
/Users/bjk
Fri 9:38 [bjk] echo $HOME
/Users/bjk

Terminal : 
Fri 9:37 [bjk] pwd
/Users/bjk
Fri 9:38 [bjk] id
uid=501(bjk) 
Fri 9:38 [bjk] echo $0
-tcsh
Fri 9:38 [bjk] echo $SHELL
/bin/tcsh
Fri 9:38 [bjk] echo ~
/Users/bjk
Fri 9:38 [bjk] echo $HOME
/Users/bjk
Fri 9:38 [bjk] 


Best,
Ben



 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-06 Thread Jonathan Prescott via X11-users
As a data point, if it is relevant, rxvt has always worked from El Capitan, 
which was when I bought this Mac, to Catalina today.  Not sure if that is 
important, but, it is an observation.  ETerm was not working, but, I haven’t 
upgraded it since the MacPorts upgrade.  I normally used Apple’s Terminal, and 
iTerm, but, xterm, et al, are useful once in awhile, which why I keep them 
around.

Another point, the last time I installed xterm prior to today, the operating 
system was Catalina 10.15.2.  When I upgraded MacPorts today, my machine had 
been upgraded to 10.15.3 in the interim.  Your point about potential point 
upgrade to the devices fixing the bug could be on point.

Jonathan

> On Feb 6, 2020, at 8:37 PM, Thomas Dickey  wrote:
> 
> On Thu, Feb 06, 2020 at 10:37:34AM -0500, Jonathan Prescott wrote:
>> Well, let’s just say that, on MacOS Catalina 10.15.3, the xterm I had
>> installed, the latest at the time from MacPorts, failed in the way everyone
>> has been noting lately.  I did my periodic update of MacPorts, and I noticed
>> that xterm was updated this cycle.  After the MacPorts update, xterm worked
>> like everyone is expecting.  Now, whether it was xterm that was fixed, or an
>> X11 related library (that’s all I use MacPorts for), I couldn’t tell you. 
>> However, it was not a change in the operating system, or XQuartz (not X11
>> server), since these didn’t change.
> 
> I don't know - since nothing relevant changed in xterm (it's been almost
> all font-related/display-related things in the past year).
> 
> A few years ago someone had a problem with those symptoms which was
> apparently due to MacOS/OSX associating permissions to the _pseudo terminal_.
> 
> In a quick check, it seems I last revised that in 2011.
> 
> I upgraded one of my machines to Catalina in October to investigate this
> (there are a couple of pty-interfaces which _could_ be used, and possibly
> Apple's broken a different one in Catalina), but found no corresponding
> problem (but that one started as Mohave - upgrades from older releases,
> I think, accumulate crud that Apple doesn't cleanup).
> 
> If the problem is related to file-permissions (and acls), I suppose
> it's also possible that an unrelated upgrade will replace some
> file and suddenly relieve some bug.  But I don't know to advise you
> on that -- only on things that I can reproduce :-)
> 
>> Jonathan
>> 
>>> On Feb 6, 2020, at 3:54 AM, Thomas Dickey  wrote:
>>> 
>>> - Original Message -
>>> | From: "Apple X11 Users' List" 
>>> | To: "David Ledger" 
>>> | Cc: "Apple X11 Users' List" 
>>> | Sent: Wednesday, February 5, 2020 9:35:37 PM
>>> | Subject: Re: xterm operation not permitted
>>> 
>>> | I just updated my MacPorts distribution, and the new xterm seems to have 
>>> been
>>> | fixed so that it works on Catalina as you would expect.
>>> | Jonathan
>>> 
>>> that's not due to a change in xterm, but some permissions bug in the 
>>> pseudo-terminal support.
> 
> -- 
> Thomas E. Dickey 
> https://invisible-island.net <https://invisible-island.net/>
> ftp://ftp.invisible-island.net <ftp://ftp.invisible-island.net/>
 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-06 Thread Thomas Dickey via X11-users
On Thu, Feb 06, 2020 at 10:37:34AM -0500, Jonathan Prescott wrote:
> Well, let’s just say that, on MacOS Catalina 10.15.3, the xterm I had
> installed, the latest at the time from MacPorts, failed in the way everyone
> has been noting lately.  I did my periodic update of MacPorts, and I noticed
> that xterm was updated this cycle.  After the MacPorts update, xterm worked
> like everyone is expecting.  Now, whether it was xterm that was fixed, or an
> X11 related library (that’s all I use MacPorts for), I couldn’t tell you. 
> However, it was not a change in the operating system, or XQuartz (not X11
> server), since these didn’t change.

I don't know - since nothing relevant changed in xterm (it's been almost
all font-related/display-related things in the past year).

A few years ago someone had a problem with those symptoms which was
apparently due to MacOS/OSX associating permissions to the _pseudo terminal_.

In a quick check, it seems I last revised that in 2011.

I upgraded one of my machines to Catalina in October to investigate this
(there are a couple of pty-interfaces which _could_ be used, and possibly
Apple's broken a different one in Catalina), but found no corresponding
problem (but that one started as Mohave - upgrades from older releases,
I think, accumulate crud that Apple doesn't cleanup).

If the problem is related to file-permissions (and acls), I suppose
it's also possible that an unrelated upgrade will replace some
file and suddenly relieve some bug.  But I don't know to advise you
on that -- only on things that I can reproduce :-)
 
> Jonathan
> 
> > On Feb 6, 2020, at 3:54 AM, Thomas Dickey  wrote:
> > 
> > - Original Message -
> > | From: "Apple X11 Users' List" 
> > | To: "David Ledger" 
> > | Cc: "Apple X11 Users' List" 
> > | Sent: Wednesday, February 5, 2020 9:35:37 PM
> > | Subject: Re: xterm operation not permitted
> > 
> > | I just updated my MacPorts distribution, and the new xterm seems to have 
> > been
> > | fixed so that it works on Catalina as you would expect.
> > | Jonathan
> > 
> > that's not due to a change in xterm, but some permissions bug in the 
> > pseudo-terminal support.

-- 
Thomas E. Dickey 
https://invisible-island.net
ftp://ftp.invisible-island.net


signature.asc
Description: PGP signature
 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-06 Thread Jonathan Prescott via X11-users
Well, let’s just say that, on MacOS Catalina 10.15.3, the xterm I had 
installed, the latest at the time from MacPorts, failed in the way everyone has 
been noting lately.  I did my periodic update of MacPorts, and I noticed that 
xterm was updated this cycle.  After the MacPorts update, xterm worked like 
everyone is expecting.  Now, whether it was xterm that was fixed, or an X11 
related library (that’s all I use MacPorts for), I couldn’t tell you.  However, 
it was not a change in the operating system, or XQuartz (not X11 server), since 
these didn’t change.

Jonathan

> On Feb 6, 2020, at 3:54 AM, Thomas Dickey  wrote:
> 
> - Original Message -
> | From: "Apple X11 Users' List" 
> | To: "David Ledger" 
> | Cc: "Apple X11 Users' List" 
> | Sent: Wednesday, February 5, 2020 9:35:37 PM
> | Subject: Re: xterm operation not permitted
> 
> | I just updated my MacPorts distribution, and the new xterm seems to have 
> been
> | fixed so that it works on Catalina as you would expect.
> | Jonathan
> 
> that's not due to a change in xterm, but some permissions bug in the 
> pseudo-terminal support.
> 
> -- 
> Thomas E. Dickey 
> http://invisible-island.net
> ftp://ftp.invisible-island.net

 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-06 Thread Thomas Dickey via X11-users
- Original Message -
| From: "Apple X11 Users' List" 
| To: "David Ledger" 
| Cc: "Apple X11 Users' List" 
| Sent: Wednesday, February 5, 2020 9:35:37 PM
| Subject: Re: xterm operation not permitted

| I just updated my MacPorts distribution, and the new xterm seems to have been
| fixed so that it works on Catalina as you would expect.
| Jonathan

that's not due to a change in xterm, but some permissions bug in the 
pseudo-terminal support.

-- 
Thomas E. Dickey 
http://invisible-island.net
ftp://ftp.invisible-island.net
 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-05 Thread David Ledger via X11-users

On 2020-02-05 16:10, Ben Kilminster via X11-users wrote:

Hello,

I'm on a Mac  (Mac Catalina 10.15.2, XQuartz 2.7.11).

The problem is using the xterm provided by XQuartz, I no longer have 
permission to look in my directories :

Wed 16:59 [bjk] ls ~/Documents/
ls: : Operation not permitted

I found a solution recommended online, which is :
1) System Preferences -> Security & Privacy -> Privacy -> "Full Disk 
Access"

2) Unlock then add "Applications/Utilities/XQuartz.app"
3) Restart everything.

However, I still get the same error.

The other "Terminal" program still works, so this is not fatal.
But right now XQuartz is not usable for me.  Suggestions ?


It look like you are either not *who* you think you are or not *where* 
you think you are.


In both of a fresh Terminal and a fresh xterm, do:

$ pwd
$ id
$ echo $0
$ echo $SHELL
$ echo ~
$ echo $HOME

They should match between the Terminal and xterm environments.

Whichever terminal (lower 't') you use it's the shell that does the work 
not the terminal.


David

 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-05 Thread John Francini via X11-users
Another thing to try. 

Follow the steps you did earlier for adding XQuartz but instead add the XTerm 
app. The difference here is that you are adding the app that actually owns the 
child processes - which isn't XQuartz, but is XTerm.

Just my $0.02.

John



> On 5 Feb 2020, at 14:36, Mike Thornburg (mthorn) via X11-users 
>  wrote:
> 
>> 
>> On Feb 5, 2020, at 10:16 AM, Pascal Bourguignon via X11-users 
>>  wrote:
>> 
>>> On 5 Feb 2020, at 17:10, Ben Kilminster via X11-users 
>>>  wrote:
>>> 
>>> Hello, 
>>> 
>>> I'm on a Mac  (Mac Catalina 10.15.2, XQuartz 2.7.11).
>>> 
>>> The problem is using the xterm provided by XQuartz, I no longer have 
>>> permission to look in my directories :
>>> Wed 16:59 [bjk] ls ~/Documents/
>>> ls: : Operation not permitted
>>> 
>>> I found a solution recommended online, which is :
>>> 1) System Preferences -> Security & Privacy -> Privacy -> "Full Disk 
>>> Access" 
>>> 2) Unlock then add "Applications/Utilities/XQuartz.app"
>>> 3) Restart everything.
>>> 
>>> However, I still get the same error.  
>>> 
>>> The other "Terminal" program still works, so this is not fatal.  
>>> But right now XQuartz is not usable for me.  Suggestions ?
>>> 
>>> Best,
>>> Ben
>>> 
>>> p.s. Apologies if I am posting to the wrong forum or should have found the 
>>> answer to this somewhere online. 
>> 
>> 
>> 1- consider switching to Linux.
>> 
>> 2- Disable System Integrity Protection.
>> 
>> $ csrutil status
>> System Integrity Protection status: disabled.
>> 
>> But this will probably not work anymore in future versions of macOS…  
>> therefore consider switching to Linux.  Or FreeBSD or OpenBSD if you really 
>> want.
>> 
>> Note: you will need to reboot in Recovery Mode to do that.
>> 
> 
> I don't know if this workaround works on Catalina because I am still running 
> Mohave, but 
> I have found that if I enable my account for remote login, start an xterm, 
> and 
> 
>   ssh my_user_id@localhost
> 
> from within the xterm I can access the locations (eg, ~/Library/Safari) that 
> are protected by System Integrity 
> Protection on Mohave without having to disable System Integrity Protection.  
> I don't know if it makes any 
> difference here, but I have also given the Terminal.app Full Disk Access in 
> the Security & Privacy preferences.
> 
> If you want to start other xclients from the remote login session you will 
> need to do something to set up 
> the DISPLAY environment variable properly in your new shell, but as far as I 
> know once you do that everything 
> works.
> 
> Mike
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> X11-users mailing list  (X11-users@lists.apple.com 
> )
> Help/Unsubscribe/Update your Subscription: 
> https://lists.apple.com/mailman/options/x11-users/francini%40mac.com 
> 
> 
> This email sent to franc...@mac.com 
 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-05 Thread Mike Thornburg (mthorn) via X11-users

> On Feb 5, 2020, at 10:16 AM, Pascal Bourguignon via X11-users 
>  wrote:
> 
>> On 5 Feb 2020, at 17:10, Ben Kilminster via X11-users 
>>  wrote:
>> 
>> Hello, 
>> 
>> I'm on a Mac  (Mac Catalina 10.15.2, XQuartz 2.7.11).
>> 
>> The problem is using the xterm provided by XQuartz, I no longer have 
>> permission to look in my directories :
>> Wed 16:59 [bjk] ls ~/Documents/
>> ls: : Operation not permitted
>> 
>> I found a solution recommended online, which is :
>> 1) System Preferences -> Security & Privacy -> Privacy -> "Full Disk Access" 
>> 2) Unlock then add "Applications/Utilities/XQuartz.app"
>> 3) Restart everything.
>> 
>> However, I still get the same error.  
>> 
>> The other "Terminal" program still works, so this is not fatal.  
>> But right now XQuartz is not usable for me.  Suggestions ?
>> 
>> Best,
>> Ben
>> 
>> p.s. Apologies if I am posting to the wrong forum or should have found the 
>> answer to this somewhere online. 
> 
> 
> 1- consider switching to Linux.
> 
> 2- Disable System Integrity Protection.
> 
> $ csrutil status
> System Integrity Protection status: disabled.
> 
> But this will probably not work anymore in future versions of macOS…  
> therefore consider switching to Linux.  Or FreeBSD or OpenBSD if you really 
> want.
> 
> Note: you will need to reboot in Recovery Mode to do that.
> 

I don't know if this workaround works on Catalina because I am still running 
Mohave, but 
I have found that if I enable my account for remote login, start an xterm, and 

   ssh my_user_id@localhost

from within the xterm I can access the locations (eg, ~/Library/Safari) that 
are protected by System Integrity 
Protection on Mohave without having to disable System Integrity Protection.  I 
don't know if it makes any 
difference here, but I have also given the Terminal.app Full Disk Access in the 
Security & Privacy preferences.

If you want to start other xclients from the remote login session you will need 
to do something to set up 
the DISPLAY environment variable properly in your new shell, but as far as I 
know once you do that everything 
works.

Mike

 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-05 Thread Fco. Javier Modrego via X11-users
Reinstall xquartz by first uninstalling it completely.

https://discussions.apple.com/thread/250731310

http://information-technology.web.cern.ch/services/fe/mac-support/howto/about-macos-1015-catalina

Bets,
FJM
 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: xterm operation not permitted

2020-02-05 Thread Pascal Bourguignon via X11-users


> On 5 Feb 2020, at 17:10, Ben Kilminster via X11-users 
>  wrote:
> 
> Hello, 
> 
> I'm on a Mac  (Mac Catalina 10.15.2, XQuartz 2.7.11).
> 
> The problem is using the xterm provided by XQuartz, I no longer have 
> permission to look in my directories :
> Wed 16:59 [bjk] ls ~/Documents/
> ls: : Operation not permitted
> 
> I found a solution recommended online, which is :
> 1) System Preferences -> Security & Privacy -> Privacy -> "Full Disk Access" 
> 2) Unlock then add "Applications/Utilities/XQuartz.app"
> 3) Restart everything.
> 
> However, I still get the same error.  
> 
> The other "Terminal" program still works, so this is not fatal.  
> But right now XQuartz is not usable for me.  Suggestions ?
> 
> Best,
> Ben
> 
> p.s. Apologies if I am posting to the wrong forum or should have found the 
> answer to this somewhere online. 


1- consider switching to Linux.

2- Disable System Integrity Protection.

$ csrutil status
System Integrity Protection status: disabled.

But this will probably not work anymore in future versions of macOS…  therefore 
consider switching to Linux.  Or FreeBSD or OpenBSD if you really want.

Note: you will need to reboot in Recovery Mode to do that.


-- 
__Pascal J. Bourguignon__




 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


xterm operation not permitted

2020-02-05 Thread Ben Kilminster via X11-users
Hello, 

I'm on a Mac  (Mac Catalina 10.15.2, XQuartz 2.7.11).

The problem is using the xterm provided by XQuartz, I no longer have permission 
to look in my directories :
Wed 16:59 [bjk] ls ~/Documents/
ls: : Operation not permitted

I found a solution recommended online, which is :
1) System Preferences -> Security & Privacy -> Privacy -> "Full Disk Access" 
2) Unlock then add "Applications/Utilities/XQuartz.app"
3) Restart everything.

However, I still get the same error.  

The other "Terminal" program still works, so this is not fatal.  
But right now XQuartz is not usable for me.  Suggestions ?

Best,
Ben

p.s. Apologies if I am posting to the wrong forum or should have found the 
answer to this somewhere online. 






 ___
Do not post admin requests to the list. They will be ignored.
X11-users mailing list  (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com