LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-15-2003, 08:51 PM   #1
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
give users permission to install software in their directory?


How do I set up the permissions that my users can install/use software? I have mozilla installed and I cant use it unless I am logged in as root. I tried downloading and installing mozilla in my user directory but it wont let me install it. I get permission denied error. I am using vector/slack and using iceWM. thanks in advance
 
Old 12-15-2003, 09:51 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
use the chmod command....

chmod xyz /a_file_or_directory

where x is the number code of access rights for the files owner
where y is the number code of access rights for users in the owners work-group
where z is the number code of access rights for all other users....

1 = execute
2 = write
4 = read

add them together to combine access rights...
so 4+2+1 = 7 = read write and execute.
4+1 = read and execute but not write
ect ect ect...

anyway.

cd into the mozilla directory, and issue the following commands as root.

chown -r root ./
chmod 755 -R ./

that will make root the owner of all the files in that directory.
give root read write and execute access.
and normal users read and execute access.
 
Old 12-15-2003, 10:28 PM   #3
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Also, if your /home directory is mounted on its own partition, that you add 'exec' to the partition's options in fstab
 
Old 12-16-2003, 12:09 AM   #4
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Original Poster
Rep: Reputation: 45
I changed the permissions but it still doesnt work. I dont get anything when i try to launch MozillaFirebird as a regular user. I also tried by setting permissions at 777 on that directory..still nothing
 
Old 12-16-2003, 01:03 AM   #5
burnpile
Member
 
Registered: Dec 2003
Location: Almost Heaven, West Virginia
Distribution: Slackware
Posts: 327

Rep: Reputation: 30
try using the full file path in your command. For example
/where/you/extracted/MozillaFirebird/MozillaFirebird
 
Old 12-16-2003, 07:18 AM   #6
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
run the program in a command line terminal,
and post the error messages.

and undo the chmod 777 with chmod 755
777 is a security risk.... a virus or some maliciouse code could fiddle with the
mozilla binarys and do all kinds of bad things.

but if it is a persmissinos problem, what i said will fix it.
make sure you pass the -R parameter....

try again like this (as root)

chmod -R 755 /usr/MozillaFirebird/

(change the path for whereveryou installed mozilla)

if the problem is permissions, then that will fix it...
but like i said, run in terminal and post the error messages.
 
Old 12-17-2003, 09:17 AM   #7
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Original Poster
Rep: Reputation: 45
Quote:
try using the full file path in your command. For example
/where/you/extracted/MozillaFirebird/MozillaFirebird
doesnt work.

Quote:
run the program in a command line terminal,
and post the error messages. and undo the chmod 777 with chmod 755
777 is a security risk.... a virus or some maliciouse code could fiddle with the
mozilla binarys and do all kinds of bad things.
There is no output in terminal or i would have posted it and I am aware about security risk associated with 777 permissions. I have no idea whats going on..
 
Old 12-17-2003, 11:16 AM   #8
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
so....
you run mozilla, and u dont get any permision error messages or anything....
it just gives you anouther line to enter a command ?

strange !

ok.... make sure you have strace installed, and lets see if we can get any output from that.

strace -o ~/ERROR.LOG /path/to/mozilla/Mozillafirebird

post the contents of ERROR.LOG
or just the interesting parts if its too large.
 
  


Reply



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 install the software in a specified directory on a cd? anuode Solaris / OpenSolaris 1 09-17-2005 09:42 AM
how to give 'guest' rwx permission on a file/directory RH9Linux Linux - Software 3 06-27-2005 08:59 PM
software install directory shavak Linux - Newbie 10 02-03-2005 10:23 PM
Howto give permission to hole directory js72 Debian 3 12-08-2004 04:50 PM
How do I give users read but not delete permission suse7.1user Linux - General 2 09-03-2003 05:13 PM

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

All times are GMT -5. The time now is 03:05 AM.

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
Open Source Consulting | Domain Registration