When running tmux as a non-root user, the program gives errory "can't create socket: Permission denied". The man page says sockets are created in /tmp but they are actually being created in /var/run where the non-root user has no permission to write. If I manually create /var/run/tmux and chmod it 777, I can run tmux as non-root.
uSystem Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.35-4.slh.12-aptosid-686 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages tmux depends on:
ii libc6 2.11.2-6 Embedded GNU C Library: Shared lib
ii libevent-1.4-2 1.4.13-stable-1 An asynchronous event notification
ii libncurses5 5.7+20100313-3 shared libraries for terminal hand
tmux recommends no packages.
tmux suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
> When running tmux as a non-root user, the program gives errory
> "can't create socket: Permission denied". The man page says
> sockets are created in /tmp but they are actually being created in
> /var/run where the non-root user has no permission to write. If I
> manually create /var/run/tmux and chmod it 777, I can run tmux as
> non-root.
/var/run/tmux is writable by group utmp, and tmux is installed
setgid utmp.
There must be a permission problem on your system, can you send me
the output of ls -l /usr/bin/tmux?
Thanks,
--
Romain Francoise <rfran...@debian.org>
http://people.debian.org/~rfrancoise/
> -rwxr-sr-x 1 root utmp 307056 Jul 25 09:36 /usr/bin/tmux
Ok, thanks. Then the problem must be with the tmux-cleanup
script, which creates /var/run/tmux with the right permissions at
system startup. Can you check that it correctly runs in the S
runlevel? There should be a link in /etc/rcS.d.