Man error


(BL) #1

Briefly describe your issue below:
When I use man to show the manual of a commands, i get an error.
If I use sudo man apt, It works fine.
Any idea why I get this problem ? I think this might come from missconfiguration of some file rights.

What version of Parrot are you running? (include version, edition, and architecture)
Version 4.5 64-bit
Linux 4.19.0-parrot1-13t-amd64 x86_64
Memory : 3,7 Gio
Processor : Intel® Core™ i5-2467M CPU @ 1.60GHz × 4

What method did you use to install Parrot? (Debian Standard / Debian GTK / parrot-experimental)
Debian Standard

Configured to multiboot with other systems? (yes / no)
no

If there are any similar issues or solutions, link to them below:
no

If there are any error messages or relevant logs, post them below:
$ man apt

Error clone: main.c:2514 main: Operation not permitted
man: commande terminée avec 1 comme code de retour : sed -e ‘/^[[:space:]]$/{ N; /^[[:space:]]\n[[:space:]]*$/D; }’ | LESS=-ix8RmPm Manual page apt(8) ?ltline %lt?L/%L.:byte %bB?s/%s…?e (END):?pB %pB%… (press h for help or q to quit)$PM Manual page apt(8) ?ltline %lt?L/%L.:byte %bB?s/%s…?e (END):?pB %pB%… (press h for help or q to quit)$-R MAN_PN=apt(8) less


#2

Please detail exactly how you installed Parrot Linux and what if any changes you’ve made to the user permission settings.


(BL) #3

Hello s1udge,

I installed Parrot OS on my computer that was on Ubuntu before (with main partition encrypted). I did the same for Parrot OS. I used Debian standard installation method. I encountered a little problem during the installation : even though I choosed the right network driver, it didn’t detect my network hardware during the installation (it worked perfectly after the installation, I skiped this step).

After installation, I didn’t test man for like one week. I made a lot of changes to get back some of my usual customization that I had on ubuntu :
Changing the terminal to Zshrc with oh-my-zsh + powerlevel9k. I replaced the zshrc generated by my old zshrc. (maybe my env variables are wrong which could explain man fail ??)
I created my own background in /usr/share/background.
I installed IPSEC/L2TP, strongswan and gnome interface for ipsec/l2tp
Installed mongodb, npm, nodejs, androidStudio and other developping stuff.

But I didn’t change any file rights in /etc/* or /user/share/* . Didn’t changed any firejail settings.
I didn’t touched to my user permissions, never logged directly as root. I always used sudo command.

Also, when I start from menu wireshark, pluma and other applications, they never open. I’m forced to use command line to open wireshark, and even with command-line, pluma doesn’t work.

Man isn’t working on bash, sh and zsh (I tried the three of them, starting with zsh, then switched to others with bash and sh command.

I hope I gave you enough information to give you a hint :smile:

On my side, I’m lost :confused:


#5

yea I think it might be your env variable. To be honest you shouldn’t have tried to do all your customizations there could be so many things wrong or changes you unintentionally made. ubuntu and parrot linux are very very different and you can’t just pull and drop configs or make changes to have it like ubuntu. I would reinstall if it isn’t your env variable and redo everything verifying beforehand that it wont cause problems. What does your systemd journal show?


(BL) #6

So I tested the same command that I used before (man apt) and got an interesting log from syslog :

Mar 14 18:51:21 localhost kernel: [ 1698.918135] audit: type=1400 audit(1552585881.628:117): apparmor="DENIED" operation="ptrace" profile="/usr/bin/man" pid=3188 comm="firejail" requested_mask="read" denied_mask="read" peer="unconfined"
Mar 14 18:51:21 localhost kernel: [ 1698.929159] audit: type=1400 audit(1552585881.640:118): apparmor="DENIED" operation="capable" profile="/usr/bin/man" pid=3188 comm="firejail" capability=21  capname="sys_admin" 

I think the problem is coming from firejail.

journalctl didn’t show much.

Here is my env even if I think it isn’t where the problem comes from :

XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
LANG=fr_FR.UTF-8
DISPLAY=:0.0
XDG_VTNR=7
LOGNAME=maltemo
PWD=/home/maltemo
XAUTHORITY=/home/maltemo/.Xauthority
XDG_SESSION_CLASS=user
XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/maltemo
COLORTERM=truecolor
XDG_SESSION_ID=2
DESKTOP_SESSION=lightdm-xsession
XDG_SESSION_DESKTOP=lightdm-xsession
GDMSESSION=lightdm-xsession
MATE_DESKTOP_SESSION_ID=this-is-deprecated
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
QT_SCALE_FACTOR=1
VTE_VERSION=5402
XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/
GTK_OVERLAY_SCROLLING=0
QT_ACCESSIBILITY=1
GDM_LANG=fr_FR.utf8
SHELL=/usr/bin/zsh
XDG_SESSION_TYPE=x11
WINDOWID=60819249
SSH_AGENT_PID=1196
SESSION_MANAGER=local/parrot:@/tmp/.ICE-unix/1157,unix/parrot:/tmp/.ICE-unix/1157
XDG_CURRENT_DESKTOP=MATE
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
PATH=/home/maltemo/perl5/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
QT_AUTO_SCREEN_SCALE_FACTOR=0
HOME=/home/maltemo
XDG_SEAT=seat0
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
USER=maltemo
TERM=xterm-256color
SHLVL=1
OLDPWD=/home/maltemo
ZSH=/home/maltemo/.oh-my-zsh
PAGER=less
LESS=-R
LSCOLORS=Gxfxcxdxbxegedabagacad
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
LC_CTYPE=fr_FR.UTF-8
PERL5LIB=/home/maltemo/perl5/lib/perl5
PERL_LOCAL_LIB_ROOT=/home/maltemo/perl5
PERL_MB_OPT=--install_base "/home/maltemo/perl5"
PERL_MM_OPT=INSTALL_BASE=/home/maltemo/perl5
NVM_DIR=/home/maltemo/.nvm
NVM_CD_FLAGS=-q
NVM_RC_VERSION=
_=/usr/bin/env