View Full Version : [ubuntu] [SOLVED] opt directory
waterrr
August 4th, 2008, 03:18 PM
hi all,
ive copied some files into the opt directory, but only as the root from using
gksu nautilus and when i try to write commands in that directory from a diff. user, lets say user123, im not able to - how can i fix this?
acidsolution
August 4th, 2008, 03:23 PM
change the permission of the file
open the terminal and than write
sudo chmod -R 777 /opt/123
this might help u
waterrr
August 4th, 2008, 03:28 PM
can i just do that from user123? or do i need to be another user, bc it didnt work :(
hyper_ch
August 4th, 2008, 03:29 PM
(1) what did you copy in there?
(2) I don't think it's wise to recursively chmod it to 0777
waterrr
August 4th, 2008, 03:29 PM
because i get the response, "operation not permitted"
waterrr
August 4th, 2008, 03:30 PM
i just copied some files into there...a folder of files
hyper_ch
August 4th, 2008, 03:30 PM
what do you require to be in /opt?
waterrr
August 4th, 2008, 03:32 PM
just some files....like .xml files
hyper_ch
August 4th, 2008, 03:33 PM
any reason for them to be in there?
waterrr
August 4th, 2008, 03:34 PM
i would tell you if i knew, i'm just following directions to place them in the /opt directory and work from there
hyper_ch
August 4th, 2008, 03:37 PM
well, this does not really help at all.. so I unsubscribe from this thread.
waterrr
August 4th, 2008, 03:39 PM
anywho...it would be better if someone had explained what they need to exactly know, but i'm still having this problem
Oldsoldier2003
August 4th, 2008, 03:39 PM
What are you trying to install? A little more information will point people in the right direction and help you get your problem resolved faster.
waterrr
August 4th, 2008, 03:42 PM
it's a platform for a company..wouldn't know how to explain it in terms for you to understand exactly what it is...but that directory involves bin xml and sql files
i just want to be able to execute commands into the /opt directory
waterrr
August 4th, 2008, 04:06 PM
:confused:
oldos2er
August 4th, 2008, 04:07 PM
You can use the command "gksudo nautilus" in a terminal to give you access to /opt.
waterrr
August 4th, 2008, 04:30 PM
i used that to copy the folders, but can i run commands like that?
philinux
August 4th, 2008, 04:37 PM
i used that to copy the folders, but can i run commands like that?
you'll need to use
sudo
e.g sudo apt-get install whatever
Is there any specific reason that /opt has to be used? If not you could create a directory in your home folder.
waterrr
August 4th, 2008, 04:40 PM
i'm not able to run commands from terminal onto the /opt file...it always says permission denied...is it bc user123 does not have enough permission to access and write to it?
bodhi.zazen
August 4th, 2008, 04:41 PM
What is the name and home page of what you are trying to install ?
Do you have a link to the instructions you are following ?
Sounds like an odd location for your files.
/opt is used to install non-system applications.
http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/opt.html
Take a look at permissions :
http://www.zzee.com/solutions/linux-permissions.shtml
community/FilePermissions
waterrr
August 4th, 2008, 04:52 PM
yes i am installing a non-sys app from what i understand and i do not have a soft copy, its just any command i try to run in /opt gets denied - i didn't know this would get so complicated
bab1
August 4th, 2008, 04:54 PM
the /opt directory is for "to be installed apps". I have my Acro8 tar.gz files there, but not the bin files.
philinux
August 4th, 2008, 04:55 PM
yes i am installing a non-sys app from what i understand and i do not have a soft copy, its just any command i try to run in /opt gets denied - i didn't know this would get so complicated
Even using sudo as the prefix to the command?
waterrr
August 4th, 2008, 05:00 PM
well these are some of the command lines i have to run in the /opt directory
*using dummy names
this one is to overwrite the folder with a clean one
rm -r /opt/path/to/folder
cd /opt/path/to/folder
tar xvf /tmp/sometarfile.tar.gz
then im required to run lines such as
sudo vim asdf.xml
sudo vim asdf2.xml
in the /opt/path/to/folder
but my permission gets denied from the very first line of rm -r
philinux
August 4th, 2008, 05:22 PM
Thats cos you need sudo like I've been saying. It means superuser and will ask for you password. You cant see it just type it and hit enter.
sudo rm -r /opt/path/to/folder
cd /opt/path/to/folder
sudo tar xvf /tmp/sometarfile.tar.gz
Make sure you get this right cos rm means remove, permanently.
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.