Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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>".
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>".
Just to be pick it is 9.10 (nine point ten), as it was released in the then tenth month of 2009 (that is the naming scheme for (K)Ubuntu)
Quote:
and then I downloaded Xampp of Linux to the desktop, however I have to extract it to /Opt/lampp. And that's the problem.
'/Opt' would certainly be a problem in a case sensitive operating system like Linux.
Quote:
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.
Permission to alter/create files in '/opt', no you won't have. Ubuntu doesn't give you direct access to a user account with many privileges (there is only really one privileged user in a Linux/UNIX system and that is root). Root logins are disabled in Ubuntu by default. However they do give you method to temporarily elevate your privilege (at last for the first user you create, you have to allow it for other users) - it is called sudo and it is not very different from Windows' run as and UAC, though if you are running GUI apps you will want to run kdesudo or gksudo (e.g. press ALT+F2 and enter 'kdesudo konqueror'). In KDE there may even be a 'Run as Root' option or 'File Manager as Root' in the menus), I don't recall, it has been a while.
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
or
>groups grail
This will display which group(s) you are a member of.
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.
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.
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.
Thanks again...
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.
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
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".
O-k-a-y. I'm trying to follow along here, so please bear with me...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.