Project

General

Profile

Bug #7412

su does not work when /bin is before /usr/bin in PATH

Added by A. Wilcox about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Base libraries
Target version:
Start date:
06/11/2017
Due date:
% Done:

100%

Estimated time:
Affected versions:
Security IDs:

Description

This is a new install of Alpine edge, but I can reproduce this on my v3.6 VM. If $PATH has /bin before /usr/bin, su fails:

su: must be suid to work properly

We can see clearly using ls -l:

lrwxrwxrwx 1 root root 12 Jun 11 02:02 /bin/su -> /bin/busybox
lrwxrwxrwx 1 root root 11 Jun 11 02:02 /usr/bin/su -> /bin/bbsuid

And apk info -W:

/bin/su symlink target is owned by busybox-1.26.2-r7
/usr/bin/su symlink target is owned by busybox-suid-1.26.2-r7

Yet, confstr PATH:

/bin:/usr/bin

Either /bin/su should not be installed, or busybox-suid should be the one to install it.

History

#1 Updated by A. Wilcox about 2 years ago

I meant getconf PATH above. Sorry for confusion.

#2 Updated by William Pitcock about 2 years ago

  • Status changed from New to Closed
  • Target version set to 3.6.2
  • % Done changed from 0 to 100

Fixed in 3.6 1.26.2-r5 and edge 1.26.2-r8.

Also available in: Atom PDF