Trying to understand my issue here. I have a window which somehow has LOST permissions to grep. I honestly have no clue how. I'd like to know, understand, have at least an inkling what might've happened. Ideas?
- Terminator screen A, dirA, can grep without a problem.
- Same Terminator window, screen B, dirB, cannot grep (outputs:
grep number: permission denied). Both dirs have SAME permissions.
- I cd from dirB to dirA. I cannot grep. Again, output says
grep number: permission denied, just number increases by 1.
- Both windows are opened from Terminator (same one). New Terminator window has no problems. New Terminator or terminal - no problem.
- I didn't change permissions.
- I didn't add/remove/change groups or users.
- The - now faulty - window originally COULD grep.
zshin a faulty window "enables" grep back, until I quit the shell.
I think if I close this window and reopen a new one I'll fix it, but I'm curious - WHAT caused it?
- Ubuntu 16.04.3 LTS
- ZSH (version says
zsh 5.1.1 (x86_64-ubuntu-linux-gnu)) with Oh-My-ZSH
- Terminator 0.98 (though I don't suspect Terminator, it's just one screen in one window that hs this peculiar issue and it is first time I've had it).
Inxi report below
inxi -S -xxx
System: Host: T420s Kernel: 4.4.0-104-generic x86_64 (64 bit gcc: 5.4.0) Desktop: Xfce 4.12.3 (Gtk 2.24.28) info: xfce4-panel dm: lightdm Distro: Ubuntu 16.04 xenial
Grep commands causing the problem:
and the error message.
➜ dirA ±:(master) grep pom client/pom.xml [% 20:35:05] grep:66: permission denied: client/src/main/java/client/BatClient.java ➜ dirA ±:(master) grep a pom.xml [% 20:35:20] grep:67: permission denied: client/src/main/java/client/BatClient.java ➜ dirA ±:(master) grep a client/pom.xml [% 20:38:53] grep:68: permission denied: client/src/main/java/client/BatClient.java
In dirB a file that has denied permission changes.
I killed the window as I had to restart the server.
Killing the window made the glitch go away. Next time this appears, I'll reopen the question and add syscall debug or dig output perhaps.
Great many thanks to you for helping!