LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-26-2017, 05:56 AM   #1
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Rep: Reputation: 30
Executables in /usr/bin have changed to shared libraries & won't start


I am using a debian based distro & somewhere & somehow a lot of my executables in /usr/bin & other places including my portable apps have had their "TYPE" changed from executable to "shared library" so that the apps will not startup by double clicking on them or even by linking, but will start if I use the terminal.
For example if I use a WindowManager like fluxbox & I want nm-applet to appear on the panel by double clicking /usr/bin/nm-applet that it will not start because its type has changed to a shared library.
AnyOne know how I could change them back to being an executable?
I have tried using different file managers to change them by opening up there Properties but none will let to change.

Thanks AnyOne
 
Old 03-26-2017, 06:18 AM   #2
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
When I click on a files Properties when using Krusader for example there is a option that allows you to change the files type,But when I click on this option it refuses to open.
So I do not know what else to do.
 
Old 03-26-2017, 08:26 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,310
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
Are you running krusader as root? You would likely need to in order the change a file's type.

I would be inclined to do this, as root, for testing purposes:
  1. Open a terminal,
  2. cd to /usr/bin
  3. Run the file command on several of the affected files (assuming the file command still works).

Here's a sample output of the the file command:

Code:
# file nautilus
nautilus: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=8dc3c48c8f4bd2fb85914638cf6edb2d9a7ecc70, stripped
Post the output(s) of the command here, being sure to surround it with code tags, which become available when you click the "Go Advanced" button beneath the "Compose Post" windows.

More troubling is how this came to be. Frankly, this is a new one on me, but I'm concerned it could indicate corruption or compromise of the system. Maybe someone more knowledgeable than I will notice this thread.
 
Old 03-27-2017, 01:33 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
this is a problem with your file manager and not the executables themselves.

so you are starting them by
a) opening a file manager
b) go to e.g. /usr/bin
c) double-click on the executable?

i've never heard of anyone doing it like that.
my only suggestion is to change your usage habits, use an app menu for gui apps (*) and the command line for command line apps.

(*) have you tried dmenu, esp. dmenu_run?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
For new users which command for executables shows as /bin instead of /usr/bin kirushna Red Hat 3 10-30-2016 11:43 PM
/usr/bin/rhgb-client -- error while loading shared libraries: libpopt.so.0 IgnitedMind Linux - Networking 1 05-02-2013 07:30 AM
difference between /usr/local/bin & /usr/bin cgirishaanekal Linux - Newbie 2 07-19-2012 02:18 AM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
Who should own files in /usr/local (and executables, libraries in general)? erika_Dec2004 Linux - Newbie 5 01-12-2005 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration