Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#597335: tmux: "can't create socket: Permission denied" as non-root

451 views
Skip to first unread message

Cocoabean

unread,
Sep 18, 2010, 2:50:03 PM9/18/10
to
Package: tmux
Version: 1.3-1~bpo50+2
Severity: important


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

Romain Francoise

unread,
Sep 18, 2010, 3:00:01 PM9/18/10
to
Cocoabean <cocoab...@gmail.com> writes:

> 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/

Romain Francoise

unread,
Sep 18, 2010, 3:30:02 PM9/18/10
to
Cocoabean <cocoab...@gmail.com> writes:

> -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.

0 new messages