Pavlo Kovalov
Pavlo Kovalov

Reputation: 116

Change root chmod privileges to r—r—r—

The question is: if I change the privileges of the chmod program from rwxr-xr-x to r—r—r—, how can I undo it? I won’t have any rights to use chmod again

Upvotes: 1

Views: 792

Answers (1)

iElden
iElden

Reputation: 1280

Like said in this topic.
you can use this folowing command :

/lib/ld-linux.so /bin/chmod +x /bin/chmod

or use /lib64/ld-linux-x86-64.so.2 if you are on 64bits system

Upvotes: 2

Related Questions