LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-18-2010, 03:41 PM   #1
jmd9qs
Member
 
Registered: Apr 2009
Posts: 36

Rep: Reputation: 16
Exclamation installed 13.1, /usr mounted on own partition.error message "/usr/<> file not found"


Hey all,

I just installed 13.1 on my system. as with previous systems, i have /usr mounted on it's own partition. when doing the setup i did NOT tell slack to format the /usr partition, and i can tell it didn't.

i am able to cd and ls all of the /usr filesystem without difficulty. however, when i try a command (like ftp for instance) this is what i get:

Code:
(jmd9qs@darkstar)-(0)-(08:39 PM Fri Jun 18)->
-(~)-(32 files, 4.2Gb)--> ftp slackbuilds.org
bash: /usr/bin/ftp: No such file or directory
when i use the full path it does the same thing:

Code:
(jmd9qs@darkstar)-(0)-(08:39 PM Fri Jun 18)->
m-(~)-(32 files, 4.2Gb)--> /usr/bin/ftp slackbuilds.org
bash: /usr/bin/ftp: No such file or directory
but check this out:

Code:
(jmd9qs@darkstar)-(0)-(08:40 PM Fri Jun 18)->
-(~)-(32 files, 4.2Gb)--> cd /usr/bin; ls | grep ftp
ftp*
ftp-rfc*
ftpcount*
ftpdctl*
ftptop*
ftpwho*
fzsftp*
gftp*
gftp-gtk*
gftp-text*
lftp*
lftpget*
ncftp*
ncftpbatch*
ncftpbookmarks*
ncftpget*
ncftpls*
ncftpput*
ncftpspooler@
obexftp*
rftp*
sftp*
tftp*
what is going on here?
 
Old 06-18-2010, 03:50 PM   #2
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
Who are you logged in as and what does 'ls -l /usr/bin/ftp' say?
 
Old 06-18-2010, 03:56 PM   #3
jmd9qs
Member
 
Registered: Apr 2009
Posts: 36

Original Poster
Rep: Reputation: 16
i'm logged in as my user (jmd9qs), and here's the output you requested (it belongs to root right now, it seems, i don't know if that's correct or not):



Code:
l(jmd9qs@darkstar)-(0)-(08:55 PM Fri Jun 18)->
m-(~)-(32 files, 4.2Gb)--> ls -l /usr/bin/ftp                                   
-rwxr-xr-x 1 root root 88680 2010-05-19 04:48 /usr/bin/ftp*
and here's this too:

Code:
l(jmd9qs@darkstar)-(0)-(08:55 PM Fri Jun 18)->
m-(~)-(32 files, 4.2Gb)--> cat /etc/group | grep jmd9qs                         
floppy:x:11:jmd9qs
audio:x:17:jmd9qs
video:x:18:jmd9qs
cdrom:x:19:jmd9qs
plugdev:x:83:jmd9qs
power:x:84:jmd9qs
netdev:x:86:jmd9qs

Last edited by jmd9qs; 06-18-2010 at 03:59 PM.
 
Old 06-18-2010, 03:59 PM   #4
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
How about 'ls -ld /usr/bin'?
 
Old 06-18-2010, 04:01 PM   #5
jmd9qs
Member
 
Registered: Apr 2009
Posts: 36

Original Poster
Rep: Reputation: 16
Code:
l(jmd9qs@darkstar)-(0)-(09:01 PM Fri Jun 18)->
m-(~)-(32 files, 4.2Gb)--> ls -ld /usr/bin                                      
drwxr-xr-x 4 root root 94208 2010-04-30 00:01 /usr/bin/
 
Old 06-18-2010, 04:07 PM   #6
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
I'm checking my installation (13.0) and the permissions seem right, but my ftp is located in /bin, not /usr/bin. You say you didn't format /usr when you did the install, was there something in there before you started?
 
Old 06-18-2010, 04:10 PM   #7
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
Also, check 'ldd /usr/bin/ftp' and see if there are any libraries missing.
 
Old 06-18-2010, 04:10 PM   #8
jmd9qs
Member
 
