LinuxQuestions.org
Visit Jeremy's Blog.
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-19-2002, 08:49 AM   #1
pr0digy
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 irc.phawked.org #phawked.
 
Old 10-19-2002, 09:24 AM   #2
GT I.N.C
Member
 
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?

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

Rep: Reputation: 68
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?

Anyway...

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.

SO:
chmod a+r /usr/bin

would be the minimum needed for that.

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

Original Poster
Rep: Reputation: 0
Re:

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.
 
  


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

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

All times are GMT -5. The time now is 09:10 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