I want to get access to the root permission
I tried this command named as sudo su in the terminal
it asked for my password
i submitted correct password
after submitting the password I get this error
su: failed to execute /bin: Permission denied
please guide me to the solution
I’m not too sure exactly what you’re trying to do. If you want to switch to the the root user, it is simply:
Or you can run individual commands as root using
But that’ll only work if your user is already in the
For the future, please read this:
Welcome to Manjaro!
To allow all of us helpful gurus on this forum TO HELP YOU, we need some basic information about your system. This probably means you described the symptoms of your problem, but now we need some more information to know where the origin of your issue is exactly.
Someone probably linked you to this tutorial, so if you’re reading this in response to a question, please click the green link above this text to bring you to the full and unabridged text of the tutorial…
Almost sounds, to me, like you provided the
root password on that request. I don’t know why this is so, but it was very confusing for me too, until only recently. This is how I understand it:
When you wish to run a command as as your own user but with root priviledges, you run it with
sudo. For example:
sudo ls /
(Yeah, I know it’s basic, but that’s not the point.)
When you run that command as your user, not root, it’ll still execute as YOU, and not as root, but it will give you the same results as if you ran:
Hence, yo use
sudo you need to use your own user’s password,
not root’s. So,
requires you to use your
However, that’s unnecessary.
(Yeah, I also only learnt this recently.) I you require a root shell, it’s only necessary to run
For that you have to enter
root’s password, not your user’s. You are then root, and all commands are executed as root with root priviledges and permisssions.
Hope this helps!
Just as an aside,
su just like that unless you
really know what you’re doing.
su -l root
su - root
Rationale: If you use
su without the dash, then you will be running a root shell but with the environment of the invoking user. This means that you may accidentally overwrite files in your home directory and cause them to become root-owned.
Just saw this now. Thank you! Now I know and will work accordingly!
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.