Registered: Apr 2009
Posts: 36

Original Poster
Rep: Reputation: 16
tsg,

check this out:

Code:
l(jmd9qs@darkstar)-(0)-(03:05 PM Fri Jun 18)->
m-(~)-(32 files, 4.2Gb)--> whereis ftp                                          
ftp: /bin/ftp /usr/bin/ftp /usr/X11R6/bin/ftp /usr/bin/X11/ftp /usr/X11/bin/ftp /usr/man/man1/ftp.1.gz /usr/share/man/man1/ftp.1.gz /usr/X11/man/man1/ftp.1.gz
and yes, everything that was in the /usr directory on my Mandriva installation is still in the /usr directory now (except for /usr/dict, which was strangely overwritten during installation)
 
Old 06-18-2010, 04:12 PM   #9
jmd9qs
Member
 
Registered: Apr 2009
Posts: 36

Original Poster
Rep: Reputation: 16
tsg,

now i think we've got something... here's the output of ldd:

Code:
l(jmd9qs@darkstar)-(0)-(03:09 PM Fri Jun 18)->
m-(~)-(32 files, 4.2Gb)--> ldd /usr/bin/ftp                                     
        not a dynamic executable
what does this mean?
 
Old 06-18-2010, 05:19 PM   #10
jmd9qs
Member
 
Registered: Apr 2009
Posts: 36

Original Poster
Rep: Reputation: 16
i've been messing around with this and have found that as root i get no errors... /usr/bin /usr/sbin, etc are in my PATH, so now i'm really confused
 
Old 06-18-2010, 05:20 PM   #11
hello.freeman
Member
 
Registered: Apr 2010
Posts: 38

Rep: Reputation: 23
Quote:
Originally Posted by jmd9qs View Post
tsg,

now i think we've got something... here's the output of ldd:

Code:
l(jmd9qs@darkstar)-(0)-(03:09 PM Fri Jun 18)->
m-(~)-(32 files, 4.2Gb)--> ldd /usr/bin/ftp                                     
        not a dynamic executable
what does this mean?

I think '/usr/bin/ftp' is not a binary file.

Check it as follow please:
bash$ file /usr/bin/ftp
 
Old 06-18-2010, 05:25 PM   #12
hello.freeman
Member
 
Registered: Apr 2010
Posts: 38

Rep: Reputation: 23
BTW, 'ldd' is a bash script, you can read it if you want to know how it work.
 
Old 06-18-2010, 05:31 PM   #13
jmd9qs
Member
 
Registered: Apr 2009
Posts: 36

Original Poster
Rep: Reputation: 16
Code:
l(jmd9qs@darkstar)-(0)-(03:26 PM Fri Jun 18)->
m-(~/Downloads/encfs)-(5 files, 936Kb)--> file /usr/bin/ftp                     
/usr/bin/ftp: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
 
Old 06-18-2010, 05:37 PM   #14
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
Quote:
Originally Posted by jmd9qs View Post
and yes, everything that was in the /usr directory on my Mandriva installation is still in the /usr directory now (except for /usr/dict, which was strangely overwritten during installation)
Ah, you installed Slackware 13.1 over top of an existing Mandriva installation? That may be the source of the problem.

If you try to run /bin/ftp as your user id, does it work?
 
Old 06-18-2010, 05:38 PM   #15
hello.freeman
Member
 
Registered: Apr 2010
Posts: 38

Rep: Reputation: 23
Wow, That's very very interesting.
 
  


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
NIS: error message coming after executing "/usr/lib/yp/ypinit -m" cj_cheema Linux - Server 2 08-14-2009 09:02 AM
script using "/usr/bin/cat error" produces "cannot open" in cron Dcrusoe Programming 6 07-22-2009 03:30 PM
Reboot and "/usr/sbin/mysqld: Can't open file: 'my_table.MYI'" message guarriman Linux - Software 4 08-08-2006 03:35 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
Error in man command "sh: line 1: /usr/bin/gtbl: No such file or directory" MinA Slackware 1 09-06-2004 06:36 PM


All times are GMT -5. The time now is 01:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration