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 11-10-2006, 03:46 PM   #1
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Open Suse 10.1, Ubuntu (Feisty Fawn)
Posts: 87

Rep: Reputation: 15
user execute mount?


Hi all,

basic question. I use open suse 10.1. I found that 'mount' located at /bin/mount. but why can't the user execute it? because as fas as i read /bin directory holds executable which is user-wide.

thanks
 
Old 11-10-2006, 03:49 PM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
1- What kind of message do you get when you try to mount a drive?

2- What is your path set to? ( echo $PATH )
 
Old 11-10-2006, 05:46 PM   #3
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Open Suse 10.1, Ubuntu (Feisty Fawn)
Posts: 87

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by fordeck
1- What kind of message do you get when you try to mount a drive?

2- What is your path set to? ( echo $PATH )
Here it is my PATH and the location of my mount

Code:
# echo $PATH
/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin
# whereis mount
mount: /bin/mount /sbin/mount.cifs /sbin/mount.smbfs /usr/share/man/man2/mount.2.gz /usr/share/man/man8/mount.8.gz
# mount -o loop images/cf.img mydir/
mount: only root can do that
and it is somewhat make we weird also that if for example i do:

Code:
# PATH=$PATH:/sbin:/usr/sbin
i can execute my files in /sbin directory, like grub.
can anyone explain this basic things?

thanks
 
  


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
How to automatically execute a command (TrueCrypt) on mount cbonar Linux - General 2 08-27-2006 11:42 AM
Execute a command as another user mpgram Linux - Newbie 6 06-09-2004 12:45 AM
execute command as different user kilobravo Linux - General 2 06-02-2003 11:03 AM
execute mount (or any) command on startup frieza Linux - Software 3 04-29-2003 07:09 PM
Mount vfat without execute? SharpyWarpy Linux - General 6 04-26-2003 10:22 PM


All times are GMT -5. The time now is 04:16 PM.

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