LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2012, 09:56 AM   #1
zeelog
Member
 
Registered: Jan 2008
Posts: 135

Rep: Reputation: 1
can not start a program in /usr/bin as root


I can not get this sound server /usr/bin/esd to start.
I'm root. utils_alsa-info.sh reports that no other sound
servers are running and this is the only one on Lubuntu
now.
root@ed-System-Product-Name:/usr/bin# whoami
root
root@ed-System-Product-Name:/usr/bin# ls -l | grep "esd"
-rwxr-xr-x 1 root root 39304 Oct 1 20:54 esd
-rwxr-xr-x 1 root root 49 Dec 6 2011 mpg123-esd
root@ed-System-Product-Name:/usr/bin# esd
bash: /usr/bin/esd: No such file or directory
root@ed-System-Product-Name:/usr/bin# /usr/bin/esd
bash: /usr/bin/esd: No such file or directory
root@ed-System-Product-Name:/usr/bin# ./esd
bash: ./esd: No such file or directory

I hope this is something dumb and easy.
Anyone have any ideas ?
 
Old 10-02-2012, 10:47 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,075
Blog Entries: 14

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
It may be the file has hidden characters in the name. Since you did "grep esd" it found the file so presumably the letters do appear in that order but they may be prepended or appended by other hidden characters.

What happens if you run "ls esd" and "ls /usr/bin/esd" instead of "ls | grep esd"?

Also the prompt seems to show that you are in /usr/bin but you might want to verify it with a "pwd" command. Sometimes prompts are statically set due to poorly setup PS1 variable. (e.g. if you did "PS1=/usr/bin" your prompt would always be /usr/bin even if you were in /root/billybob or somewhere else.)

If you're sure you're in /usr/bin and the ls command doesn't show the file then you can do something like "ls -b *esd* and see if you have any escapes (\) showing in the file name. Or "ls *esd* |cat -vT" to see all tabs/non-printing character possitions in the file name.
 
  


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
Error: Cannot find 'ssh-keygen' in '/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin' venu.navat Linux - Software 3 03-08-2012 05:00 AM
[SOLVED] What is the program /usr/bin/[ tgrzelak Linux - General 5 02-03-2011 12:22 PM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 09:33 AM
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 01:08 AM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration