cd into directory without having permission

user812954 picture user812954 · Nov 22, 2011 · Viewed 188.5k times · Source

When cding into one of my directories called openfire the following error is returned:

bash: cd: openfire: Permission denied

Is there any way around this?

Answer

Jonathan picture Jonathan · Jul 5, 2013

@user812954's answer was quite helpful, except I had to do this this in two steps:

sudo su
cd directory

Then, to exit out of "super user" mode, just type exit.