I bought a software for my job which is needed I create a directory in /opt so that I could import licenses of software and launch my project, the thing is /opt is restricted by admin and permissions have been dedicated to root. Is there anyway I could mkdir my folder there? cheers
2 Answers
Unless you have root access to the machine (usually via sudo
), you cannot.
Try either:
sudo -i
..or:
sudo mkdir /opt/thedirectoryname
Both require your users password, the first would give you a terminal running as root, the second would simply make the directory.
If this doesn't work (which is very likely), you would need the system's admin to either give you access, or create the directory for you.
-
yep,I tried but doesn't work unless I am allowed to execute the command as root Aug 5, 2010 at 10:51
-
2
-
You could try sudo if you're root admin user has enabled it for you.
If not, and the software you require isn't propietary software, you may be able to change the source and/or configuration files to get it to point to another location. It may even be an option as part of the install process, but without knowing what the software is, difficult to say with certainty.
-
the matter is he wont enable it for me,that s why i m looking for an alternative Aug 5, 2010 at 13:45