LinuxQuestions.org
Help answer threads with 0 replies.
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 07-10-2004, 08:12 PM   #1
hawker7
LQ Newbie
 
Registered: Jul 2004
Location: Last Best Place
Distribution: RH9
Posts: 7

Rep: Reputation: 0
Permission Hell


Hello, sorry for the subject title but I have been trying to install a program for about a week now. I have read and re-read almost everything I can and I still don't get it.

Red Hat 9 installed.

I need to install a small program on a this thing and it is a on a CD as a zip file. I am logged in as a user and mount the CD. When I try to extract the files, I get an error screen saying I do not have permission to extract the archives in the folder.

WTF is the problem? Do I need to login as root?

Do I just open the script and copy it into a command line?

I realize that I am frustrated but man this just shouldn't be this hard to do

Thanks if you can help

hawker
 
Old 07-10-2004, 08:17 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
Maybe you are mounting the cdrom without normal user permission. But can't you copy the file to hd and then extract it?
 
Old 07-10-2004, 09:04 PM   #3
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
Login as root in KDE, mount the cd and drag the file off the cd to the directory you want it in. then login as whatever user and see if you can use it. Have you done a man chmod?
 
Old 07-10-2004, 11:12 PM   #4
hawker7
LQ Newbie
 
Registered: Jul 2004
Location: Last Best Place
Distribution: RH9
Posts: 7

Original Poster
Rep: Reputation: 0
I am sorry but I don't understand. If I login as root and copy the file somewhere how will I see the fiile if I login as another user?

I did the copy as you said to do. My instruction sheet for the program are as follows:

Make a user Directory call BM
Copy software to a new directory called BM
Change to root user
Run
./install
Enter 1 if you agree with software license
Verify installation with
/etc/rc.d/int.d/engined status

If I just SU and run ./install

I get: No such file or directory

What is a noob to do?
 
Old 07-10-2004, 11:16 PM   #5
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
You have to do the ./install as root in the new directory BM. Just doing it in root won't work.

Post back with more problems.

Peace,
JimBass
 
Old 07-10-2004, 11:23 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by hawker7
I am sorry but I don't understand. If I login as root and copy the file somewhere how will I see the fiile if I login as another user?
By default most distro's will have a umask of 022, which
will allow normal users to read file that root created.


Cheers,
Tink
 
Old 07-11-2004, 04:18 PM   #7
hawker7
LQ Newbie
 
Registered: Jul 2004
Location: Last Best Place
Distribution: RH9
Posts: 7

Original Poster
Rep: Reputation: 0
Maybe I am doing something really wrong.

I went back to the begining.

I loaded the cd in the cdrom.

I click and drag the zip file into my home directory.

I right click on it and click "Extract Here"

I get a window "Extract-Ark

Extract to "/home/my user

Filles to be extracted "All"


I now have the fle labeld BM. The path is /home.usernam/BM

in the folder, I have 3 rpm files, an excutable file, an install text file and an uninstall file.


I open a terminal window and su to root

I try to cd /home/username/BM

I get no such file or directory!!!!!!

I even copy paste the path into the terminal window so I don't have a typo,,,,,,,

Sorry if I am missing something basic here.








 
Old 07-11-2004, 04:21 PM   #8
hawker7
LQ Newbie
 
Registered: Jul 2004
Location: Last Best Place
Distribution: RH9
Posts: 7

Original Poster
Rep: Reputation: 0
Typo on the file path it should say /home/usernam/BM not /home.usernam/BM
 
Old 07-11-2004, 04:32 PM   #9
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
If you did extract the files to the location "Extract to "/home/my user " and didn't put a closing slash, then maybe those extracted files are all in /home/username rather than /home/username/BM? Since you saw what was extracted, you have to be able to get there. Open a terminal, and ls -a in your home directory. Either those extracted files should all be in the list, or the BM directory should be in the list.

Peace,
JimBass
 
Old 07-11-2004, 05:10 PM   #10
hawker7
LQ Newbie
 
Registered: Jul 2004
Location: Last Best Place
Distribution: RH9
Posts: 7

Original Poster
Rep: Reputation: 0
OK, I figured out the problem..the file name was BM CD.... I think the CD was being interupted as a command at the end of the line.. I changed to file name to just BM and ls shows it as a file BM in blue font. I don't know if this is important.

Anyway now I logged in as root.

I copyed the file into /root/BM

I can onpen the file BM and see the rpm files ect.

Then I cd /root/BM

ls gives me the rpm files but they are highlited in red. When I run ./install, I get :Permisson denied

When I check the properties of the file BM, it shows I have

I suppose I should call the manufacture tomorrow
 
Old 07-11-2004, 05:55 PM   #11
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Blue is the redhat base color for directories, red is the color of rpm files, and green is the color for executable files.

If configure is not green, you may have to change the mods on it, with the command chmod. You can install any or all of the rpm with the command rpm -i <filename>, or if a version is already installed, rpm -Uvh <filename>.

You also should read the readme, or install file, which generally walks you through all the steps to get it working.

Peace,
JimBass
 
Old 07-11-2004, 06:32 PM   #12
hawker7
LQ Newbie
 
Registered: Jul 2004
Location: Last Best Place
Distribution: RH9
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the information on the colors. I have looked at the install file. It is a script that requires me to agree to the license for the program. I just don't understand why I should have to change permission to install the darn thing??

Thanks for the help, I will post the results of my phone call to the man.

 
Old 07-11-2004, 06:54 PM   #13
HadesThunder
Member
 
Registered: Mar 2004
Location: London
Distribution: Mandrake 9.1
Posts: 281

Rep: Reputation: 30
chmod the file. open up a terminal (Gnome-Terminal) is best. Type chmod 777 [file name+location]. Full access permision.
 
Old 07-11-2004, 07:46 PM   #14
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
In linux you'll download files that need to be executable, but don't start out that way. Like the person above wrote, doing a chmod 777 <filename> will work. They don't come with executable permissions because that is the unix/linux way, nothing can happen on a system that isn't authorized. In theory at least. You shouldn't need to call them. Make the installer executable, and everything will probably flow from there.

Peace,
JimBass
 
Old 07-12-2004, 04:25 PM   #15
hawker7
LQ Newbie
 
Registered: Jul 2004
Location: Last Best Place
Distribution: RH9
Posts: 7

Original Poster
Rep: Reputation: 0
I found out the problem.

I had to chkconfig --level 2345 mysqld on

I guess this enabled mysql to work with the license process?

I also had to change the permisions on the files. I did this thur the GUI interface in KDE.

Thanks for all the help. I am sure I will need more before this endeavor ends

 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
What the hell is this?! navarre9 Linux - General 5 04-27-2004 02:12 PM
what the hell?? watashiwaotaku7 General 4 10-10-2003 09:16 AM
What the hell?? face_master Linux - General 3 01-28-2003 09:29 AM
hell with it.... Chijtska Linux From Scratch 5 02-15-2002 09:01 AM


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