Unix & Linux Weekly Newsletter
Unix & Linux Weekly Newsletter

Top new questions this week:

What are common rights for /tmp ? I unintentionnally set it all public recursively

I have abused sudo. I have created a really really short life temporary directory that I wanted to share between some users for a few hours... and I named this directory /some/path/tmp Unfortunately …

/ permissions / chown / tmp  
asked by Stephane Rolland 14 votes
answered by Gilles 19 votes

Use find result without ./

I'm trying to use find to create a bunch of symlinks but using the result with {} includes ./ before each filename. How can I avoid that? find . -type l -name '*.h' -exec ln -s /sourcedir/{} …

/ find  
asked by Mark Robinson 5 votes
answered by Stephane Chazelas 4 votes

Can entropy consumption at program start be prevented?

I use Knoppix (or other Live CDs/DVDs) as a secure environment for creating valuable crypto keys. Unfortunately entropy is a limited resource in such environments. I just noticed that each program …

/ linux / kernel / security / glibc / linker  
asked by Hauke Laging 5 votes
answered by Frederik Deweerdt 7 votes

How can I hook on to one terminal's output from another terminal?

I need to hook onto output of currently running terminal (tty1) from virtual terminal and capture it (running X server). I'm pretty sure such a thing is possible by simpler means than debugging …

/ terminal / tty / terminal-emulator  
asked by AoeAoe 4 votes
answered by slm 3 votes

Check if folder is a mounted remote filesystem

What is the best way (reliable, portable, etc.) to check if a given folder is on a mounted remote (nfs) filesystem within a shell script? I am looking for a command that would look like: …

/ linux / shell-script / filesystems / mount  
asked by Totor 4 votes
answered by Totor 2 votes

Detecting X session in a bash script (.bashrc etc.)

Recently I put xset b off to my .bashrc. Now I'm annoyed by the error thet pops up when I log in via tty or via ssh, i.e. outside X session. First thing that came in my mind was [[ -z "$SOME_VAR" ]] …

/ bash / xorg / environment-variables  
asked by Alois Mahdal 4 votes
answered by Renan 5 votes

How should man pages be installed?

When distributing a custom utility I'll typically write a makefile that installs binaries to /usr/local by default PREFIX ?= /usr/local MANPREFIX ?= ${PREFIX}/man install: install utility …

/ make / man  
asked by user23063 4 votes
answered by Gilles 1 vote

Greatest hits from previous weeks:

"tar: unrecognized option --warning" during 'apt-get install'

I just ran apt-get upgrade on my debian 5 vps and I got this error: tar: unrecognized option `--warning=no-timestamp' Now when I try to install other packages e.g: imagemagick I get the same …

/ debian / upgrade / apt / tar  
asked by DanielZ 10 votes
answered by izogi 12 votes

How to set default file permissions for all folders/files in a directory?

I want to set a folder such that anything created within it (directories, files) inherit default permissions and group. Lets call the group "media". And also, the folders/files created within the …

/ permissions / directory  
asked by Chris 42 votes
answered by Chris 25 votes

Can you answer these?

Path errors when using GNU Stow

I am trying to get started with GNU Stow. I have defined STOW_DIR to point to a personal path: STOW_DIR=/some/path I then build a package of my choice from the tarball and install it under …

/ stow  
asked by user815423426 1 vote

A real non-"better touch tools" solution for select-to-copy on Mac OS X

I recently moved to Mac. I am missing my X11 copy-paste style. I can't find a way to exactly emulate X11 behavior "select-to-copy", "middle-click-to-paste" globally on Mac OS X. I am aware that this …

/ x11 / osx / mouse / copy-paste  
asked by Bichoy 2 votes

How to prevent killing the X server with CTRL+C using bash traps?

On my Debian Wheezy system, I used to start my X session with the startx command. My .xinitrc file is: exec /usr/bin/awesome --config /home/cscs/.config/awesome/rc.lua >> …

/ bash / session / x-server  
asked by dash17291 1 vote
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3