Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

hey guys, 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

share|improve this question

2 Answers 2

up vote 5 down vote accepted

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.

share|improve this answer
    
yep,I tried but doesn't work unless I am allowed to execute the command as root –  user44509 Aug 5 '10 at 10:51
2  
dbr : sudo -i rather than sudo su - seems neater.... –  Rob Cowell Aug 5 '10 at 11:38
    
@Rob: And less prone to PAM errors. –  grawity Aug 5 '10 at 19:11
    
@Rob changed, thanks –  dbr Aug 6 '10 at 10:43

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.

share|improve this answer
    
the matter is he wont enable it for me,that s why i m looking for an alternative –  user44509 Aug 5 '10 at 13:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.