Cannot copy to my /opt folder ?
Hello all,
I installed Kubuntu 9.1 and then I downloaded Xampp of Linux to the desktop, however I have to extract it to /Opt/lampp. And that's the problem. I don't seem to have access or permissions to ?? I tried right-click | properties | permissions but the fields are greyed-out to make any changes. I am logged-in using the same user id/password I created when installing K9.1. Any suggestions, please explain in layman terms so that I follow your flow. Thanks!! |
run the command "ls -la /opt" and post the output here. Also, post the username you are logged in as and the results of the command "groups <your username here>".
Thanks |
Quote:
total 8 drwxr-xr-x 2 root root 4096 2010-04-05 23:16 . drwxr-xr-x 21 root root 4096 2010-04-05 22:48 .. I don't understand the last part about the groups ??? |
Quote:
Quote:
Quote:
|
So your output of the ls shows that only root user has the rights to create (the 'w' part is write ie create folder/files)
folders and files in /opt, so unless you are root or change the permissions you cannot. Secondly, the username part i am sure you understand (ie mine is grail), so if at the command prompt you type(> is the prompt): Code:
>groups |
Well, for /opt, you need to be root which I would imagine you aren't.
My suggestion would be to use groups. The other (far less preferred) options are to change ownership or make the permissions 777. The output from "groups user" will show you what groups you are already a member of. You might want to create another, say "system" and add yourself to that group, then chgrp /opt to that group, setting the sticky flag. This must all be done as root. |
Ok, think I got it, the output for groups: adm dialout cdrom plugdev lpadmin admin sambashare
The CD I installed from is: Ubuntu Family 9.1 Karmic Kola |
So as devnull suggested, maybe change the group to admin (which you are a part of) and alter permissions to maybe 775 and then you should be right.
Obviously you should weight this against which other users you have in this group and if they should all require this access as well. |
Quote:
Can you list out the steps of how I would go about accomplishing this??? No one else would be using this computer so that's not a problem. Much thanks. |
chgrp admin /opt
chmod 775 /opt (or chmod 2775 if you want the sgid flag set). |
Quote:
And what does: sqid flag set means....so that I understand what that option is. Thanks. |
hi the reply is just what nonamenobody has said.... you got to use sudo you would not need to change any permissions i think.
for eg if you are running from the command line sudo "command". |
Damn - didn't notice he was running a belts and braces version of Linux! ;)
|
Quote:
So if I use sudo 'command' what is the actual command do I use to give permissions to that /opt folder? I'm trying to understand this, but haven't had the, Ah-ha! moment yet. |
Basically whatever the 'command' is you would execute normally and then just place sudo in front.
Code:
as user: chmod 775 /opt |
All times are GMT -5. The time now is 02:33 AM. |