Zsh compinit: insecure directories. Compaudit directory / tmp directory

I am running zsh on Raspberry Pi 2 (Raspbian Jessie). zsh compinitcomplains that the directory is /tmpunsafe. So, I checked the permissions in the directory:

$ compaudit
There are insecure directories:
/tmp
$ ls -ld /tmp
drwxrwxrwt 13 root root 16384 Apr 10 11:17 /tmp

Apparently, anyone can do anything in the / tmp directory. Which makes sense given its purpose. So I tried the suggestions of this thread_flow stack question . I also tried similar offers on other sites. In particular, he suggests disabling group write permissions in this directory. Due to the way permissions looked in accordance with ls -ld, I also had to disable all write permissions. So:

$ sudo su
% chmod g-w /tmp
% chmod a-w /tmp
% exit
$ compaudit
# nothing shows up, zsh is happy

zsh . . , gnome-terminal , "l". - compinit -u .zshrc.

: ? , compinit . dotfiles , , compinit -u, .

+4
1

/tmp . , : ls -ld /tmp drwxrwxrwt. sudo chmod 1777 /tmp . /tmp , .

compaudit fpath, fpath /tmp/… ( /tmp). , fpath . fpath zsh . /tmp - .

, , fpath, zsh -x 2>zsh-x.log fpath zsh-x.log.

/tmp, . /tmp - , ( , t ). , (, mktemp -d), fpath. compaudit , , , , .

+2

All Articles