Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-19-2002, 07:49 AM   #1
LQ Newbie
Registered: Oct 2002
Posts: 2

Rep: Reputation: 0
/usr/bin permissions in Mandrake 8.0

Whenever i try to use gcc it gives me the error "Permission Denied." I know what you are going to say just use "chmod a+rx /usr/bin/gcc," but that doesn't work. I can't see the whole /usr/bin directory it says "Permission Denied." This is a shell I have on my friend's box and he has tried everything he said. I told him to just let me use "ls" the whole /usr/bin directory but he doesn't want me to. I think that might be the problem because he isn't letting me see the /usr/bin directory. If you have any suggestions you can also catch me on AIM at pr0disageek or IRC at #phawked.
Old 10-19-2002, 08:24 AM   #2
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Rep: Reputation: 30
Have you tried chmod'ing the actual folder?
And have you tried acessing the folder and gcc while root?

Old 10-19-2002, 11:34 AM   #3
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 69
I am confused...

Your buddy doesn't want to let you see what is in there? Like he has top secret program or something, and they are in his PATH?


If he is trying to access this directories via the GUI (which is the sound of things since you can't use ls to view it? ) and the directory has a lock on it, then he can't access the directory with his user.

So, like GT said, and you said, chmod it, but the directory rather than the file inside it. You have to gain access to each thing in sequence. If you own something inside someone elses directory, you still can't access it without permission to enter the directory.

chmod a+r /usr/bin

would be the minimum needed for that.

Old 10-20-2002, 06:06 PM   #4
LQ Newbie
Registered: Oct 2002
Posts: 2

Original Poster
Rep: Reputation: 0

Yeah I sort of figured that would be the answer. I had decided to get root on his box with an exploit I made in /sbin/linuxconf and tried it as root and that works. All this is not done using a GUI it's all terminal work. It might be an automated script or something who knows. But we figured out it happens everytime he reboots his computer. This is what he does everytime to give me access to gcc (chmod a+x /usr/bin/gcc). That seems to work until he reboots. Anymore ideas? He told me that he thinks he is chmodding the wrong file. He thinks it is /usr/bin/gcc-2.96 or something like that.


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
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 01:02 AM
/usr/bin/startkde crashes with Mandrake 9.1 Fernando Mandriva 1 02-04-2005 11:10 AM
/usr/bin/X11/ and /usr/X11R6/bin/ the same? linuxtesting2 Linux - Newbie 2 11-16-2004 10:57 AM
Mandrake security freaked out, can't execute /usr/bin rhettg Linux - Security 3 09-08-2004 11:55 PM
/usr/bin file permissions enlight1 Linux - Newbie 2 07-31-2003 08:16 PM > Forums > Linux Forums > Linux - Newbie

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

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