Thursday, May 26, 2011

How to access a directory as root/Super user in Linux?

In debian Linux if you are logged in as a ordinary(lower previleged user), then you cant access all the directories in the filesystem. Becayse if tge security restrictions. So, if you want to access a particular directory which needs the higher privelege(say /root) you have 2 choices.

1. By Terminal
Just open the terminal by
1) Applications -> Accessories -> Terminal
or
2) alt + f2 -> type "gnome-terminal"(witout quotes) & hit enter key

Now change yourself as root by issuing the command $su root & corresponding Password and access the directory what you want.

2. By GUI(using Nautilus)
Right click the directory which you want to access as super/root user. Then select the option "open as administrator".

Now it prompts you for the Admin(Root) password then it open that directory as a root user. so, now you can access all the files with read,write, execute permission.

Note: For getting the option "open as administrator" your system must installed the package "nautilus-gksu". If not install it first with the following command '$sudo apt-get install nautilus-gksu'(use without quotes,dollar symbol)

Note:(Am using BOSS Linux - a famous indian distro based on Debian developed by CDAC).

No comments: