0

I was looking in /usr/bin tonight and saw this:

snapd in usr bin.png

The symbolic link in cyan / red is a curiosity:

lrwxrwxrwx  1 root root          25 Jul 19 04:48 ubuntu-core-launcher -> ../lib/snapd/snap-confine*

As I don't use snapd yet (Ubuntu 16.04 / Unity Interface) I'm not really concerned but I'm curious if anyone else has encountered this strange coloured link and what it means with all the dangerous looking red?

1 Answers1

1

As sergiy mentioned in comments it is a bug with ls not filling in colors properly when window size causes a line to wrap to the next.

You can see it here by changing the window size for sudoedit:

ls for sudoedit.png

As for the color red itself it's because root becomes the user due to access permissions:

$ llocate /lib/snapd/snap-confine
ACCESS      OWNER  GROUP  SIZE   MODIFIED      NAME (updatdb last ran: 2018-09-26 17:45:05)
-rwsr-sr-x  root   root   98440  Jul 19 04:48  /mnt/clone/usr/lib/snapd/snap-confine
-rwsr-sr-x  root   root   85832  Nov 30  2017  /mnt/old/usr/lib/snapd/snap-confine
-rwsr-sr-x  root   root   98440  Jul 19 04:48  /usr/lib/snapd/snap-confine

Notice root has access rights rws and group has access rights r-s. Everyone else has r-x execute rights. See: rwx Versus rws


Scrolling down further there is another bug example in orange this time:

ls write bug.png