You are not logged in.

#1 2013-10-12 21:30:54

techwiz
Member
Registered: 2012-01-26
Posts: 48

[SOLVED] I'm an idiot... Permissions of /usr/bin/ broken

Posting this in noob corner because that's exactly how I feel right now. I was playing around with LFS (Linux from Scratch) and while trying to solve an issue I was having, I accidentally did sudo chmod -R 755 /usr/bin/ instead of sudo chmod -R 755 /mnt/usr/bin/ and now all my admin binaries are hosed.

I've managed to get su, sudo and Xorg running again properly but I don't know what else needed the setuid flag. Any assistance would be appreciated. Hell even a dump of someone's

ls -l /usr/bin/

would be great

Thanks in advanced!

Last edited by techwiz (2013-10-12 22:59:38)

Offline

#2 2013-10-12 21:50:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] I'm an idiot... Permissions of /usr/bin/ broken

$ stat -c "%n %a" /usr/bin/* | awk '/4755/ {print $1}'
/usr/bin/Xorg
/usr/bin/chage
/usr/bin/chfn
/usr/bin/chsh
/usr/bin/expiry
/usr/bin/gpasswd
/usr/bin/ksu
/usr/bin/mount
/usr/bin/newgrp
/usr/bin/passwd
/usr/bin/pkexec
/usr/bin/rcp
/usr/bin/rlogin
/usr/bin/rsh
/usr/bin/sg
/usr/bin/su
/usr/bin/sudo
/usr/bin/umount

symlinks are 777

$ ls -l /usr/bin/xzfgrep
lrwxrwxrwx 1 root root 6 Jun 30 21:48 /usr/bin/xzfgrep -> xzgrep

the are some 555

/usr/bin/bashbug
/usr/bin/db_archive
/usr/bin/db_checkpoint
/usr/bin/db_deadlock
/usr/bin/db_dump
/usr/bin/db_hotbackup
/usr/bin/db_load
/usr/bin/db_log_verify
/usr/bin/db_printlog
/usr/bin/db_recover
/usr/bin/db_replicate
/usr/bin/db_stat
/usr/bin/db_tuner
/usr/bin/db_upgrade
/usr/bin/db_verify
/usr/bin/dhcpcd

the rest is 755.

Offline

#3 2013-10-12 21:52:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] I'm an idiot... Permissions of /usr/bin/ broken

Accurate as your thread title is ( smile ), please edit it to describe your actual problem:
https://wiki.archlinux.org/index.php/Fo … ow_to_Post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2013-10-12 22:56:15

techwiz
Member
Registered: 2012-01-26
Posts: 48

Re: [SOLVED] I'm an idiot... Permissions of /usr/bin/ broken

Will do jason and thank you karol.

Offline

Board footer

Powered by FluxBB